-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge ant project loader for eclipse.
- Loading branch information
Showing
3 changed files
with
214 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<project basedir="." default="build" name="infinitypfm-btc"> | ||
<property environment="env"/> | ||
<property name="infinitypfm-ui.location" value="../infinitypfm-ui"/> | ||
<property name="ECLIPSE_HOME" value="${user.home}/eclipse/jee-neon2/eclipse/"/> | ||
<property name="debuglevel" value="source,lines,vars"/> | ||
<property name="target" value="1.8"/> | ||
<property name="source" value="1.8"/> | ||
<path id="infinitypfm-btc.classpath"> | ||
<pathelement location="bin"/> | ||
<pathelement location="/usr/share/java/json-lib.jar"/> | ||
<pathelement location="/usr/share/java/commons-httpclient.jar"/> | ||
<pathelement location="/usr/share/java/commons-lang.jar"/> | ||
</path> | ||
<target name="init"> | ||
<mkdir dir="bin"/> | ||
<copy includeemptydirs="false" todir="bin"> | ||
<fileset dir="src/main/java"> | ||
<exclude name="**/*.java"/> | ||
</fileset> | ||
</copy> | ||
</target> | ||
<target name="clean"> | ||
<delete dir="bin"/> | ||
</target> | ||
<target depends="clean" name="cleanall"/> | ||
<target depends="build-subprojects,build-project" name="build"/> | ||
<target name="build-subprojects"/> | ||
<target depends="init" name="build-project"> | ||
<echo message="${ant.project.name}: ${ant.file}"/> | ||
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false" source="${source}" target="${target}"> | ||
<src path="src/main/java"/> | ||
<classpath refid="infinitypfm-btc.classpath"/> | ||
</javac> | ||
</target> | ||
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"> | ||
<ant antfile="project.xml" dir="${infinitypfm-ui.location}" inheritAll="false" target="clean"/> | ||
<ant antfile="project.xml" dir="${infinitypfm-ui.location}" inheritAll="false" target="build"> | ||
<propertyset> | ||
<propertyref name="build.compiler"/> | ||
</propertyset> | ||
</ant> | ||
</target> | ||
<target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler"> | ||
<copy todir="${ant.library.dir}"> | ||
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/> | ||
</copy> | ||
<unzip dest="${ant.library.dir}"> | ||
<patternset includes="jdtCompilerAdapter.jar"/> | ||
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/> | ||
</unzip> | ||
</target> | ||
<target description="compile project with Eclipse compiler" name="build-eclipse-compiler"> | ||
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/> | ||
<antcall target="build"/> | ||
</target> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<project basedir="." default="build" name="infinitypfm-common"> | ||
<property environment="env"/> | ||
<property name="infinitypfm-ui.location" value="../infinitypfm-ui"/> | ||
<property name="ECLIPSE_HOME" value="${user.home}/eclipse/jee-neon2/eclipse/"/> | ||
<property name="debuglevel" value="source,lines,vars"/> | ||
<property name="target" value="1.8"/> | ||
<property name="source" value="1.8"/> | ||
<path id="infinitypfm-common.classpath"> | ||
<pathelement location="bin"/> | ||
<pathelement location="/usr/share/java/commons-codec.jar"/> | ||
<pathelement location="/usr/share/java/commons-lang.jar"/> | ||
<pathelement location="/usr/share/java/gettext-commons.jar"/> | ||
<pathelement location="/usr/share/java/jackson-core-lgpl.jar"/> | ||
</path> | ||
<target name="init"> | ||
<mkdir dir="bin"/> | ||
<copy includeemptydirs="false" todir="bin"> | ||
<fileset dir="src/main/java"> | ||
<exclude name="**/*.java"/> | ||
</fileset> | ||
</copy> | ||
</target> | ||
<target name="clean"> | ||
<delete dir="bin"/> | ||
</target> | ||
<target depends="clean" name="cleanall"/> | ||
<target depends="build-subprojects,build-project" name="build"/> | ||
<target name="build-subprojects"/> | ||
<target depends="init" name="build-project"> | ||
<echo message="${ant.project.name}: ${ant.file}"/> | ||
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false" source="${source}" target="${target}"> | ||
<src path="src/main/java"/> | ||
<classpath refid="infinitypfm-common.classpath"/> | ||
</javac> | ||
</target> | ||
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"> | ||
<ant antfile="project.xml" dir="${infinitypfm-ui.location}" inheritAll="false" target="clean"/> | ||
<ant antfile="project.xml" dir="${infinitypfm-ui.location}" inheritAll="false" target="build"> | ||
<propertyset> | ||
<propertyref name="build.compiler"/> | ||
</propertyset> | ||
</ant> | ||
</target> | ||
<target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler"> | ||
<copy todir="${ant.library.dir}"> | ||
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/> | ||
</copy> | ||
<unzip dest="${ant.library.dir}"> | ||
<patternset includes="jdtCompilerAdapter.jar"/> | ||
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/> | ||
</unzip> | ||
</target> | ||
<target description="compile project with Eclipse compiler" name="build-eclipse-compiler"> | ||
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/> | ||
<antcall target="build"/> | ||
</target> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<project basedir="." default="build" name="infinitypfm-ui"> | ||
<property environment="env"/> | ||
<property name="ECLIPSE_HOME" value="${user.home}/eclipse/jee-neon2/eclipse/"/> | ||
<property name="infinitypfm-btc.location" value="../infinitypfm-btc"/> | ||
<property name="infinitypfm-common.location" value="../infinitypfm-common"/> | ||
<property name="debuglevel" value="source,lines,vars"/> | ||
<property name="target" value="1.8"/> | ||
<property name="source" value="1.8"/> | ||
<path id="infinitypfm-btc.classpath"> | ||
<pathelement location="${infinitypfm-btc.location}/bin"/> | ||
<pathelement location="/usr/share/java/json-lib.jar"/> | ||
<pathelement location="/usr/share/java/commons-httpclient.jar"/> | ||
<pathelement location="/usr/share/java/commons-lang.jar"/> | ||
</path> | ||
<path id="infinitypfm-common.classpath"> | ||
<pathelement location="${infinitypfm-common.location}/bin"/> | ||
<pathelement location="/usr/share/java/commons-codec.jar"/> | ||
<pathelement location="/usr/share/java/commons-lang.jar"/> | ||
<pathelement location="/usr/share/java/gettext-commons.jar"/> | ||
<pathelement location="/usr/share/java/jackson-core-lgpl.jar"/> | ||
</path> | ||
<path id="infinitypfm-ui.classpath"> | ||
<pathelement location="bin"/> | ||
<path refid="infinitypfm-btc.classpath"/> | ||
<path refid="infinitypfm-common.classpath"/> | ||
<pathelement location="/usr/share/java/swt.jar"/> | ||
<pathelement location="/usr/share/java/ibatis.jar"/> | ||
<pathelement location="/usr/share/java/commons-io.jar"/> | ||
<pathelement location="/usr/share/java/commons-compress.jar"/> | ||
<pathelement location="/usr/share/java/commons-beanutils.jar"/> | ||
<pathelement location="/usr/share/java/commons-logging.jar"/> | ||
<pathelement location="/usr/share/java/json-lib.jar"/> | ||
<pathelement location="/usr/share/java/ezmorph.jar"/> | ||
<pathelement location="/usr/share/java/commons-collections3.jar"/> | ||
<pathelement location="/usr/share/java/hsqldb.jar"/> | ||
<pathelement location="/usr/share/java/commons-configuration.jar"/> | ||
</path> | ||
<target name="init"> | ||
<mkdir dir="bin"/> | ||
<copy includeemptydirs="false" todir="bin"> | ||
<fileset dir="src/main/java"> | ||
<exclude name="**/*.java"/> | ||
</fileset> | ||
</copy> | ||
<copy includeemptydirs="false" todir="bin"> | ||
<fileset dir="src/main/resources"> | ||
<exclude name="**/*.java"/> | ||
</fileset> | ||
</copy> | ||
</target> | ||
<target name="clean"> | ||
<delete dir="bin"/> | ||
</target> | ||
<target depends="clean" name="cleanall"> | ||
<ant antfile="project.xml" dir="${infinitypfm-btc.location}" inheritAll="false" target="clean"/> | ||
<ant antfile="project.xml" dir="${infinitypfm-common.location}" inheritAll="false" target="clean"/> | ||
</target> | ||
<target depends="build-subprojects,build-project" name="build"/> | ||
<target name="build-subprojects"> | ||
<ant antfile="project.xml" dir="${infinitypfm-btc.location}" inheritAll="false" target="build-project"> | ||
<propertyset> | ||
<propertyref name="build.compiler"/> | ||
</propertyset> | ||
</ant> | ||
<ant antfile="project.xml" dir="${infinitypfm-common.location}" inheritAll="false" target="build-project"> | ||
<propertyset> | ||
<propertyref name="build.compiler"/> | ||
</propertyset> | ||
</ant> | ||
</target> | ||
<target depends="init" name="build-project"> | ||
<echo message="${ant.project.name}: ${ant.file}"/> | ||
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false" source="${source}" target="${target}"> | ||
<src path="src/main/java"/> | ||
<src path="src/main/resources"/> | ||
<classpath refid="infinitypfm-ui.classpath"/> | ||
</javac> | ||
</target> | ||
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/> | ||
<target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler"> | ||
<copy todir="${ant.library.dir}"> | ||
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/> | ||
</copy> | ||
<unzip dest="${ant.library.dir}"> | ||
<patternset includes="jdtCompilerAdapter.jar"/> | ||
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/> | ||
</unzip> | ||
</target> | ||
<target description="compile project with Eclipse compiler" name="build-eclipse-compiler"> | ||
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/> | ||
<antcall target="build"/> | ||
</target> | ||
<target name="InfinityPfm (1)"> | ||
<java classname="org.infinitypfm.client.InfinityPfm" failonerror="true" fork="yes"> | ||
<classpath refid="infinitypfm-ui.classpath"/> | ||
</java> | ||
</target> | ||
</project> |