Skip to content

Commit

Permalink
Merge ant project loader for eclipse.
Browse files Browse the repository at this point in the history
  • Loading branch information
mogray5 committed Mar 18, 2018
2 parents a1e01af + 76aeb86 commit c93339e
Show file tree
Hide file tree
Showing 3 changed files with 214 additions and 0 deletions.
57 changes: 57 additions & 0 deletions infinitypfm-btc/project.xml
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>
58 changes: 58 additions & 0 deletions infinitypfm-common/project.xml
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>
99 changes: 99 additions & 0 deletions infinitypfm-ui/project.xml
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>

0 comments on commit c93339e

Please sign in to comment.