code refactor;

libs refactor;

git-svn-id: https://svn.coded.pt/svn/SIPRP@1711 bb69d46d-e84e-40c8-a05a-06db0d633741
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Diogo Neves 14 years ago
parent e56dd4cf08
commit 23250c2455

@ -0,0 +1,60 @@
<project name="evo-app-build-common" basedir="../../">
<import file="evo-app-compile-common.xml" />
<target name="app-build" description="Compiles all application classes" depends="app-prepare,app-pre-build">
<mkdir dir="${app.build.dir}" />
<depend srcdir="${app.src.dir}" destdir="${app.build.dir}" cache="${app.dependencies.chache.dir}">
<include name="**/*.java" />
</depend>
<javac srcdir="${app.src.dir}" destdir="${app.build.dir}" classpathref="app.build.classpath" debug="on" deprecation="on" fork="true" memoryMaximumSize="512M" />
<antcall target="app-post-build"/>
</target>
<target name="run-codegen" description="Runs codegen for this project" depends="load-properties">
<available file="${codegen.project.ant}" property="codegen.project.exists"/>
<antcall target="show-codegen-project-error"/>
<antcall target="run-codegen-if-project-exists"/>
</target>
<target name="run-codegen-if-project-exists" if="codegen.project.exists">
<available file="${codegen.properties.file}" property="codegen.properties.exists"/>
<antcall target="show-codegen-properties-error"/>
<antcall target="run-codegen-if-exists"/>
</target>
<target name="show-codegen-project-error" unless="codegen.project.exists">
<echo message="Codegen's build-file not found at ${codegen.project.ant}"/>
</target>
<target name="run-codegen-if-exists" if="codegen.properties.exists">
<ant inheritall="false" antfile="${codegen.project.ant}" target="app-run">
<property name="app.run.args" value="${basedir}" />
</ant>
</target>
<target name="show-codegen-properties-error" unless="codegen.properties.exists">
<echo message="Project's codegen configuration file not found at ${codegen.properties.file}"/>
</target>
<target name="run-batch-deployer" description="Batches multiple deploys" depends="load-properties">
<path id="deployer.classpath">
<fileset dir="${lib.tools.dir}" />
<path refid="app.build.classpath" />
</path>
<java jvmversion="${app.java.version}" classname="${deployer.main}" classpathref="deployer.classpath" fork="true" dir="${app.build.dir}">
<arg value="${basedir}"/>
</java>
</target>
<target name="run-LEAF" description="Runs LEAF for this project" depends="load-properties">
<path id="leaf.classpath">
<fileset dir="${lib.tools.dir}" />
<path refid="app.build.classpath" />
</path>
<java jvmversion="${app.java.version}" classname="${leaf.main}" classpathref="leaf.classpath" fork="true" dir="${app.build.dir}">
<arg value="${app.src.dir}"/>
</java>
</target>
</project>

@ -0,0 +1,62 @@
<project name="evo-app-build-obfuscate-common" basedir="../../">
<path id="lib.tools.classpath"/>
<target name="obfuscate">
<taskdef resource="proguard/ant/task.properties" classpath="${app.dir}/lib.tools/proguard.jar" />
<delete file="${app.deploy.dist.dir}/${evolute.jar.name}" failonerror="false" />
<proguard printmapping="${app.dir}/${app.name}.map">
<injar file="${app.lib.dir}/evologger.jar" />
<outjar file="${app.deploy.dist.lib.dir}/evologger.jar" />
<injar file="${app.lib.dir}/evolute.jar" />
<outjar file="${app.deploy.dist.lib.dir}/evolute.jar" />
<injar file="${app.deploy.dist.dir}/${app.jar.name}" />
<outjar file="${app.deploy.dist.dir}/${app.jar.name}_guard.jar" />
<libraryjar file="${evolute.lib.dir}" />
<libraryjar file="${app.lib.dir}" />
<libraryjar file="${java.home}/lib/jce.jar" />
<libraryjar file="${java.home}/lib/jsse.jar" />
<libraryjar file="${java.home}/lib/rt.jar" />
-printseeds
-verbose
-dontskipnonpubliclibraryclasses
-keepclasseswithmembers public class * {
public static void main(java.lang.String[]);
}
</proguard>
<delete file="${app.deploy.dist.dir}/${app.jar.name}" failonerror="true" />
<move file="${app.deploy.dist.dir}/${app.jar.name}_guard.jar" tofile="${app.deploy.dist.dir}/${app.jar.name}" />
</target>
<target name="ProguardTask">
<property file="${app.version.file}" prefix="version" />
<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"/>
<fileset dir="${app.lib.dir}" includes="*.jar"/>
</classpath>
</classloader>
<taskdef name="proguardtask" classpathref="lib.tools.classpath" classname="com.evolute.ant.ProguardTask" onerror="ignore" />
<proguardtask filePath="${app.dir}/${app.name}.map" version="${version.major}.${version.minor}.${version.build}" fileName="${app.name}.map" projectName="${app.name}" />
</target>
<target name="pre-deploy">
<antcall target="obfuscate" />
<antcall target="ProguardTask" />
</target>
</project>

