Skip to content

Commit

Permalink
Cleaned up handling of presence/absence of autogenerated files, so no…
Browse files Browse the repository at this point in the history
… more warnings

git-svn-id: https://cdk.svn.sourceforge.net/svnroot/cdk/trunk/cdk@9330 eb4e18e3-b210-0410-a6ab-dec725e4b171
  • Loading branch information
rajarshi committed Nov 1, 2007
1 parent 9afc1cb commit f1360a2
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -344,12 +344,18 @@
</javac>

<!-- create a autogenerated.classes file, if applicable, so that these files can be included in the jar -->
<copy file="${metainf}/${module}.autogenerated" tofile="${build}/${module}.autogenerated.classes"
failonerror="false"/>
<replace dir="${build}" token=".java" value="*.class">
<include name="*.autogenerated.classes"/>
</replace>

<if>
<istrue value="${module.autogenerated.present}"/>
<then>
<copy file="${metainf}/${module}.autogenerated" tofile="${build}/${module}.autogenerated.classes"
failonerror="false"/>
<replace dir="${build}" token=".java" value="*.class">
<include name="*.autogenerated.classes"/>
</replace>
</then>
</if>


<!-- and then jar things up into the module jar -->
<jar jarfile="${dist}/jar/cdk-${module}.jar">
<fileset dir="${build}">
Expand Down

0 comments on commit f1360a2

Please sign in to comment.