ant build.xml copy jar build jar

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- WARNING: Eclipse auto-generated file.
              Any modifications will be overwritten.
              To include a user specific buildfile here, simply create one in the same
              directory with the processing instruction <?eclipse.ant.import?>
              as the first entry and export the buildfile again. -->
<project basedir="." default="build" name="lsbpm.editor.v7">
	<property environment="env" />
	<property name="ECLIPSE_HOME" value="C:/Program Files/Genuitec/MyEclipse 8.5" />
	<property name="debuglevel" value="source,lines,vars" />
	<property name="lsbpmClassDir" value="${basedir}/class4lsbpm" />
	<property name="target" value="1.6" />
	<property name="source" value="1.6" />
	<path id="Spring 3.0 Core Libraries.libraryclasspath">
		<pathelement location="${ECLIPSE_HOME}/configuration/org.eclipse.osgi/bundles/87/1/.cp/data/3.0/lib/core/org.springframework.core-3.0.1.RELEASE-A.jar" />
		<pathelement location="${ECLIPSE_HOME}/configuration/org.eclipse.osgi/bundles/87/1/.cp/data/3.0/lib/core/org.springframework.context-3.0.1.RELEASE-A.jar" />
		<pathelement location="${ECLIPSE_HOME}/configuration/org.eclipse.osgi/bundles/87/1/.cp/data/3.0/lib/core/org.springframework.beans-3.0.1.RELEASE-A.jar" />
		<pathelement location="${ECLIPSE_HOME}/configuration/org.eclipse.osgi/bundles/87/1/.cp/data/3.0/lib/core/org.springframework.asm-3.0.1.RELEASE-A.jar" />
		<pathelement location="${ECLIPSE_HOME}/configuration/org.eclipse.osgi/bundles/87/1/.cp/data/3.0/lib/core/com.springsource.org.apache.log4j-1.2.15.jar" />
		<pathelement location="${ECLIPSE_HOME}/configuration/org.eclipse.osgi/bundles/87/1/.cp/data/3.0/lib/core/com.springsource.org.apache.commons.logging-1.1.1.jar" />
		<pathelement location="${ECLIPSE_HOME}/configuration/org.eclipse.osgi/bundles/87/1/.cp/data/3.0/lib/core/org.springframework.expression-3.0.1.RELEASE-A.jar" />
	</path>
	<path id="Hibernate 3.3 Annotations &amp; Entity Manager.libraryclasspath">
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/com.genuitec.org.hibernate.eclipse_3.2.4.CR1-me201003101716/myeclipse-data/3.3/lib/entitymanager/hibernate-annotations.jar" />
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/com.genuitec.org.hibernate.eclipse_3.2.4.CR1-me201003101716/myeclipse-data/3.3/lib/entitymanager/hibernate-commons-annotations.jar" />
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/com.genuitec.org.hibernate.eclipse_3.2.4.CR1-me201003101716/myeclipse-data/3.3/lib/entitymanager/hibernate-entitymanager.jar" />
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/com.genuitec.org.hibernate.eclipse_3.2.4.CR1-me201003101716/myeclipse-data/3.3/lib/hibernate-validator.jar" />
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/com.genuitec.org.hibernate.eclipse_3.2.4.CR1-me201003101716/myeclipse-data/3.3/lib/entitymanager/ejb3-persistence.jar" />
	</path>
	<path id="Hibernate 3.3 Core Libraries.libraryclasspath">
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/com.genuitec.org.hibernate.eclipse_3.2.4.CR1-me201003101716/myeclipse-data/3.3/lib/bytecode/cglib/cglib-2.2.jar" />
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/com.genuitec.org.hibernate.eclipse_3.2.4.CR1-me201003101716/myeclipse-data/3.3/lib/bytecode/javassist/javassist-3.9.0.GA.jar" />
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/com.genuitec.org.hibernate.eclipse_3.2.4.CR1-me201003101716/myeclipse-data/3.2/lib/antlr-2.7.6.jar" />
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/com.genuitec.org.hibernate.eclipse_3.2.4.CR1-me201003101716/myeclipse-data/3.3/lib/required/commons-collections-3.1.jar" />
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/com.genuitec.org.hibernate.eclipse_3.2.4.CR1-me201003101716/myeclipse-data/3.3/lib/hibernate3.jar" />
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/com.genuitec.org.hibernate.eclipse_3.2.4.CR1-me201003101716/myeclipse-data/3.3/lib/required/jta-1.1.jar" />
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/com.genuitec.org.hibernate.eclipse_3.2.4.CR1-me201003101716/myeclipse-data/3.2/lib/ehcache-1.2.3.jar" />
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/com.genuitec.org.hibernate.eclipse_3.2.4.CR1-me201003101716/myeclipse-data/3.3/lib/required/slf4j-api-1.5.8.jar" />
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/com.genuitec.org.hibernate.eclipse_3.2.4.CR1-me201003101716/myeclipse-data/3.3/lib/required/slf4j-log4j12-1.5.8.jar" />
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/com.genuitec.org.hibernate.eclipse_3.2.4.CR1-me201003101716/myeclipse-data/3.3/lib/required/log4j-1.2.14.jar" />
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/com.genuitec.org.hibernate.eclipse_3.2.4.CR1-me201003101716/myeclipse-data/3.1/lib/dom4j-1.6.1.jar" />
	</path>
	<path id="Hibernate 3.3 Advanced Support Libraries.libraryclasspath">
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/com.genuitec.org.hibernate.eclipse_3.2.4.CR1-me201003101716/myeclipse-data/3.3/lib/optional/c3p0/c3p0-0.9.1.jar" />
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/com.genuitec.org.hibernate.eclipse_3.2.4.CR1-me201003101716/myeclipse-data/3.3/lib/optional/jbosscache/jboss-cache-1.4.1.GA.jar" />
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/com.genuitec.org.hibernate.eclipse_3.2.4.CR1-me201003101716/myeclipse-data/3.3/lib/optional/jbosscache2/jbosscache-core-3.1.0.GA.jar" />
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/com.genuitec.org.hibernate.eclipse_3.2.4.CR1-me201003101716/myeclipse-data/3.3/lib/optional/oscache/oscache-2.1.jar" />
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/com.genuitec.org.hibernate.eclipse_3.2.4.CR1-me201003101716/myeclipse-data/3.3/lib/optional/proxool/proxool-0.8.3.jar" />
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/com.genuitec.org.hibernate.eclipse_3.2.4.CR1-me201003101716/myeclipse-data/3.3/lib/optional/swarmcache/swarmcache-1.0RC2.jar" />
	</path>
	<path id="JUnit 4.libraryclasspath">
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/org.junit4_4.5.0.v20090824/junit.jar" />
		<pathelement location="C:/Program Files/Genuitec/Common/plugins/org.hamcrest.core_1.1.0.v20090501071000.jar" />
	</path>
	<path id="lsbpm.editor.v7.classpath">
		<pathelement location="bin" />
		<path refid="Spring 3.0 Core Libraries.libraryclasspath" />
		<path refid="Hibernate 3.3 Annotations &amp; Entity Manager.libraryclasspath" />
		<path refid="Hibernate 3.3 Core Libraries.libraryclasspath" />
		<path refid="Hibernate 3.3 Advanced Support Libraries.libraryclasspath" />
		<pathelement location="lib/mysql-connector-java-5.1.10-bin.jar" />
		<pathelement location="lib/lucene-analyzers-2.4.0.jar" />
		<pathelement location="lib/lucene-core-2.9.1.jar" />
		<pathelement location="lib/lucene-highlighter-2.9.1.jar" />
		<pathelement location="lib/lucene-memory-2.4.0.jar" />
		<pathelement location="lib/lucene-smartcn-2.9.1.jar" />
		<pathelement location="lib/paoding-analysis.jar" />
		<pathelement location="lib/pdf-renderer.jar" />
		<pathelement location="lib/pdfbox-1.0.0.jar" />
		<pathelement location="lib/poi-3.6-20091214.jar" />
		<pathelement location="lib/poi-contrib-3.6-20091214.jar" />
		<pathelement location="lib/poi-scratchpad-3.6-20091214.jar" />
		<pathelement location="lib/commons-lang-2.4.jar" />
		<pathelement location="lib/commons-net-2.0.jar" />
		<pathelement location="lib/commons-beanutils-1.8.3.jar" />
		<pathelement location="lib/commons-collections-3.2.1.jar" />
		<pathelement location="lib/commons-dbutils-1.3.jar" />
		<pathelement location="lib/commons-digester-2.0.jar" />
		<pathelement location="lib/velocity-1.6.3.jar" />
		<pathelement location="lib/miglayout15-swing.jar" />
		<pathelement location="lib/beansbinding-1.2.1.jar" />
		<pathelement location="lib/json-lib-2.3-jdk15.jar" />
		<pathelement location="lib/ezmorph-1.0.6.jar" />
		<pathelement location="lib/fontbox-1.0.0.jar" />
		<pathelement location="lib/iText-2.1.5.jar" />
		<pathelement location="lib/iText-2.1.7.jar" />
		<pathelement location="lib/iText-rtf-2.1.7.jar" />
		<pathelement location="lib/iTextAsian.jar" />
		<pathelement location="lib/jdom-1.0.jar" />
		<pathelement location="lib/commons-configuration-1.6.jar" />
		<pathelement location="lib/icu4j-3.8.jar" />
		<pathelement location="lib/quartz-1.8.0.jar" />
		<pathelement location="lib/svnkit.jar" />
		<path refid="JUnit 4.libraryclasspath" />
	</path>

	<target name="init">
		<mkdir dir="${lsbpmClassDir}" />
	</target>

	<target  depends="clean,init" name="copyJar">
		<copy includeemptydirs="false" todir="${lsbpmClassDir}/lib">
			<path refid="lsbpm.editor.v7.classpath" />
			<flattenmapper />
		</copy>
	</target>


	<target name="clean">
		<delete dir="${lsbpmClassDir}" />
	</target>

	<target depends="init" name="build">
		<echo message="${ant.project.name}: ${ant.file}" />
		<javac debug="true" debuglevel="${debuglevel}" destdir="${lsbpmClassDir}" source="${source}" target="${target}">
			<src path="src" />
			<classpath refid="lsbpm.editor.v7.classpath" />
		</javac>
	</target>

	<target depends="build" name="build jar">
		<jar destfile="${basedir}/build2exe/lsbpm.jar" basedir="${lsbpmClassDir}" />
	</target>

</project>

你可能感兴趣的:(eclipse,xml,ant)