@ -0,0 +1,108 @@
<project name="evo-app-compile-common" basedir="../../">
<import file="evo-app-load-properties.xml" />
<!-- BUILD -->
<target name="app-post-build" />
<target name="app-pre-build" />
<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">
<fileset dir="${app.build.dir}" includes="**/package-info.java"/>
</delete>
<echo message="Copying non-java files to build directory" />
<copy failonerror="false" overwrite="true" verbose="true" todir="${app.build.dir}" file="${app.version.file}"/>
<copy verbose="true" failonerror="true" overwrite="true" todir="${app.build.dir}">
<fileset dir="${app.src.dir}">
<exclude name="**/*.java" />
<exclude name="*.java" />
</fileset>
<fileset dir="${properties.dir}">
<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">
<delete verbose="true" failonerror="false">
<fileset dir="${app.build.dir}">
<include name="**/*" />
</fileset>
</delete>
<delete dir="${app.build.dir}" verbose="true" failonerror="true" />
<delete dir="${app.dist.dir}" verbose="true" failonerror="true" />
<delete dir="${app.deploy.dist.dir}" verbose="true" failonerror="true" />
</target>
<target name="app-run" description="Runs the application" depends="app-build">
<java jvmversion="${app.java.version}" classname="${app.main}" maxmemory="${app.max.mem}" classpathref="app.build.classpath" fork="true" dir="${app.build.dir}">
<jvmarg value="${jvm.run.args}" />
<arg value="${app.run.args}"/>
</java>
</target>
<!-- JAR -->
<target name="app-deploy-create-jar" depends="app-clean, app-build" >
<mkdir dir="${app.deploy.dist.dir}" />
<jar destfile="${app.deploy.dist.dir}/${app.jar.name}" >
<fileset dir="${app.build.dir}">
<include name="**/*" />
</fileset>
</jar>
<copy todir="${app.deploy.dist.lib.dir}">
<fileset dir="${app.lib.dir}">
<include name="**/*" />
</fileset>
</copy>
</target>
<target name="app-create-jar" description="Make application Jar" depends="app-clean, app-build" >
<pathconvert property="jar.classpath.converted" refid="app.jar.classpath" pathsep=" ">
<map from="${app.dir}/" to="" />
<map from="${basedir}/" to="" />
</pathconvert>
<mkdir dir="${app.dist.dir}" />
<jar destfile="${app.dist.dir}/${app.jar.name}">
<fileset dir="${app.build.dir}">
<include name="**/*" />
</fileset>
<manifest>
<attribute name="Main-Class" value="${app.main}" />
<attribute name="Class-Path" value="${jar.classpath.converted}" />
</manifest>
</jar>
<copy todir="${app.dist.lib.dir}">
<fileset dir="${app.lib.dir}">
<include name="**/*" />
</fileset>
</copy>
</target>
</project>

