ADD: Additional target + deffering between develop and release; use
authorJanis Streib <janis@dogcraft.de>
Tue, 26 Aug 2014 21:27:11 +0000 (23:27 +0200)
committerJanis Streib <janis@dogcraft.de>
Tue, 26 Aug 2014 22:43:32 +0000 (00:43 +0200)
dieffrent logo for develop target

build.xml
static/static/images/cacert4-test.png [new file with mode: 0644]

index b7bf7b9f71a28d6bdccd9c712fb11bd087ceab2c..458ee4df389285b1d0c7e32c975055dc95677414 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<project basedir="." default="all" name="cacert-gigi">
+<project basedir="." default="develop" name="cacert-gigi">
        <property environment="env" />
        <property name="junit.output.dir" value="junit" />
        <property name="debuglevel" value="source,lines,vars" />
                        includes="gigi.jar,native/*.so,doc/tableStructure.sql,static/**,templates/**" />
        </target>
        <target name="static-bundle">
-               <tar destfile="static.tar.gz" compression="gzip" basedir="."
-                       includes="doc/tableStructure.sql,static/**,templates/**" />
+           <mkdir dir="work"/>
+           <mkdir dir="work/static"/>
+           <copy todir="work/static">
+               <fileset dir="static"/>
+               </copy>
+               <move file="work/static/static/images/cacert4-test.png" tofile="work/static/static/images/cacert4.png"/>
+           <delete file="work/static/static/image/cacert4-test.png"/>
+               <tar destfile="static.tar.gz" compression="gzip" basedir="work"
+                       includes="../doc/tableStructure.sql,**,templates/**" />
+       </target>
+       
+       <target name="static-bundle-release">
+               <mkdir dir="work"/>
+           <mkdir dir="work/static"/>
+           <copy todir="work/static">
+               <fileset dir="static"/>
+               </copy>
+               <delete file="work/static/static/image/cacert4-test.png"/>
+               <tar destfile="static.tar.gz" compression="gzip" basedir="work"
+                       includes="../doc/tableStructure.sql,**,templates/**" />
        </target>
 
-       <target name="all" depends="bundle,static-bundle" />
-
+       <target name="develop" depends="bundle,static-bundle" />
 
+       <target name="release" depends="bundle,static-bundle-release" />
+       
        <target depends="init,build-project" name="build-project-test">
                <echo message="${ant.project.name}: ${ant.file}" />
                <javac debug="true" debuglevel="${debuglevel}" destdir="bintest"
diff --git a/static/static/images/cacert4-test.png b/static/static/images/cacert4-test.png
new file mode 100644 (file)
index 0000000..d742232
Binary files /dev/null and b/static/static/images/cacert4-test.png differ