Skip to content

Commit

Permalink
remove precompiled files
Browse files Browse the repository at this point in the history
together with @cherni78
  • Loading branch information
ohumbel committed Aug 7, 2017
1 parent a77a51b commit 7e61a20
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -775,16 +775,25 @@ The readme text for the next release will be like:
</jar>
</target>

<target name="artifactory" depends="all-jars">
<target name="artifactory" depends="developer-build, all-jars, remove-precompiled-files">
<mkdir dir="${dist.dir}/artifactory" />
<delete includeemptydirs="false" failonerror="false">
<fileset dir="${dist.dir}/artifactory" includes="**/*" />
</delete>
<copy file="${dist.dir}/${jython.standalone.jar}" tofile="${dist.dir}/artifactory/${jython.artifactory.jar}" preservelastmodified="true" verbose="true" />
<copy file="${dist.dir}/${jython.standalone.jar}" tofile="${dist.dir}/artifactory/${jython.artifactory.jar}" preservelastmodified="true" verbose="true" />
<copy file="${dist.dir}/${jython.sources.jar}" tofile="${dist.dir}/artifactory/${jython.artifactory.sources.jar}" preservelastmodified="true" verbose="true" />
<copy file="${dist.dir}/${jython.javadoc.jar}" tofile="${dist.dir}/artifactory/${jython.artifactory.javadoc.jar}" preservelastmodified="true" verbose="true" />
</target>

</target>

<target name="remove-precompiled-files">
<jar destfile="${dist.dir}/temp/${jython.standalone.jar}">
<zipfileset src="${dist.dir}/${jython.standalone.jar}"
excludes="**/*$py.class, javatests/**, ch/**, shell/**, templates/**">
</zipfileset>
</jar>
<copy file="${dist.dir}/temp/${jython.standalone.jar}" tofile="${dist.dir}/${jython.standalone.jar}" overwrite="true" preservelastmodified="true" verbose="true" />
</target>

<target name="copy-license" if="do.checkout">
<echo>copy CPython LICENSE from ${checkout.dir}/python</echo>
<copy file="${checkout.dir}/python/LICENSE" tofile="${dist.dir}/LICENSE_CPython.txt" preservelastmodified="true" />
Expand Down

0 comments on commit 7e61a20

Please sign in to comment.