@ -0,0 +1,195 @@
<project name="evo-app-deploy-common" basedir="../../">
<!-- PROPERTIES -->
<property name="properties.key.name" value="name" />
<property name="properties.key.major" value="major" />
<property name="properties.key.minor" value="minor" />
<property name="properties.key.build" value="build" />
<!-- SETUP -->
<target name="prepare-deploy-location">
<sshexec trust="yes" host="${app.deploy.server}" username="${deploy.user}" command="sh ${deploy.prepare.script} ${app.name}" password="${deploy.password}" />
</target>
<target name="run-jnlp-task" >
<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="generate-jnlp" classpathref="lib.tools.classpath" classname="com.evolute.ant.JNLPGeneratorTask" onerror="ignore"/>
<generate-jnlp propertiesDir="${properties.dir}" basedir="${app.dir}" />
</target>
<!-- DEPLOY -->
<target name="load-properties" />
<target name="pre-deploy" />
<target name="ask-deploy.version" unless="deploy.version">
<input defaultvalue="" addproperty="deploy.version">
<handler classpathref="lib.tools.classpath" classname="com.evolute.ant.VersionInputHandler" />
</input>
</target>
<target name="ask-deploy.jars" unless="deploy.jars">
<input defaultvalue="${basedir}:${app.appName}" addproperty="deploy.jars">
<handler classpathref="lib.tools.classpath" classname="com.evolute.ant.JarInputHandler" />
</input>
</target>
<target name="ask-deploy.user" unless="deploy.user">
<input message="" addproperty="deploy.user">
<handler classpathref="lib.tools.classpath" classname="com.evolute.ant.UserInputHandler" />
</input>
</target>
<target name="ask-deploy.password" unless="deploy.password">
<input message="password:>" addproperty="deploy.password">
<handler classpathref="lib.tools.classpath" classname="com.evolute.ant.PasswordInputHandler" />
</input>
</target>
<target name="app-deploy-version" if="deploy.version" depends="ask-deploy.jars,ask-deploy.user,ask-deploy.password" >
<antcall target="app-deploy-create-jar"/>
<antcall target="pre-deploy" />
<antcall target="run-jnlp-task" />
<condition property="do.abort">
<equals arg1="${deploy.jars}" arg2="null"/>
</condition>
<fail if="do.abort">Deploy cancelled</fail>
<antcall target="app-deploy-version-jars"/>
</target>
<target name="app-version-increase-test">
<property name="TESTDEPLOY" value="yes"/>
<antcall target="app-version-increase-build"/>
</target>
<target name="app-version-increase-major">
<propertyfile file="${app.version.file}" comment="${app.version.comment}" >
<entry key="${properties.key.name}" value="${app.name}"/>
<entry key="${properties.key.major}" type="int" operation="+" value="1"/>
<entry key="${properties.key.minor}" type="int" operation="=" value="0"/>
<entry key="${properties.key.build}" type="int" operation="=" value="0"/>
</propertyfile>
<antcall target="app-deploy-version"/>
</target>
<target name="app-version-increase-minor">
<propertyfile file="${app.version.file}" comment="${app.version.comment}" >
<entry key="${properties.key.name}" value="${app.name}"/>
<entry key="${properties.key.major}" type="int" operation="+" value="0"/>
<entry key="${properties.key.minor}" type="int" operation="+" value="1"/>
<entry key="${properties.key.build}" type="int" operation="=" value="0"/>
</propertyfile>
<antcall target="app-deploy-version"/>
</target>
<target name="app-version-increase-build">
<propertyfile file="${app.version.file}" comment="${app.version.comment}" >
<entry key="${properties.key.name}" value="${app.name}"/>
<entry key="${properties.key.major}" type="int" operation="+" value="0"/>
<entry key="${properties.key.minor}" type="int" operation="+" value="0"/>
<entry key="${properties.key.build}" type="int" operation="+" value="1"/>
</propertyfile>
<antcall target="app-deploy-version"/>
</target>
<target name="deploy-test" if="TESTDEPLOY">
<sshexec trust="yes" host="${app.deploy.server}" username="${deploy.user}" command="sh ${app.deploy.test.script} ${app.name}" password="${deploy.password}" />
</target>
<target name="deploy-production" unless="TESTDEPLOY">
<echo message="Deploying to ${deploy.user}@${app.deploy.server}"/>
<sshexec failonerror="true" trust="yes" host="${app.deploy.server}" username="${deploy.user}" command="sh ${app.deploy.production.script} ${app.name}" password="${deploy.password}" />
</target>
<target name="app-deploy-version-jars-user-pass" if="deploy.password">
<antcall target="prepare-deploy-location" />
<echo message="Uploading files: ${deploy.jars}"/>
<scp verbose="yes" todir="${deploy.user}@${app.deploy.server}:${app.deploy.path}" password="${deploy.password}" sftp="true" trust="true" >
<fileset dir="${app.deploy.dist.dir}" includes="${deploy.jars}"/>
</scp>
<echo message="Uploading jnlps"/>
<scp verbose="yes" todir="${deploy.user}@${app.deploy.server}:${app.deploy.jnlp.path}" password="${deploy.password}" sftp="true" trust="true" >
<fileset dir="${jnlp.dir}" includes="**/*.jnlp"/>
</scp>
<antcall target="deploy-test"/>
<antcall target="deploy-production"/>
</target>
<target name="app-deploy-version-jars-user" if="deploy.user">
<antcall target="app-deploy-version-jars-user-pass"/>
</target>
<target name="app-deploy-version-jars" if="deploy.jars" >
<antcall target="app-deploy-version-jars-user" />
</target>
<target name="app-deploy-choose-version" if="deploy.version" >
<antcall target="app-version-increase-${deploy.version}" />
</target>
<target name="app-deploy" description="Deploys application" depends="load-properties,ask-deploy.version">
<antcall target="app-deploy-choose-version"/>
<antcall target="app-create-software-evo-licensor"/>
</target>
<target name="app-create-software-evo-licensor" depends="load-properties">
<property file="${app.version.file}" prefix="version" />
<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"/>
<fileset dir="${app.lib.dir}" includes="*.jar"/>
</classpath>
</classloader>
<taskdef name="createTask" classpathref="lib.tools.classpath" classname="com.evolute.ant.CreateSoftwareAntTask" onerror="ignore"/>
<createTask projectVersion="${version.major}.${version.minor}.${version.build}" projectName="${app.name}" />
</target>
<!-- DOCUMENTATION -->
<target name="docs-generate-upload" description="Generates and uploads the project documentation" depends="load-properties,docs-generate,docs-upload"/>
<target name="docs-generate">
<mkdir dir="${docs.api.dir}"/>
<javadoc verbose="true" classpath="lib.docs.classpath" destdir="${docs.api.dir}" docencoding="UTF-8" doctitle="${app.name}" sourcepath="${app.src.dir}" />
</target>
<target name="docs-upload">
<input message="" addproperty="deploy.user">
<handler classpathref="lib.tools.classpath" classname="com.evolute.ant.UserInputHandler" />
</input>
<input message="password:>" addproperty="deploy.password">
<handler classpathref="lib.tools.classpath" classname="com.evolute.ant.PasswordInputHandler" />
</input>
<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>
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="sh ${app.docs.prepare.script} ${app.name}" password="${deploy.password}" />
<scp verbose="yes" todir="${deploy.user}@${app.deploy.docs.server}:${app.deploy.docs.path}" password="${deploy.password}" sftp="true" trust="true" >
<fileset dir="${docs.dir}"/>
</scp>
</target>
</project>

