Skip to content

Commit

Permalink
added some ant task that will deal with building the jsbml modules
Browse files Browse the repository at this point in the history
  • Loading branch information
niko-rodrigue committed Feb 4, 2011
1 parent a096664 commit e0ca1ec
Showing 1 changed file with 43 additions and 7 deletions.
50 changes: 43 additions & 7 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,13 @@
classpathref="classpath">
</javac>
<manifest file="${build.dest}/META-INF/MANIFEST.MF">
<section name="${Name}">
<attribute name="Specification-Title" value="${Name}"/>
<attribute name="Specification-Version" value="${api.version}"/>
<attribute name="Implementation-Title" value="${Name}"/>
<attribute name="Implementation-Version" value="${version}"/>
</section>
</manifest>
<section name="${Name}">
<attribute name="Specification-Title" value="${Name}"/>
<attribute name="Specification-Version" value="${api.version}"/>
<attribute name="Implementation-Title" value="${Name}"/>
<attribute name="Implementation-Version" value="${version}"/>
</section>
</manifest>

</target>

Expand Down Expand Up @@ -389,6 +389,42 @@
</target>


<!-- =================================================================== -->
<!-- Build the jsbml modules -->
<!-- =================================================================== -->
<target name="module">

<!-- TODO : we need to add a dist target for each modules
then, we need to inherit a property that give us the name of the dist folder
and copy it to the jsbml dist folder under the modules sub-folder.
Or if we cannot get a property from a sub ant task, just copy everything that is
on the dist folder of the module.
-->
<ant dir="${basedir}/../modules/cellDesigner" target="clean" />
<ant dir="${basedir}/../modules/cellDesigner" target="jar" />
<ant dir="${basedir}/../modules/cellDesigner" target="javadoc"/>

<ant dir="${basedir}/../modules/libSBMLio" target="clean" />
<ant dir="${basedir}/../modules/libSBMLio" target="jar" />
<ant dir="${basedir}/../modules/libSBMLio" target="javadoc"/>

</target>

<!-- =================================================================== -->
<!-- Copy the jsbml modules to the dist folder -->
<!-- =================================================================== -->
<target name="module-dist">

<mkdir dir="${dist.dir}/modules"/>

<mkdir dir="${dist.dir}/modules/cellDesigner"/>

<mkdir dir="${dist.dir}/modules/libSBMLio" />

<!-- TODO : copy all the necessary files from the modules -->

</target>

<!-- =================================================================== -->
<!-- Cleans everything -->
<!-- =================================================================== -->
Expand Down

0 comments on commit e0ca1ec

Please sign in to comment.