Skip to content

Commit

Permalink
Added id's to target for easy browsing with jEdit's StructureBrowser
Browse files Browse the repository at this point in the history
git-svn-id: https://cdk.svn.sourceforge.net/svnroot/cdk/trunk/cdk@1201 eb4e18e3-b210-0410-a6ab-dec725e4b171
  • Loading branch information
egonw committed Mar 31, 2003
1 parent 13a83cd commit 86b1231
Showing 1 changed file with 26 additions and 23 deletions.
49 changes: 26 additions & 23 deletions build.xml
Expand Up @@ -52,11 +52,13 @@
</fileset>
</path>

<target name="info">
<target id="info" name="info"
description="Gives information about the building process.">
<echo message="Using compiler: ${build.compiler}" />
</target>

<target name="check">
<target id="check" name="check"
description="Checks which parts of CDK can be build.">
<available classname="org.openscience.jmol.Crystal"
classpath="${lib}/libio/jmol.jar"
property="jmol.present"/>
Expand All @@ -68,7 +70,7 @@
property="java3D.present"/>
</target>

<target name="init" depends="check">
<target id="init" name="init" depends="check">
<tstamp />
<mkdir dir="${build}" />
<mkdir dir="${build.src}" />
Expand All @@ -83,7 +85,7 @@
</copy>
</target>

<target name="clean" description="Removes unneccessary stuff">
<target id="clean" name="clean" description="Removes autogenerated files.">
<delete>
<fileset dir="." includes="**/*~" />
<fileset dir="." includes="*.tar.gz" />
Expand All @@ -97,7 +99,7 @@
<delete dir="${reports.tests}" />
</target>

<target name="compile" description="Compiles all parts of the CDK">
<target id="compile" name="compile" description="Compiles all parts of the CDK">
<antcall target="compile-all"/>
</target>

Expand Down Expand Up @@ -138,7 +140,7 @@
patchfile="${src}/patches/org.openscience.cdk.applications.Viewer-NoJmol"/>
</target>

<target name="compile-apps" depends="dist-extra, dist-libio, dist-render,
<target id="compile-apps" name="compile-apps" depends="dist-extra, dist-libio, dist-render,
dist-render-with-java3d, patch-viewer-for-no-jmol">
<!-- Task to build the applications classes. Some require extra
jars, like those in ${lib}/libio -->
Expand All @@ -151,7 +153,7 @@
</javac>
</target>

<target name="compile-core" depends="init">
<target id="compile-core" name="compile-core" depends="init">
<echo message="Compiling classes for cdk-core module." />

<javac srcdir="${build.src}" destdir="${build}" optimize="${optimization}"
Expand All @@ -161,7 +163,7 @@
</javac>
</target>

<target name="compile-standard" depends="dist-core">
<target id="compile-standard" name="compile-standard" depends="dist-core">
<echo message="Compiling classes for cdk-standard module." />

<javac srcdir="${build.src}" destdir="${build}" optimize="${optimization}"
Expand All @@ -183,7 +185,7 @@
</javac>
</target>

<target name="compile-io" depends="init, dist-core, dist-standard">
<target id="compile-io" name="compile-io" depends="init, dist-core, dist-standard">
<echo message="Compiling classes for cdk-io module." />

<javac srcdir="${build.src}" destdir="${build}" optimize="${optimization}"
Expand All @@ -202,7 +204,7 @@
</javac>
</target>

<target name="compile-render" depends="init, dist-core, dist-standard">
<target id="compile-render" name="compile-render" depends="init, dist-core, dist-standard">
<echo message="Compiling classes for cdk-render module." />

<javac srcdir="${build.src}" destdir="${build}" optimize="${optimization}"
Expand All @@ -222,7 +224,7 @@
</javac>
</target>

<target name="compile-extra" depends="dist-standard">
<target id="compile-extra" name="compile-extra" depends="dist-standard">
<javac srcdir="${build.src}" destdir="${build}" optimize="${optimization}"
debug="${debug}" deprecation="${deprecation}">
<classpath refid="project.class.path" />
Expand All @@ -234,7 +236,7 @@
</javac>
</target>