@ -0,0 +1,89 @@
<project name="evo-app-load-properties" basedir="../../">
<property name="properties.base.dir" value="${basedir}/properties" />
<property name="lib.tools.dir" value="${basedir}/lib.tools" />
<path id="lib.tools.classpath">
<fileset dir="${lib.tools.dir}" />
</path>
<target name="load-static-properties" >
<property name="app.dir" value="${basedir}" />
<property name="evolute.dir" value="${basedir}/../evolute" />
<property name="evolute.lib.dir" value="${evolute.dir}/lib" />
<property name="evolute.lib.tools.dir" value="${evolute.dir}/lib.tools" />
<property name="evolute.ant.dir" value="${evolute.dir}/ant" />
<property name="evolute.jar.name" value="evolute.jar" />
<property name="docs.dir" value="${app.dir}/docs" />
<property name="docs.api.dir" value="${docs.dir}/api" />
<property name="app.src.dir" value="${app.dir}/src" />
<property name="app.lib.dir" value="${app.dir}/lib" />
<property name="deploy.project.relative.lib.dir" value="lib" />
<property name="app.dist.dir" value="${app.dir}/dist" />
<property name="app.dist.lib.dir" value="${app.dist.dir}/lib" />
<property name="app.deploy.dist.dir" value="${app.dir}/deploy" />
<property name="app.deploy.dist.lib.dir" value="${app.deploy.dist.dir}/lib" />
<property name="app.build.dir" value="${app.dir}/build" />
<property name="app.dependencies.chache.dir" value="${app.dir}/dependenciesCache" />
<property name="codegen.project.ant" value="${basedir}/../codegen/build.xml"/>
<property name="codegen.properties.file" value="${basedir}/properties/codegen.xml"/>
<property name="leaf.project.ant" value="${basedir}/../LEAF/build.xml"/>
<path id="app.jar.classpath">
<fileset dir="${app.lib.dir}" />
</path>
<path id="app.build.classpath">
<pathelement location="${app.build.dir}" />
<path refid="app.jar.classpath" />
<path refid="lib.tools.classpath" />
</path>
<path id="lib.docs.classpath">
<path refid="lib.tools.classpath" />
<path refid="app.jar.classpath" />
</path>
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="lib.tools.classpath" />
</target>
<target name="load-properties-file" >
<property name="properties.dir" value="${properties.base.dir}" />
<property file="${properties.dir}/app.properties" />
<property file="${properties.dir}/project.properties" />
<antcall target="load-static-properties"/>
</target>
<target name="load-properties" depends="load-static-properties,load-properties-file">
<property name="app.name" value="${app.appName}" />
<property name="app.main" value="${app.main-class}" />
<property name="app.jar.name" value="${app.name}.jar" />
<property name="jnlp.dir" value="${app.dir}/jnlp" />
<property name="jnlp.extensions.dir" value="${jnlp.dir}/extensions" />
<property name="app.java.version" value="${java.version}" />
<property name="app.deploy.server" value="www.evolute.pt" />
<property name="app.deploy.path" value="/home/software/src_${app.name}" />
<property name="app.deploy.jnlp.path" value="${app.deploy.path}/jnlp" />
<property name="app.deploy.production.script" value="/home/software/auto_deploy.sh ${app.name}" />
<property name="app.deploy.test.script" value="/home/software/auto_test_deploy.sh ${app.name}" />
<property name="deploy.prepare.script" value="/home/software/auto_prepare_deploy.sh ${app.name}" />
<property name="app.deploy.docs.server" value="${app.deploy.server}" />
<property name="app.deploy.docs.path" value="/home/software/public_html/docs/${app.name}" />
<property name="app.docs.prepare.script" value="/home/software/auto_prepare_docs_upload.sh" />
<property name="app.version.file" value="${properties.base.dir}/version.properties" />
<property name="app.version.comment" value="${app.name} versioning file" />
<property name="app.run.args" value="" />
<property name="jvm.run.args" value="-XX:-UseGCOverheadLimit" />
<property name="app.ws.wsdl.url" value="${app.ws.wsdl.url.protocol}://${app.ws.wsdl.url.host}:${app.ws.wsdl.url.port}${app.ws.wsdl.url.path}" />
<property name="app.max.mem" value="512M" />
<property name="leaf.main" value="com.evolute.leaf.Main" />
<property name="deployer.main" value="com.evolute.deploy.Main" />
</target>
</project>

@ -0,0 +1,22 @@
<project name="evo-app-multiple-client-common" basedir="../../">
<target name="load-properties-file" depends="ask-target">
<property file="${properties.dir}/app.properties" />
<property file="${properties.dir}/project.properties" />
<property file="${properties.base.dir}/app.properties" />
<property file="${properties.base.dir}/project.properties" />
<copy verbose="true" failonerror="true" overwrite="true" todir="${basedir}/build">
<fileset dir="${properties.dir}">
<include name="*" />
<include name="**/*" />
</fileset>
</copy>
</target>
<target name="ask-target" unless="properties.dir">
<input defaultvalue="${properties.base.dir}" addproperty="properties.dir">
<handler classpathref="lib.tools.classpath" classname="com.evolute.ant.ProjectClientInputHandler" />
</input>
</target>
</project>

