" depends= " clean,compile " > NBSP; dir= " ${jar.dir} " /> NBSP; destfile= " ${jar.dir}/${ Ant.project.name}.jar " basedir= " ${bin.dir} " /> You only need to replace the project name, such as memcached, and the resulting jar is Memcached.jar. The basic process of the jar target: 1) clean , clear the original bin and Span style= "font-family: ' Times New Roman '" >out directory, i.e. delete .class and .jar file 2) compile , using classpath Reference co
Step 1: Download ant package from official website, address http://ant.apache.org/Step 2: Unzip, go to configure user custom environment variable "or system environment variable"Step 3: Verify that your environment is configured correctlyStep 4: Write a simple build file to run to see if it is successfulCreate the above file file, save as Hello.xml, I saved it in the installation directoryRun the Ant-file path \ file, and the following prompt indicates success.Automatic construction and deployme
the remote script to start the Tomcat service. The above SCP command transfer file without password, you must configure the SSH key pair, configured as follows:This assumes that host a (192.168.100.3) is used to obtain a file for Host B (192.168.100.4).Execute the following command on host A to generate the pairing key: ssh-keygen-t RSAWhen prompted to enter the default, the public key is stored in the user directory. The SSH directory, such as root, is stored in:/root/.ssh/id_rsa.pubCopy the I
The Spring boot project that was developed using idea is packaged locally, but it is not possible to read the variables in the configuration file with the Jenkins package run prompt, and open the jar package discovery without a configuration file. The workaround is to add the following configuration to the Pom Jenkins loses configuration files when packaging Java projects (Resource)
1. Login JekinsPrerequisite: Jekins has been deployed and can log inVersion: Jenkins2.60.2Http://IP: Port/jenkins/view/all/newjob2. Create a new Build taskSelect the type of project, select "Build a multi-configuration item" and enter the custom project name, click OKCode Management Choose Git (need to click Add to add a viable account password)Note: If you do not involve code operations, such as only shell script execution, you can skip this stepChoose a Build cycle (choose manual build here)Se
Http://www.blogjava.net/amigoxie/archive/2007/11/09/159413.html
Original address: http://tech.it168.com/j/2007-11-09/200711091344781.shtml
Ant is a Cross-platform component tool under the Apache Foundation, which enables the automatic construction and deployment of projects. In this article, the reader is primarily familiar with how to apply ant to a Java project to simplify build and deploy operations.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.