<target name="compile-test" depends="compile">
<target id="compile-test" name="compile-test" depends="compile">
<!-- Task to build the test classes. -->
<javac srcdir="${build.src}/org/openscience/cdk/test"
destdir="${build}" optimize="${optimization}"
Expand Down Expand Up @@ -275,7 +277,7 @@
</javac>
</target>

<target name="dist.init">
<target id="dist.init" name="dist.init">
<mkdir dir="${dist}/jar" />

<mkdir
Expand Down Expand Up @@ -320,15 +322,15 @@

</target>

<target name="dist-core" depends="compile-core, dist.init">
<target id="dist-core" name="dist-core" depends="compile-core, dist.init">
<jar jarfile="${dist}/jar/cdk-core.jar">
<fileset dir="${build}">
<includesfile name="${src}/core.classes" />
</fileset>
</jar>
</target>

<target name="dist-extra" depends="dist-core, compile-extra">
<target id="dist-extra" name="dist-extra" depends="dist-core, compile-extra">
<jar jarfile="${dist}/jar/cdk-extra.jar">
<fileset dir="${build}">
<include name="org/openscience/cdk/**/**" />
Expand All @@ -355,15 +357,15 @@
</jar>
</target>

<target name="dist-apps" depends="compile-apps">
<target id="dist-apps" name="dist-apps" depends="compile-apps">
<jar jarfile="${dist}/jar/cdk-apps.jar" manifest="${src}/cdk-apps.manifest">
<fileset dir="${build}">
<includesfile name="${src}/applications.classes" />
</fileset>
</jar>
</target>

<target name="dist-test" depends="dist-all, compile-test">
<target id="dist-test" name="dist-test" depends="dist-all, compile-test">
<jar jarfile="${dist}/jar/cdk-test.jar">
<fileset dir="${build}">
<include name="org/openscience/cdk/test/**" />
Expand All @@ -386,7 +388,7 @@
</jar>
</target>

<target name="dist-io" depends="compile-io">
<target id="dist-io" name="dist-io" depends="compile-io">
<jar jarfile="${dist}/jar/cdk-io.jar">
<fileset dir="${build}">
<include name="org/openscience/cdk/io/**/*" />
Expand All @@ -395,7 +397,7 @@
</jar>
</target>

<target name="dist-render" depends="compile-render">
<target id="dist-render" name="dist-render" depends="compile-render">
<jar jarfile="${dist}/jar/cdk-render.jar">
<fileset dir="${build}">
<include name="org/openscience/cdk/renderer/**/*" />
Expand All @@ -418,7 +420,7 @@
</jar>
</target>

<target name="dist-standard" depends="compile-standard, dist.init">
<target id="dist-standard" name="dist-standard" depends="compile-standard, dist.init">
<jar jarfile="${dist}/jar/cdk-standard.jar">
<fileset dir="${build}">
<includesfile name="${src}/standard.classes" />
Expand All @@ -433,7 +435,7 @@
dist-render-with-java3d,
dist-apps" />

<target name="dist" depends="dist-all"
<target id="dist" name="dist" depends="dist-all"
description="Builds the jar files for all parts of the CDK."/>

<target name="sourcedist" depends="init">
Expand Down Expand Up @@ -523,7 +525,7 @@
</junit>
</target>

<target name="test" depends="dist-all, dist-test" description="Performs a full JUnit test for the CDK">
<target id="test" name="test" depends="dist-all, dist-test" description="Performs a full JUnit test for the CDK">
<junit printsummary="yes" haltonfailure="yes">
<classpath>
<pathelement path="${java.class.path}" />
Expand Down Expand Up @@ -592,7 +594,8 @@
</java>
</target>

<target name="run" depends="dist-core, dist-extra, dist-test, dist-standard" description="Runs an application">
<target id="run" name="run" depends="dist-core, dist-extra, dist-test, dist-standard"
description="Runs an application">
<java classname="org.openscience.cdk.test.tools.SaturationCheckerTest" fork="yes">
<classpath>
<pathelement location="${dist}/jar/cdk-core.jar" />
Expand Down

0 comments on commit 86b1231

Please sign in to comment.