@ -0,0 +1,113 @@
<project name="evo-app-build-5" basedir="../">
<import file="common/evo-app-load-properties.xml" />
<import file="common/evo-app-deploy-common.xml" />
<!-- CLASSPATH -->
<path id="app.jar.classpath">
<fileset dir="${app.lib.dir}" />
</path>
<path id="app.build.classpath">
<path refid="app.jar.classpath" />
<pathelement location="${app.build.dir}" />
</path>
<path id="svn.classpath">
<fileset dir="${evolute.lib.tools.dir}" />
</path>
<path id="jsch.classpath">
<fileset dir="${evolute.lib.tools.dir}" />
</path>
<path id="lib.tools.classpath">
<fileset dir="${lib.tools.dir}" />
</path>
<!-- BUILD -->
<target name="app-prepare" depends="load-properties">
<echo message="Copying non-java files to build directory" />
<copy todir="${app.build.dir}">
<fileset dir="${app.src.dir}">
<exclude name="**/*.java" />
<exclude name="*.java" />
</fileset>
<fileset dir="${properties.dir}">
<include name="*" />
<include name="**/*" />
</fileset>
</copy>
</target>
<target name="app-build" description="Compiles all application classes" depends="app-prepare">
<mkdir dir="${app.build.dir}" />
<depend srcdir="${app.src.dir}" destdir="${app.build.dir}" cache="${app.dependencies.chache.dir}">
<include name="**/*.java" />
</depend>
<javac srcdir="${app.src.dir}" destdir="${app.build.dir}" classpathref="app.build.classpath" debug="on" deprecation="on" fork="true" memoryMaximumSize="512M" source="1.5" target="1.5" />
<antcall target="app-datanucleus"/>
</target>
<target name="app-datanucleus">
<path id="jpox.enhancer.classpath">
<fileset dir="${lib.tools.dir}" />
<path refid="app.build.classpath" />
</path>
<taskdef name="jpoxEnhancer" description="JPOX Enhancer" classpathref="jpox.enhancer.classpath" classname="org.datanucleus.enhancer.tools.EnhancerTask" />
<jpoxEnhancer maxmemory="256M" classpathref="jpox.enhancer.classpath" dir="${app.build.dir}" verbose="true"/>
</target>
<target name="app-clean" description="Removes all generated files">
<delete failonerror="false">
<fileset dir="${app.build.dir}">
<include name="**/*" />
</fileset>
</delete>
<delete dir="${app.build.dir}" failonerror="false" />
<delete dir="${app.dist.dir}" failonerror="false" />
<delete dir="${app.deploy.dist.dir}" failonerror="false" />
</target>
<target name="app-run" description="Runs the application" depends="app-build">
<java classname="${app.main}" classpathref="app.build.classpath" fork="true" dir="${app.build.dir}" />
</target>
<!-- JAR -->
<target name="app-deploy-create-jar" depends="app-clean, app-build" >
<mkdir dir="${app.deploy.dist.dir}" />
<jar destfile="${app.deploy.dist.dir}/${app.jar.name}" >
<fileset dir="${app.build.dir}">
<include name="**/*" />
</fileset>
</jar>
<copy todir="${app.deploy.dist.lib.dir}">
<fileset dir="${app.lib.dir}">
<include name="**/*" />
</fileset>
</copy>
</target>
<target name="app-create-jar" description="Make application Jar" depends="app-clean, app-build" >
<pathconvert property="jar.classpath.converted" refid="app.jar.classpath" pathsep=" ">
<map from="${app.dir}/" to="" />
<map from="${basedir}/" to="" />
</pathconvert>
<mkdir dir="${app.dist.dir}" />
<jar destfile="${app.dist.dir}/${app.jar.name}">
<fileset dir="${app.build.dir}">
<include name="**/*" />
</fileset>
<manifest>
<attribute name="Main-Class" value="${app.main}" />
<attribute name="Class-Path" value="${jar.classpath.converted}" />
</manifest>
</jar>
<copy todir="${app.dist.lib.dir}">
<fileset dir="${app.lib.dir}">
<include name="**/*" />
</fileset>
</copy>
</target>
</project>

@ -0,0 +1,25 @@
<project name="evo-app-build-jdo" basedir="../">
<import file="common/evo-app-compile-common.xml" />
<import file="common/evo-app-deploy-common.xml" />
<target name="app-build" description="Compiles all application classes" depends="app-prepare,app-pre-build">
<mkdir dir="${app.build.dir}" />
<depend srcdir="${app.src.dir}" destdir="${app.build.dir}" cache="${app.dependencies.chache.dir}">
<include name="**/*.java" />
</depend>
<javac srcdir="${app.src.dir}" destdir="${app.build.dir}" classpathref="app.build.classpath" debug="on" deprecation="on" fork="true" memoryMaximumSize="512M" />
<antcall target="app-datanucleus"/>
<antcall target="app-post-build"/>
</target>
<target name="app-datanucleus">
<path id="jpox.enhancer.classpath">
<fileset dir="${lib.tools.dir}" />
<path refid="app.build.classpath" />
</path>
<taskdef name="jpoxEnhancer" description="JPOX Enhancer" classpathref="jpox.enhancer.classpath" classname="org.datanucleus.enhancer.tools.EnhancerTask" />
<jpoxEnhancer maxmemory="256M" classpathref="jpox.enhancer.classpath" dir="${app.build.dir}" verbose="true"/>
</target>
</project>

@ -0,0 +1,6 @@
<project name="evo-app-build-obfuscate-jdo" basedir="../">
<import file="common/evo-app-compile-common.xml" />
<import file="common/evo-app-deploy-common.xml" />
</project>

@ -0,0 +1,7 @@
<project name="evo-app-build-obfuscate" basedir="../">
<import file="common/evo-app-build-common.xml" />
<import file="common/evo-app-build-obfuscate-common.xml" />
<import file="common/evo-app-deploy-common.xml" />
</project>

