mirror of
https://github.com/jlengrand/Ivolution.git
synced 2026-03-10 08:21:18 +00:00
Adds package clean target. used to remove all undesired ressources into current folder
This commit is contained in:
15
build.xml
15
build.xml
@@ -13,6 +13,9 @@
|
||||
<property name="test.dir" value="${base.dir}/test"/>
|
||||
<property name="doc.dir" location="${base.dir}/doc"/>
|
||||
<property name="pkg.dir" value="${base.dir}/packaging"/>
|
||||
<!-- Specialized packaging folders -->
|
||||
<property name="old.pkg.dir" value="${pkg.dir}/old"/>
|
||||
<property name="curr.pkg.dir" value="${pkg.dir}/current"/>
|
||||
|
||||
<!-- Time -->
|
||||
<tstamp>
|
||||
@@ -56,6 +59,18 @@
|
||||
</py-run>
|
||||
</target>
|
||||
|
||||
<!-- package.clean : Moves old packages into proper folder -->
|
||||
<target name="package.clean" depends="init">
|
||||
<move todir="${old.pkg.dir}">
|
||||
<fileset dir="${curr.pkg.dir}">
|
||||
<include name="*/*"/>
|
||||
</fileset>
|
||||
</move>
|
||||
<delete includeEmptyDirs="true">
|
||||
<fileset dir="${curr.pkg.dir}" includes="**/*"/>
|
||||
</delete>
|
||||
</target>
|
||||
|
||||
|
||||
<!-- -->
|
||||
<target name="print" description="Just prints some information">
|
||||
|
||||
Reference in New Issue
Block a user