ytzh: переводы
Apache Tomcat 7. Documentation / Apache Tomcat 7. Документация
→Using the development and testing targets requires some additional one-time setup that is described on the next page.
0 Использование команд тестирования и разработки требуется некоторая разовая настройка, описанная на в следующем разделе
→remove - When you have completed your development and testing activities, you can optionally tell Tomcat to remove this application from service.
0 remove - После завершения разработки и тестирования приложения вы можете сообщить Tomcat удалить приложение из сервиса.
→reload - Once the application is installed, you can continue to make changes and recompile using the compile target. Tomcat will automatically recognize changes made to JSP pages, but not to servlet or JavaBean classes - this command will tell Tomcat to restart the currently installed application so that such changes are recognized.
0 reload - После того, как программа установлена, Вы можете вносить изменения в ее исходный код. Tomcat автоматически распознает изменения в JSP страницах, но не в сервлетах и JavaBean классах. Команда сообщает Tomcat о необходимости перезапустить приложения для применения изменений.
→install - Tell the currently running Tomcat to make the application you are developing immediately available for execution and testing. This action does not require Tomcat to be restarted, but it is also not remembered after Tomcat is restarted the next time.
0 install - сообщить Tomcat о необходимости сделать немедленно приложение доступным для выполнения и тестирования. Это действие не требует перезапуска Tomcat, но оно не сохранит приложение после его перезапуска.
→For interactive development and testing of your web application using Tomcat, the following additional targets are defined:
0 Для активной разработки и тестирования web приложения используя Tomcat определены следующие дополнительные команды
→dist - This target creates a distribution directory for your application, including any required documentation, the Javadocs for your Java classes, and a web application archive (WAR) file that will be delivered to system administrators who wish to install your application. Because this target also depends on the deploy target, the web application archive will have also picked up any external dependencies that were included at deployment time.
0 dist - Эта команда создает дистрибутив для Вашего приложения, включая всю требуемую документацию Javadoc для классов Java, и архив web приложения (WAR файл) который будет предоставляться системному администратору пожелавшему установить ваше Web приложение.. Так как эта команда зависит от команды deploy, архив web приложения так же будет включать любые внешние зависимости включение на стадии разработки.
→javadoc - This target creates Javadoc API documentation for the Java classes in this web application. The example build.xml file assumes you want to include the API documentation with your app distribution, so it generates the docs in a subdirectory of the dist directory. Because you normally do not need to generate the Javadocs on every compilation, this target is usually a dependency of the dist target, but not of the compile target.
0 javadoc - Создает Javadoc API документацию для Java классов web приложения. В примере файла build.xml предполагается, что вы хотите включить документацию вашего приложения, поэтому оно помещает документы в каталог d.ist. Так как обычно нет необходимости в генерации документации при каждой компиляции, эта команда, как правило, зависит от команды dist, не не от команды compile.
→all - This target is a short cut for running the clean target, followed by the compile target. Thus, it guarantees that you will recompile the entire application, to ensure that you have not unknowingly introduced any incompatible changes.
0 all - Это сокращенная команда выполняющая clean команду, после команды compile. Это гарантирует пере компиляцию приложения целиком для исключения возможных несовместимых изменений.
→compile - This target is used to compile any source code that has been changed since the last time compilation took place. The resulting class files are created in the WEB-INF/classes subdirectory of your build directory, exactly where the structure of a web application requires them to be. Because this command is executed so often during development, it is normally made the "default" target so that a simple ant command will execute it.
0 compile - используется для пере компиляции исходного кода который бил изменен с момента последней компиляции. В результате, файлы классов размещаются в подкаталоге WEB-INF/classes каталога сборки, именно там где они должны располагаться согласно структуре web приложения. В связи с тем что эта команда выполняется очень часто что простая команда ant будет выполнять именно ее по умолчанию.
→clean - This target deletes any existing build and dist directories, so that they can be reconstructed from scratch. This allows you to guarantee that you have not made source code modifications that will result in problems at runtime due to not recompiling all affected classes.
0 clean - этот узел удаляет любой существующий каталог build и dist, потому что они могут быть созданы с нуля. Это позволяет нет ь не сохраненных файлов исходного кода, которые может привести к проблемам на стадии выполнении из за не пере компилированных классов.
→To give you a head start, a basic build.xml file is provided that you can customize and install in the project source directory for your application. This file includes comments that describe the various targets that can be executed. Briefly, the following targets are generally provided:
0 Предлагается базовый файл build.xml который может быть использован в качестве основы для Вашего проекта. Это файл включает комментарии которые описывают различные цели (таргеты) файла которые могут быть настроены.
→ant -projecthelp
0 ant -projecthelp
→Like a Makefile, the build.xml file provides several "targets" that support optional development activities (such as creating the associated Javadoc documentation, erasing the deployment home directory so you can build your project from scratch, or creating the web application archive file so you can distribute your application. A well-constructed build.xml file will contain internal documentation describing the targets that are designed for use by the developer, versus those targets used internally. To ask Ant to display the project documentation, change to the directory containing the build.xml file and type:
0 Файл build.xml поддерживает несколько опциональных целей (таких как создание документации Javadoc, очистка домашнего каталога развертывания приложения для сборки проекта «с нуля», или создания для распространения архива web приложения). Хорошо сконструированный файл build.xml содержит описание внутренней документации предназначенной для использования разработчиком для внутренних целей. Для запроса вывода документации проекта выберите директорию содержащую файл build.xml и наберите:
→We will be using the ant tool to manage the compilation of our Java source code files, and creation of the deployment hierarchy. Ant operates under the control of a build file, normally called build.xml, that defines the processing steps required. This file is stored in the top-level directory of your source code hierarchy, and should be checked in to your source code control system.
0 Мы будем использовать утилиту ant для управления компиляцией файлов исходного кода Java и для создания разворачиваемой иерархии. ant работает под управлением файла сборки, обычно называемый build.xml, который определяет требуемые этапы обработки. Этот файл хранится в корне иерархии исходного кода, и должен быть проверен системой контроля исходного кода
→BUILD.XML Configuration File
0 Конфигурационный файл BUILD.XML
→CVS, like other source code control systems, has many additional features (such as the ability to tag the files that made up a particular release, and support for multiple development branches that can later be merged). See the links and references in the Introduction for more information.
0 CVS, как и другие системы управления исходным кодом, имеет много дополнительных возможностей (такие как пометка файлов соответствующийх определенному релизу, и поддержка нескольких ветвей разработки, которые позже могут быть объеденены). Для более полной информации смотрите Введение.
→While you are creating, modifying, and deleting source files, changes are not yet reflected in the server repository. To save your changes in their current state, go to the project source directory and execute cvs commit. You will be asked to write a brief description of the changes you have just completed, which will be stored with the new version of any updated source file.
0 Если Вы создаете, модифицируете или удаляете исходные файлы, изменения не отобразятся в хранилище сервера. Для сохранения изменений в их текущем состоянии, перейдите в корневой каталог и выполните cvs commit. Вам будет предложено написать краткое описание произведенных изменений с сохранением их с новыми версиями исходных файлов
→If you no longer need a particular source code file, navigate to the containing directory and remove the file. Then, deregister it in CVS with a command like cvs remove {filename}.
0 Если какой то файл Вам больше не понадобится, перейдите в каталог файла и удалите. Далее зарегистрируйте изменение в CVS командой cvs remove {filename}.
→When you first create a new source code file, navigate to the directory that contains it, and register the new file with a command like cvs add {filename}.
0 Если Вы создает новый файл исходного кода, перейдите в катало с файлом и зарегистрируйте новый файл командой cvs add {filename}.
→When you create a new subdirectory in the source code hierarchy, register it in CVS with a command like cvs add {subdirname}.
0 Если вы создали новый подкаталог в иерархии исходного кода зарегистрируйте его в CVS командой cvs add {subdirname}.
Резюме
- Пол:
- мужчина
- Родной язык:
- русский
- С нами:
-
с 6 ноября 2012 г.
(5095 дней)
Не является членом клуба. - Деятельность:
-
50 версий перевода
с общим рейтингом 0
1 комментарий