@ -0,0 +1,6 @@
<project name="evo-app-build" basedir="../">
<import file="common/evo-app-build-common.xml" />
<import file="common/evo-app-deploy-common.xml" />
</project>

@ -0,0 +1,7 @@
<project name="evo-app-multiple-client-build" basedir="../">
<import file="common/evo-app-multiple-client-common.xml" />
<import file="common/evo-app-build-common.xml" />
<import file="common/evo-app-deploy-common.xml" />
</project>

@ -0,0 +1,6 @@
<project name="evo-app-multiple-client-build" basedir="../">
<import file="common/evo-app-multiple-client-common.xml" />
<import file="evo-app-build-obfuscate.xml" />
</project>

@ -0,0 +1,31 @@
<project name="evo-app-ws-client-build" basedir="../">
<import file="common/evo-app-build-common.xml" />
<path id="jaxws.classpath">
<path refid="lib.tools.classpath"/>
<pathelement location="${java.home}/../lib/tools.jar" />
</path>
<target name="receitas-gen-client" depends="app-build" description="generates client">
<taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport" onerror="ignore">
<classpath refid="lib.tools.classpath" />
</taskdef>
<java fork="false" classname="com.evolute.ssl.InstallCert" classpathref="app.build.classpath">
<arg value="${app.ws.wsdl.url.host}"/>
<arg value="${app.ws.wsdl.url.port}"/>
<arg value="${app.ssl.truststore.file}"/>
<arg value="${app.ssl.truststore.pass}"/>
<arg value="true"/>
<arg value="true"/>
</java>
<wsimport fork="false" debug="true" verbose="true" keep="true" sourcedestdir="${app.src.dir}" package="${app.ws.dest.package}" wsdl="${app.ws.wsdl.url}">
<jvmarg value="-Djavax.net.ssl.trustStore=${basedir}/jssecacerts" />
<jvmarg value="-Djavax.net.ssl.trustStorePassword=changeit" />
<jvmarg value="-Djavax.net.ssl.keyStore=${basedir}/jssecacerts" />
<jvmarg value="-Djavax.net.ssl.keyStorePassword=changeit" />
</wsimport>
</target>
</project>

@ -0,0 +1,14 @@
<project name="evo-gwt-library-build" default="library-deploy" basedir="../">
<target name="app-pre-build">
<copy verbose="true" failonerror="true" overwrite="true" todir="${app.build.dir}">
<fileset dir="${app.src.dir}">
<include name="**/*.java" />
<include name="*.java" />
</fileset>
</copy>
</target>
<import file="evo-library-build.xml" />
</project>

@ -0,0 +1,21 @@
<project name="evo-library-build" default="library-deploy" basedir="../">
<import file="common/evo-app-build-common.xml" />
<target name="deploy-default-project" depends="app-create-jar">
<mkdir dir="${deploy.project.dir}${file.separator}${deploy.project.relative.lib.dir}"/>
<copy failonerror="false" verbose="true" file="${app.dist.dir}/${app.jar.name}" toDir="${deploy.project.dir}${file.separator}${deploy.project.relative.lib.dir}" />
</target>
<target name="deploy-project" if="deploy.project.dir">
<antcall target="deploy-default-project" />
</target>
<target name="library-deploy" description="Deploys current version of evolute utilities" depends="load-static-properties">
<input defaultvalue="${basedir}" addproperty="deploy.project.dir">
<handler classpathref="lib.tools.classpath" classname="com.evolute.ant.ProjectInputHandler" />
</input>
<antcall target="deploy-project" />
</target>
</project>

@ -0,0 +1,21 @@
<project name="evo-tool-build" default="tool-deploy" basedir="../">
<import file="common/evo-app-build-common.xml" />
<target name="deploy-default-tool" depends="app-create-jar">
<mkdir dir="${deploy.project.dir}/lib.tools"/>
<copy failonerror="false" verbose="true" file="${app.dist.dir}/${app.jar.name}" toDir="${deploy.project.dir}/lib.tools" />
</target>
<target name="deploy-to-project" if="deploy.project.dir">
<antcall target="deploy-default-tool" />
</target>
<target name="tool-deploy" description="Deploys current version of evolute utilities" depends="load-static-properties">
<input defaultvalue="${basedir}" addproperty="deploy.project.dir">
<handler classpathref="lib.tools.classpath" classname="com.evolute.ant.ProjectInputHandler" />
</input>
<antcall target="deploy-to-project" />
</target>
</project>

