|
|
|
|
@ -10,6 +10,26 @@
|
|
|
|
|
|
|
|
|
|
<target name="app-build" />
|
|
|
|
|
|
|
|
|
|
<target name="cifrar" depends="app-properties-exists" if="app.properties.exists" >
|
|
|
|
|
<echo message="Encrypting app.properties" />
|
|
|
|
|
<typedef classpathref="lib.tools.classpath" resource="net/jtools/classloadertask/antlib.xml">
|
|
|
|
|
<classpath>
|
|
|
|
|
<path refid="lib.tools.classpath"/>
|
|
|
|
|
</classpath>
|
|
|
|
|
</typedef>
|
|
|
|
|
<classloader loader="project">
|
|
|
|
|
<classpath>
|
|
|
|
|
<fileset dir="${lib.tools.dir}" includes="*.jar"/>
|
|
|
|
|
</classpath>
|
|
|
|
|
</classloader>
|
|
|
|
|
<taskdef name="cifrar-props" classpathref="lib.tools.classpath" classname="com.evolute.ant.PropsEncryptorTask" onerror="fail" />
|
|
|
|
|
<cifrar-props filepath="${properties.dir}${file.separator}app.properties" destpath="${app.build.dir}${file.separator}app.properties"/>
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
<target name="app-properties-exists">
|
|
|
|
|
<available file="${properties.dir}${file.separator}app.properties" property="app.properties.exists"/>
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
<target name="app-prepare" depends="load-properties">
|
|
|
|
|
<echo message="Dealing with package-info.java files (ant compilation problem workaround)" />
|
|
|
|
|
<delete failonerror="false">
|
|
|
|
|
@ -26,10 +46,11 @@
|
|
|
|
|
<exclude name="*.java" />
|
|
|
|
|
</fileset>
|
|
|
|
|
<fileset dir="${properties.dir}">
|
|
|
|
|
<include name="app.properties" />
|
|
|
|
|
<exclude name="app.properties" />
|
|
|
|
|
<include name="**/*" />
|
|
|
|
|
</fileset>
|
|
|
|
|
</copy>
|
|
|
|
|
<antcall target="cifrar"/>
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
<target name="app-clean" description="Removes all generated files" depends="load-static-properties">
|
|
|
|
|
|