@ -10,6 +10,9 @@
<project name="PlanosActuacao" default="default" basedir=".">
<description>Builds, tests, and runs the project PlanosActuacao.</description>
<import file="nbproject/build-impl.xml"/>
<import file="ant/evo-app-multiple-client-build.xml" />
<!--
There exist several targets which are by default empty and which can be

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://www.evolute.pt/~software/siprp_planosactuacao_importer" href="siprp_planosactuacao_importer.jnlp">
<information>
<title>PlanosActuacaoImporter</title>
<vendor>Evolute 2011</vendor>
<homepage href="http://www.evolute.pt/~software/siprp_planosactuacao_importer" />
<description>PlanosActuacaoImporter, vv1.0.3</description>
<description kind="short">v1.0.3</description>
<offline-allowed />
<shortcut online="true">
<desktop />
</shortcut>
</information>
<security>
<all-permissions />
</security>
<update check="timeout" policy="always" />
<resources>
<j2se version="1.6.+" />
<jar href="lib/activation.jar" />
</resources>
<component-desc />
</jnlp>

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://www.evolute.pt/~software/siprp_planosactuacao_importer" href="siprp_planosactuacao_importer.jnlp">
<information>
<title>PlanosActuacaoImporter</title>
<vendor>Evolute 2011</vendor>
<homepage href="http://www.evolute.pt/~software/siprp_planosactuacao_importer" />
<description>PlanosActuacaoImporter, vv1.0.3</description>
<description kind="short">v1.0.3</description>
<offline-allowed />
<shortcut online="true">
<desktop />
</shortcut>
</information>
<security>
<all-permissions />
</security>
<update check="timeout" policy="always" />
<resources>
<j2se version="1.6.+" />
<jar href="lib/mail.jar" />
</resources>
<component-desc />
</jnlp>

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://www.evolute.pt/~software/versoes_teste/siprp_planosactuacao_importer" href="siprp_planosactuacao_importer.jnlp">
<information>
<title>PlanosActuacaoImporter</title>
<vendor>Evolute 2011</vendor>
<homepage href="http://www.evolute.pt/~software/siprp_planosactuacao_importer" />
<description>PlanosActuacaoImporter, vv1.0.3</description>
<description kind="short">v1.0.3</description>
<offline-allowed />
<shortcut online="true">
<desktop />
</shortcut>
</information>
<security>
<all-permissions />
</security>
<update check="timeout" policy="always" />
<resources>
<j2se version="1.6.+" />
<jar href="lib/activation.jar" />
</resources>
<component-desc />
</jnlp>

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://www.evolute.pt/~software/versoes_teste/siprp_planosactuacao_importer" href="siprp_planosactuacao_importer.jnlp">
<information>
<title>PlanosActuacaoImporter</title>
<vendor>Evolute 2011</vendor>
<homepage href="http://www.evolute.pt/~software/siprp_planosactuacao_importer" />
<description>PlanosActuacaoImporter, vv1.0.3</description>
<description kind="short">v1.0.3</description>
<offline-allowed />
<shortcut online="true">
<desktop />
</shortcut>
</information>
<security>
<all-permissions />
</security>
<update check="timeout" policy="always" />
<resources>
<j2se version="1.6.+" />
<jar href="lib/mail.jar" />
</resources>
<component-desc />
</jnlp>

@ -0,0 +1,79 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jnlp PUBLIC "-//Sun Microsystems, Inc//DTD JNLP Descriptor 6.0//EN" "http://java.sun.com/dtd/JNLP-6.0.dtd">
<jnlp spec="1.0+" codebase="http://www.evolute.pt/~software/siprp_planosactuacao_importer" href="siprp_planosactuacao_importer.jnlp">
<information>
<title>PlanosActuacaoImporter</title>
<vendor>Evolute 2011</vendor>
<homepage href="http://www.evolute.pt/~software/siprp_planosactuacao_importer" />
<description>PlanosActuacaoImporter, vv1.0.3</description>
<description kind="short">v1.0.3</description>
<offline-allowed />
<shortcut online="true">
<desktop />
</shortcut>
</information>
<security>
<all-permissions />
</security>
<update check="timeout" policy="always" />
<resources>
<j2se version="1.6.+" initial-heap-size="64M" max-heap-size="512M" />
<jar href="siprp_planosactuacao_importer.jar" />
<extension name="activation" href="activation.jnlp" />
<jar href="lib/appbase.jar" />
<jar href="lib/ashwood-2.0.jar" />
<jar href="lib/avalon-framework-4.2.0.jar" />
<jar href="lib/batik-all-1.7.jar" />
<jar href="lib/commons-beanutils-1.8.3.jar" />
<jar href="lib/commons-codec-1.3.jar" />
<jar href="lib/commons-collections-3.1.jar" />
<jar href="lib/commons-digester-1.8.jar" />
<jar href="lib/commons-fileupload-1.2.1.jar" />
<jar href="lib/commons-httpclient-3.1.jar" />
<jar href="lib/commons-io-1.4.jar" />
<jar href="lib/commons-lang-2.4.jar" />
<jar href="lib/commons-logging-1.1.1.jar" />
<jar href="lib/commons-validator-1.3.1.jar" />
<jar href="lib/cursos.jar" />
<jar href="lib/dataprovider.jar" />
<jar href="lib/dom4j-1.6.1.jar" />
<jar href="lib/evologger.jar" />
<jar href="lib/evolute.jar" />
<jar href="lib/fop.jar" />
<jar href="lib/jai_imageio.jar" />
<jar href="lib/jdbcappender.jar" />
<jar href="lib/jdom.jar" />
<jar href="lib/jsf-api.jar" />
<jar href="lib/jsf-extensions-common-0.1.jar" />
<jar href="lib/jsf-extensions-dynamic-faces-0.1.jar" />
<jar href="lib/jsf-impl.jar" />
<jar href="lib/jsfcl.jar" />
<jar href="lib/json-2.jar" />
<jar href="lib/jstl.jar" />
<jar href="lib/log4j-1.2.15.jar" />
<extension name="mail" href="mail.jnlp" />
<jar href="lib/org.springframework.beans-3.0.0.jar" />
<jar href="lib/org.springframework.context-3.0.0.jar" />
<jar href="lib/org.springframework.core-3.0.0.jar" />
<jar href="lib/postgresql-9.0-801.jdbc4.jar" />
<jar href="lib/serializer-2.7.0.jar" />
<jar href="lib/shst.jar" />
<jar href="lib/spring-ws-core-1.5.9.jar" />
<jar href="lib/spring-ws-core-tiger-1.5.9.jar" />
<jar href="lib/spring-ws-support-1.5.9.jar" />
<jar href="lib/spring-xml-1.5.9.jar" />
<jar href="lib/sqlx.jar" />
<jar href="lib/standard.jar" />
<jar href="lib/truelicense.jar" />
<jar href="lib/webui-jsf-suntheme.jar" />
<jar href="lib/webui-jsf.jar" />
<jar href="lib/xalan-2.7.0.jar" />
<jar href="lib/xercesImpl-2.7.1.jar" />
<jar href="lib/xml-apis-1.3.04.jar" />
<jar href="lib/xml-apis-ext-1.3.04.jar" />
<jar href="lib/xmlgraphics-commons-1.3.1.jar" />
</resources>
<application-desc main-class="importer.PlanosActuacaoImporter" />
</jnlp>

@ -0,0 +1,79 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jnlp PUBLIC "-//Sun Microsystems, Inc//DTD JNLP Descriptor 6.0//EN" "http://java.sun.com/dtd/JNLP-6.0.dtd">
<jnlp spec="1.0+" codebase="http://www.evolute.pt/~software/versoes_teste/siprp_planosactuacao_importer" href="siprp_planosactuacao_importer.jnlp">
<information>
<title>PlanosActuacaoImporter</title>
<vendor>Evolute 2011</vendor>
<homepage href="http://www.evolute.pt/~software/versoes_teste/siprp_planosactuacao_importer" />
<description>PlanosActuacaoImporter, vv1.0.3</description>
<description kind="short">v1.0.3</description>
<offline-allowed />
<shortcut online="true">
<desktop />
</shortcut>
</information>
<security>
<all-permissions />
</security>
<update check="timeout" policy="always" />
<resources>
<j2se version="1.6.+" initial-heap-size="64M" max-heap-size="512M" />
<jar href="siprp_planosactuacao_importer.jar" />
<extension name="activation" href="activation.jnlp" />
<jar href="lib/appbase.jar" />
<jar href="lib/ashwood-2.0.jar" />
<jar href="lib/avalon-framework-4.2.0.jar" />
<jar href="lib/batik-all-1.7.jar" />
<jar href="lib/commons-beanutils-1.8.3.jar" />
<jar href="lib/commons-codec-1.3.jar" />
<jar href="lib/commons-collections-3.1.jar" />
<jar href="lib/commons-digester-1.8.jar" />
<jar href="lib/commons-fileupload-1.2.1.jar" />
<jar href="lib/commons-httpclient-3.1.jar" />
<jar href="lib/commons-io-1.4.jar" />
<jar href="lib/commons-lang-2.4.jar" />
<jar href="lib/commons-logging-1.1.1.jar" />
<jar href="lib/commons-validator-1.3.1.jar" />
<jar href="lib/cursos.jar" />
<jar href="lib/dataprovider.jar" />
<jar href="lib/dom4j-1.6.1.jar" />
<jar href="lib/evologger.jar" />
<jar href="lib/evolute.jar" />
<jar href="lib/fop.jar" />
<jar href="lib/jai_imageio.jar" />
<jar href="lib/jdbcappender.jar" />
<jar href="lib/jdom.jar" />
<jar href="lib/jsf-api.jar" />
<jar href="lib/jsf-extensions-common-0.1.jar" />
<jar href="lib/jsf-extensions-dynamic-faces-0.1.jar" />
<jar href="lib/jsf-impl.jar" />
<jar href="lib/jsfcl.jar" />
<jar href="lib/json-2.jar" />
<jar href="lib/jstl.jar" />
<jar href="lib/log4j-1.2.15.jar" />
<extension name="mail" href="mail.jnlp" />
<jar href="lib/org.springframework.beans-3.0.0.jar" />
<jar href="lib/org.springframework.context-3.0.0.jar" />
<jar href="lib/org.springframework.core-3.0.0.jar" />
<jar href="lib/postgresql-9.0-801.jdbc4.jar" />
<jar href="lib/serializer-2.7.0.jar" />
<jar href="lib/shst.jar" />
<jar href="lib/spring-ws-core-1.5.9.jar" />
<jar href="lib/spring-ws-core-tiger-1.5.9.jar" />
<jar href="lib/spring-ws-support-1.5.9.jar" />
<jar href="lib/spring-xml-1.5.9.jar" />
<jar href="lib/sqlx.jar" />
<jar href="lib/standard.jar" />
<jar href="lib/truelicense.jar" />
<jar href="lib/webui-jsf-suntheme.jar" />
<jar href="lib/webui-jsf.jar" />
<jar href="lib/xalan-2.7.0.jar" />
<jar href="lib/xercesImpl-2.7.1.jar" />
<jar href="lib/xml-apis-1.3.04.jar" />
<jar href="lib/xml-apis-ext-1.3.04.jar" />
<jar href="lib/xmlgraphics-commons-1.3.1.jar" />
</resources>
<application-desc main-class="importer.PlanosActuacaoImporter" />
</jnlp>

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save