forked from Coded/SIPRP
Providers convertidos para select e select2.
Update das bibliotecas. Adicionadas as coisas do evolute.jar (scripts ant e lib.tools) git-svn-id: https://svn.coded.pt/svn/SIPRP@2023 bb69d46d-e84e-40c8-a05a-06db0d6337410'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
parent
3d0cbe4a34
commit
41bc11ee9a
@ -1,77 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/activation.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/appbase.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/ashwood-2.0.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/avalon-framework-4.2.0.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/batik-all-1.7.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/commons-beanutils-1.8.3.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/commons-beanutils.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/commons-codec-1.3.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/commons-collections-3.1.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/commons-collections.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/commons-digester-1.8.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/commons-digester.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/commons-el-1.0.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/commons-fileupload-1.0.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/commons-httpclient-3.1.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/commons-io-1.4.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/commons-lang-2.4.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/commons-logging-1.1.1.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/commons-logging.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/commons-validator-1.3.1.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/commons-vfs-1.0.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/dataprovider.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/defaulttheme.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/dom4j-1.6.1.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/errorhandler.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/evologger.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/evolute.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/fop.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/httpclient-4.0.1.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/iText-2.0.8.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/jai_imageio.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/jakarta-oro-2.0.8.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/jdbcappender.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/jdom.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/jsf-api.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/jsf-impl.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/jsfcl.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/jstl.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/log4j-1.2.15.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/mail.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/org.springframework.beans-3.0.0.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/org.springframework.context-3.0.0.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/org.springframework.core-3.0.0.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/poi-3.5-beta6-20090622.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/poi-ooxml-3.5-beta6-20090622.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/postgresql-9.0-801.jdbc4.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/rowset-1.0.1.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/serializer-2.7.0.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/shst.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/spring-ws-core-1.5.9.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/spring-ws-core-tiger-1.5.9.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/spring-ws-support-1.5.9.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/spring-xml-1.5.9.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/sqlx.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/standard.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/tomahawk-1.1.10.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/truelicense.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/webui.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/xalan-2.7.0.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/xercesImpl-2.7.1.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/xml-apis-1.3.04.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/xml-apis-ext-1.3.04.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/xmlgraphics-commons-1.3.1.jar"/>
|
||||
<classpathentry kind="lib" path="web/WEB-INF/lib/xmlParserAPIs-2.0.2.jar"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v6.0">
|
||||
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0 - Java 7">
|
||||
<attributes>
|
||||
<attribute name="owner.project.facets" value="jst.web"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/java-1.7.0-openjdk-1.7.0.71-2.5.3.0.fc20.x86_64">
|
||||
<attributes>
|
||||
<attribute name="owner.project.facets" value="java"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
||||
@ -0,0 +1,68 @@
|
||||
<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" includeantruntime="false" />
|
||||
<antcall target="create-app-properties-file"/>
|
||||
<antcall target="app-post-build"/>
|
||||
</target>
|
||||
|
||||
<target name="create-app-properties-file">
|
||||
<propertyfile file="${app.build.dir}/${app.name}.properties">
|
||||
<entry key="timestamp" type="date" value="now"/>
|
||||
<entry key="user" value="${user.name}"/>
|
||||
</propertyfile>
|
||||
</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,111 @@
|
||||
<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>
|
||||
<manifest>
|
||||
<attribute name="Permissions" value="all-permissions" />
|
||||
</manifest>
|
||||
</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,950 @@
|
||||
<project name="evo-app-deploy-common" basedir="../../" >
|
||||
<!--xmlns:ac="antlib:net.sf.antcontrib"-->
|
||||
<import file="evo-app-load-properties.xml" />
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<path id="lib.dir-jars">
|
||||
<fileset dir="lib" >
|
||||
<include name="*.jar"/>
|
||||
</fileset>
|
||||
</path>
|
||||
|
||||
|
||||
|
||||
<!-- SETUP -->
|
||||
<target name="prepare-deploy-location">
|
||||
</target>
|
||||
|
||||
<target name="run-jnlp-task" >
|
||||
<typedef classpathref="lib.classpath" resource="net/jtools/classloadertask/antlib.xml">
|
||||
<classpath>
|
||||
<path refid="lib.classpath"/>
|
||||
</classpath>
|
||||
</typedef>
|
||||
<classloader loader="project">
|
||||
<classpath>
|
||||
<fileset dir="${app.lib.dir}" includes="*.jar"/>
|
||||
</classpath>
|
||||
</classloader>
|
||||
<taskdef name="generate-jnlp" classpathref="lib.classpath" classname="com.evolute.ant.JNLPGeneratorTask" onerror="ignore"/>
|
||||
<if>
|
||||
<isset property="TESTDEPLOY"/>
|
||||
<then>
|
||||
<generate-jnlp propertiesDir="${properties.dir}" basedir="${app.dir}" production="false"/>
|
||||
</then>
|
||||
<else>
|
||||
<generate-jnlp propertiesDir="${properties.dir}" basedir="${app.dir}" production="true"/>
|
||||
</else>
|
||||
</if>
|
||||
<antcall target="send-jnlp"/>
|
||||
</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>
|
||||
|
||||
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
|
||||
<classpath>
|
||||
<pathelement location="${basedir}/lib.tools/ant-contrib-1.0b3.jar"/>
|
||||
</classpath>
|
||||
</taskdef>
|
||||
|
||||
<target name="ask-deploy.jars" unless="deploy.jars">
|
||||
<property name="deploy.jars" refid="lib.dir-jars"/>
|
||||
<var name="deploy.jars" value="${basedir}/${app.appName}.jar:${deploy.jars} "/>
|
||||
</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" />
|
||||
<antcall target="update-jar-jnlp"/>
|
||||
<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>
|
||||
|
||||
<!--<scriptdef language="javascript" name="upper">
|
||||
<attribute name="string" />
|
||||
<attribute name="to" />
|
||||
|
||||
project.setProperty( attributes.get( "to" ),
|
||||
attributes.get( "string" ).toUpperCase() );
|
||||
</scriptdef>-->
|
||||
|
||||
<target name="update-jar-jnlp">
|
||||
<mkdir dir="${app.build.dir}/JNLP-INF"/>
|
||||
<!--<upper string="${app.name}" to="app.name.upper"/>-->
|
||||
<!--<echo message="olha auqui o nome em maiusculas ${app.name.upper}"></echo>-->
|
||||
<if>
|
||||
<isset property="TESTDEPLOY"/>
|
||||
<then>
|
||||
<copy file="${basedir}/jnlp/test/${app.name}.jnlp" tofile="${app.build.dir}/JNLP-INF/APPLICATION.JNLP"/>
|
||||
</then>
|
||||
<else>
|
||||
<copy file="${basedir}/jnlp/production/${app.name}.jnlp" tofile="${app.build.dir}/JNLP-INF/APPLICATION.JNLP"/>
|
||||
</else>
|
||||
</if>
|
||||
<jar destfile="${app.deploy.dist.dir}/${app.jar.name}" update="true" >
|
||||
<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-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" pattern="0" />
|
||||
<entry key="${properties.key.minor}" type="int" operation="=" value="0" pattern="0" />
|
||||
<entry key="${properties.key.build}" type="int" operation="=" value="0" pattern="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" pattern="0" />
|
||||
<entry key="${properties.key.minor}" type="int" operation="+" value="1" pattern="0" />
|
||||
<entry key="${properties.key.build}" type="int" operation="=" value="0" pattern="0" />
|
||||
</propertyfile>
|
||||
<antcall target="app-deploy-version"/>
|
||||
</target>
|
||||
|
||||
<target name="app-version-increase-build">
|
||||
<exec executable="hostname" outputproperty="computer.hostname"/>
|
||||
<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" pattern="0" />
|
||||
<entry key="${properties.key.minor}" type="int" operation="+" value="0" pattern="0" />
|
||||
<entry key="${properties.key.build}" type="int" operation="+" value="1" pattern="0" />
|
||||
<entry key="timestamp" type="date" value="now"/>
|
||||
<entry key="user" value="${user.name}"/>
|
||||
<entry key="computer" value="${computer.hostname}"/>
|
||||
</propertyfile>
|
||||
<antcall target="app-deploy-version"/>
|
||||
</target>
|
||||
|
||||
<target name="deploy-test" if="TESTDEPLOY">
|
||||
</target>
|
||||
|
||||
<!-- NEW -->
|
||||
|
||||
<path id="lib.classpath">
|
||||
<fileset dir="${app.lib.dir}">
|
||||
<include name="*.jar"/>
|
||||
</fileset>
|
||||
</path>
|
||||
|
||||
<target name="send-jnlp">
|
||||
<if>
|
||||
<isset property="TESTDEPLOY"/>
|
||||
<then>
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="mkdir -p /home/software/public_html/versoes_teste/${app.appName}/lib" password="${deploy.password}" />
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chmod -R -f g+w /home/software/public_html/versoes_teste/${app.appName}; true" password="${deploy.password}" />
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chown -R -f :software /home/software/public_html/versoes_teste/${app.appName}; true" password="${deploy.password}" />
|
||||
</then>
|
||||
<else>
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="mkdir -p /home/software/public_html/${app.appName}/lib" password="${deploy.password}" />
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chmod -R -f g+w /home/software/public_html/${app.appName}; true" password="${deploy.password}" />
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chown -R -f :software /home/software/public_html/${app.appName}; true" password="${deploy.password}" />
|
||||
</else>
|
||||
</if>
|
||||
<if>
|
||||
<isset property="TESTDEPLOY"/>
|
||||
<then>
|
||||
<if>
|
||||
<available file="${basedir}/jnlp/test" type="dir"/>
|
||||
<then>
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/versoes_teste/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/jnlp/test" includes="*.jnlp"/>
|
||||
</scp>
|
||||
</then>
|
||||
</if>
|
||||
<if>
|
||||
<available file="${basedir}/jnlp/extensions/test" type="dir"/>
|
||||
<then>
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/versoes_teste/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/jnlp/extensions/test" includes="*.jnlp"/>
|
||||
</scp>
|
||||
</then>
|
||||
</if>
|
||||
</then>
|
||||
<else>
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/jnlp/production" includes="*.jnlp"/>
|
||||
</scp>
|
||||
<if>
|
||||
<available file="${basedir}/jnlp/extensions/production" type="dir"/>
|
||||
<then>
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/jnlp/extensions/production" includes="*.jnlp"/>
|
||||
</scp>
|
||||
</then>
|
||||
</if>
|
||||
</else>
|
||||
</if>
|
||||
|
||||
</target>
|
||||
|
||||
<!-- CORRER INICIALMENTE -->
|
||||
|
||||
<path id="pack.dir-jars">
|
||||
<fileset dir="signed/packed" >
|
||||
<include name="lib/*.jar*"/>
|
||||
<include name="${app.jar.name}*"/>
|
||||
</fileset>
|
||||
</path>
|
||||
|
||||
|
||||
<target name="inicial">
|
||||
<echo message="Jars: ${deploy.jars}"/>
|
||||
<delete dir="signed"/>
|
||||
<mkdir dir="signed/lib"/>
|
||||
<mkdir dir="signed/packed/lib"/>
|
||||
<property name="unsigned.jars" value=""/>
|
||||
<property name="signed.jars" value=""/>
|
||||
|
||||
<for list="${deploy.jars}" param="jar" delimiter=":">
|
||||
<sequential>
|
||||
<echo message="A verificar se @{jar} esta assinado"/>
|
||||
<exec dir="deploy" command="jarsigner" outputproperty="@{jar}.verify">
|
||||
<arg line="-verify"/>
|
||||
<arg line="@{jar}"/>
|
||||
</exec>
|
||||
<if>
|
||||
<contains string="${@{jar}.verify}" substring="jar is unsigned"/>
|
||||
<then>
|
||||
<var name="unsigned.jars" value="${unsigned.jars} @{jar}"/>
|
||||
</then>
|
||||
<else>
|
||||
<if>
|
||||
<contains string="${@{jar}.verify}" substring="jar verified"/>
|
||||
<then>
|
||||
<var name="signed.jars" value="${signed.jars} @{jar}"/>
|
||||
</then>
|
||||
</if>
|
||||
</else>
|
||||
</if>
|
||||
</sequential>
|
||||
</for>
|
||||
|
||||
<echo message="unsigned: ${unsigned.jars}"/>
|
||||
<echo message="Signed jars = ${signed.jars}"/>
|
||||
|
||||
<echo message="Repacking..."/>
|
||||
<for list="${unsigned.jars}" param="jar" delimiter=" ">
|
||||
<sequential>
|
||||
<echo message="Repacking @{jar}"/>
|
||||
<apply executable="pack200" parallel="false" failonerror="false">
|
||||
<arg value="-J-Xmx1g"/>
|
||||
<arg value="--repack"/>
|
||||
<arg value="--segment-limit=-1"/>
|
||||
<fileset file="@{jar}" />
|
||||
</apply>
|
||||
</sequential>
|
||||
</for>
|
||||
|
||||
<echo message=" home = ${user.home}"/>
|
||||
|
||||
|
||||
<echo message="Signing..."/>
|
||||
<for list="${unsigned.jars}" param="jar" delimiter=" ">
|
||||
<sequential>
|
||||
<signjar destDir="signed/lib" alias="id evolute, consultoria informática do comodo ca limited" storetype="pkcs12" keystore="ant/evolute.keystore" storepass="Typein" >
|
||||
<path>
|
||||
<fileset file="@{jar}" />
|
||||
</path>
|
||||
</signjar>
|
||||
</sequential>
|
||||
</for>
|
||||
|
||||
<echo message="A assinar ${app.name}.jar"/>
|
||||
<signjar destDir="signed" alias="id evolute, consultoria informática do comodo ca limited" storetype="pkcs12" keystore="ant/evolute.keystore" storepass="Typein" >
|
||||
<path>
|
||||
<fileset dir="deploy" includes="*.jar" />
|
||||
</path>
|
||||
</signjar>
|
||||
|
||||
<property name="deploy.jars.copy" value=""/>
|
||||
<for list="${deploy.jars}" param="jar" delimiter=":">
|
||||
<sequential>
|
||||
<var name="deploy.jars.copy" value="${deploy.jars.copy} '@{jar}'"/>
|
||||
</sequential>
|
||||
</for>
|
||||
|
||||
<for list="${deploy.jars.copy}" param="jar" delimiter=" ">
|
||||
<sequential>
|
||||
<delete file="@{jar}.pack.gz"/>
|
||||
</sequential>
|
||||
</for>
|
||||
|
||||
|
||||
<if>
|
||||
<equals arg1="${jnlp.resources.property.jnlp.packEnabled}" arg2="true"/>
|
||||
<then>
|
||||
<echo message="Packing..."/>
|
||||
<for list="${unsigned.jars}" param="jar" delimiter=" ">
|
||||
<sequential>
|
||||
<apply executable="pack200" parallel="false" dest="signed/packed/lib" failonerror="false">
|
||||
<arg value="-J-Xmx1g"/>
|
||||
<arg value="--segment-limit=-1"/>
|
||||
<targetfile/>
|
||||
<srcfile/>
|
||||
<fileset file="@{jar}" />
|
||||
<mapper type="glob" from="*" to="*.pack.gz" />
|
||||
</apply>
|
||||
</sequential>
|
||||
</for>
|
||||
</then>
|
||||
</if>
|
||||
|
||||
<for list="${signed.jars}" param="jar" delimiter=" ">
|
||||
<sequential>
|
||||
<echo message="@{jar}"/>
|
||||
<copy failonerror="false" verbose="true" overwrite="true" toDir="signed/lib" >
|
||||
<fileset file="@{jar}"/>
|
||||
</copy>
|
||||
</sequential>
|
||||
</for>
|
||||
|
||||
<property name="pack.jars" refid="pack.dir-jars"/>
|
||||
<echo message="Pack jars = ${pack.jars}"/>
|
||||
|
||||
<property name="pack.jars.copy" value=""/>
|
||||
<for list="${pack.jars}" param="jar" delimiter=":">
|
||||
<sequential>
|
||||
<var name="pack.jars.copy" value="${pack.jars.copy} @{jar}"/>
|
||||
</sequential>
|
||||
</for>
|
||||
|
||||
<echo message="Pack jars = ${pack.jars.copy}"/>
|
||||
|
||||
<echo message="Argumentos = ${basedir} ${deploy.jars.copy} ${pack.jars.copy} inicial"/>
|
||||
|
||||
<java fork="true" failonerror="yes" classname="com.evolute.xml.BuildXML" classpathref="lib.tools.classpath">
|
||||
<arg line="${basedir} ${deploy.jars.copy} ${pack.jars.copy} inicial"/>
|
||||
</java>
|
||||
|
||||
<if>
|
||||
<isset property="TESTDEPLOY"/>
|
||||
<then>
|
||||
<echo message="isto é um teste"/>
|
||||
<echo message="other jars = ${other.jars}"/>
|
||||
<echo message="deploy.jars = ${deploy.jars}"/>
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/versoes_teste/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/signed" includes="**/*.jar"/>
|
||||
</scp>
|
||||
</then>
|
||||
<else>
|
||||
<echo message="other jars = ${other.jars}"/>
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/signed" includes="**/*.jar"/>
|
||||
</scp>
|
||||
</else>
|
||||
</if>
|
||||
|
||||
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/signed/packed" includes="**/*.pack.gz"/>
|
||||
</scp>
|
||||
|
||||
<if>
|
||||
<isset property="TESTDEPLOY"/>
|
||||
<then>
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chmod -R -f g+w /home/software/public_html/versoes_teste/${app.appName}; true" password="${deploy.password}" />
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chown -R -f :software /home/software/public_html/versoes_teste/${app.appName}; true" password="${deploy.password}" />
|
||||
</then>
|
||||
<else>
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chmod -R -f g+w /home/software/public_html/${app.appName}; true" password="${deploy.password}" />
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chown -R -f :software /home/software/public_html/${app.appName}; true" password="${deploy.password}" />
|
||||
</else>
|
||||
</if>
|
||||
|
||||
<delete file="signed/${app.appName}.jar"/>
|
||||
<delete file="signed/packed/${app.appName}.jar.pack.gz"/>
|
||||
|
||||
</target>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- FIM CORRER INICIALMENTE -->
|
||||
|
||||
|
||||
<target name="deploy-production">
|
||||
<echo message="Deploying to ${deploy.user}@${app.deploy.server}"/>
|
||||
<if>
|
||||
<available file="${basedir}/clientJars.xml" type="file"/>
|
||||
<then>
|
||||
<xmlproperty file="clientJars.xml"/>
|
||||
<if>
|
||||
<not>
|
||||
<isset property="project.signed-jar-files.name"/>
|
||||
</not>
|
||||
<then>
|
||||
<antcall target="inicial"/>
|
||||
</then>
|
||||
<else>
|
||||
<antcall target="create-new-xml-client-jar"/>
|
||||
<antcall target="delete-principal-jar"/>
|
||||
</else>
|
||||
</if>
|
||||
</then>
|
||||
<else>
|
||||
<antcall target="inicial"/>
|
||||
</else>
|
||||
</if>
|
||||
</target>
|
||||
|
||||
|
||||
<target name="create-new-xml-client-jar">
|
||||
<property name="deploy.jars.copy" value=""/>
|
||||
<for list="${deploy.jars}" param="jar" delimiter=":">
|
||||
<sequential>
|
||||
<var name="deploy.jars.copy" value="${deploy.jars.copy} '@{jar}'"/>
|
||||
</sequential>
|
||||
</for>
|
||||
<echo message="Basedir: ${basedir}"/>
|
||||
<echo message="deploy jars copy: ${deploy.jars.copy}"/>
|
||||
<java fork="true" failonerror="yes" classname="com.evolute.xml.BuildXML" classpathref="lib.tools.classpath">
|
||||
<arg line="${basedir} ${deploy.jars.copy} novo"/>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
<target name="recognize-xml-2">
|
||||
<xmlproperty file="clientJars.xml"/>
|
||||
<xmlproperty file="newClientJars.xml"/>
|
||||
</target>
|
||||
|
||||
|
||||
<target name="compare-old-and-current-2" depends="recognize-xml-2">
|
||||
<property name="different.jars" value=" "/>
|
||||
<property name="toDeploy.packed" value=" "/>
|
||||
<echo message="project.jar-files = ${project.jar-files.name}"/>
|
||||
<echo message="project.new-jar-files = ${project.new-jar-files.name}"/>
|
||||
<for list="${project.new-jar-files.name}" param="jar">
|
||||
<sequential>
|
||||
<if>
|
||||
<and>
|
||||
<equals arg1="${jnlp.resources.property.jnlp.packEnabled}" arg2="true"/>
|
||||
<not>
|
||||
<available file="${basedir}/signed/packed/${project.new-jar-files.name(@{jar}-path)}@{jar}.pack.gz" type="file"/>
|
||||
</not>
|
||||
<not>
|
||||
<contains string="${signed.jars}" substring="@{jar}"/>
|
||||
</not>
|
||||
</and>
|
||||
<then>
|
||||
<var name="toDeploy.packed" value="${toDeploy.packed} ${project.new-jar-files.name(@{jar}-path)}@{jar}"/>
|
||||
</then>
|
||||
</if>
|
||||
<if>
|
||||
<not>
|
||||
<available file="${basedir}/signed/${project.new-jar-files.name(@{jar}-path)}@{jar}" type="file"/>
|
||||
</not>
|
||||
<then>
|
||||
<var name="different.jars" value="${different.jars} ${project.new-jar-files.name(@{jar}-path)}@{jar}"/>
|
||||
</then>
|
||||
<else>
|
||||
<for list="${project.jar-files.name}" param="oldJar">
|
||||
<sequential>
|
||||
<if>
|
||||
<equals arg1="@{jar}" arg2="@{oldJar}"/>
|
||||
<then>
|
||||
<property name="@{jar}-name-exists" value=""/>
|
||||
<if>
|
||||
<not>
|
||||
<equals arg1="${project.jar-files.name(@{jar}-md5)}" arg2="${project.new-jar-files.name(@{oldJar}-md5)}"/>
|
||||
</not>
|
||||
<then>
|
||||
<var name="different.jars" value="${different.jars} ${project.new-jar-files.name(@{jar}-path)}@{jar}"/>
|
||||
</then>
|
||||
</if>
|
||||
</then>
|
||||
</if>
|
||||
</sequential>
|
||||
</for>
|
||||
<if>
|
||||
<not>
|
||||
<isset property="@{jar}-name-exists"/>
|
||||
</not>
|
||||
<then>
|
||||
<var name="different.jars" value="${different.jars} ${project.new-jar-files.name(@{jar}-path)}@{jar}"/>
|
||||
</then>
|
||||
</if>
|
||||
</else>
|
||||
</if>
|
||||
</sequential>
|
||||
</for>
|
||||
<echo message="different jars = ${different.jars}"/>
|
||||
</target>
|
||||
|
||||
<target name="check-if-is-signed" depends="compare-old-and-current-2">
|
||||
<property name="unsigned.jars" value=""/>
|
||||
<property name="signed.jars" value=""/>
|
||||
|
||||
<for list="${different.jars}" param="jar" delimiter=" ">
|
||||
<sequential>
|
||||
<exec dir="deploy" command="jarsigner" outputproperty="@{jar}.verify">
|
||||
<arg line="-verify"/>
|
||||
<arg line="@{jar}"/>
|
||||
</exec>
|
||||
<if>
|
||||
<contains string="${@{jar}.verify}" substring="jar is unsigned"/>
|
||||
<then>
|
||||
<var name="unsigned.jars" value="${unsigned.jars} @{jar}"/>
|
||||
</then>
|
||||
<else>
|
||||
<if>
|
||||
<contains string="${@{jar}.verify}" substring="jar verified"/>
|
||||
<then>
|
||||
<var name="signed.jars" value="${signed.jars} @{jar}"/>
|
||||
</then>
|
||||
</if>
|
||||
</else>
|
||||
</if>
|
||||
</sequential>
|
||||
</for>
|
||||
|
||||
<echo message="unsigned: ${unsigned.jars}"/>
|
||||
<echo message="Signed jars = ${signed.jars}"/>
|
||||
</target>
|
||||
|
||||
<target name="repack-jars" depends="check-if-is-signed">
|
||||
<if>
|
||||
<not>
|
||||
<equals arg1="${unsigned.jars}" arg2=""/>
|
||||
</not>
|
||||
<then>
|
||||
<apply executable="pack200" parallel="false" failonerror="false">
|
||||
<arg value="-J-Xmx1g"/>
|
||||
<arg value="--repack"/>
|
||||
<arg value="--segment-limit=-1"/>
|
||||
<fileset dir="deploy" includes="${unsigned.jars}" />
|
||||
</apply>
|
||||
</then>
|
||||
</if>
|
||||
</target>
|
||||
|
||||
<target name="sign-jars-2" depends="repack-jars">
|
||||
<echo message="Signing jars..."/>
|
||||
<mkdir dir="signed/lib"/>
|
||||
<mkdir dir="signed/packed/lib"/>
|
||||
|
||||
<echo message="Unsigned jars: ${unsigned.jars}"/>
|
||||
|
||||
<for list="${unsigned.jars}" param="jar" delimiter=" ">
|
||||
<sequential>
|
||||
<echo message="Signing jar @{jar}"/>
|
||||
<signjar destDir="signed" alias="id evolute, consultoria informática do comodo ca limited" storetype="pkcs12" keystore="ant/evolute.keystore" storepass="Typein" >
|
||||
<path>
|
||||
<fileset dir="deploy" includes="@{jar}"/>
|
||||
</path>
|
||||
</signjar>
|
||||
</sequential>
|
||||
</for>
|
||||
|
||||
<signjar destDir="signed" alias="id evolute, consultoria informática do comodo ca limited" storetype="pkcs12" keystore="ant/evolute.keystore" storepass="Typein" >
|
||||
<path>
|
||||
<fileset dir="deploy" includes="*.jar"/>
|
||||
</path>
|
||||
</signjar>
|
||||
|
||||
<for list="${unsigned.jars}" param="jar" delimiter=" ">
|
||||
<sequential>
|
||||
<delete file="${basedir}/signed/packed/@{jar}.pack.gz"/>
|
||||
</sequential>
|
||||
</for>
|
||||
</target>
|
||||
|
||||
<target name="copy-signed" depends="sign-jars-2">
|
||||
<if>
|
||||
<contains string="${signed.jars}" substring=" "/>
|
||||
<then>
|
||||
<copy failonerror="false" verbose="true" overwrite="true" toDir="signed" >
|
||||
<fileset dir="deploy" includes="${signed.jars}"/>
|
||||
</copy>
|
||||
</then>
|
||||
</if>
|
||||
</target>
|
||||
|
||||
<target name="pack-jars-2" depends="copy-signed">
|
||||
<echo message="Unsigned: ${unsigned.jars} "/>
|
||||
<for list="${unsigned.jars}" param="jar" delimiter=" ">
|
||||
<sequential>
|
||||
<if>
|
||||
<not>
|
||||
<contains string="${toDeploy.packed}" substring="@{jar}"/>
|
||||
</not>
|
||||
<then>
|
||||
<var name="toDeploy.packed" value="${toDeploy.packed} @{jar}"/>
|
||||
</then>
|
||||
</if>
|
||||
</sequential>
|
||||
</for>
|
||||
<property name="toDeploy.packed.copy" value=""/>
|
||||
|
||||
<property name="deploy.signed" value=""/>
|
||||
|
||||
<if>
|
||||
<equals arg1="${jnlp.resources.property.jnlp.packEnabled}" arg2="true"/>
|
||||
<then>
|
||||
<for list="${deploy.jars}" param="jar" delimiter=":">
|
||||
<sequential>
|
||||
<exec dir="deploy/lib" command="jarsigner" outputproperty="@{jar}.verify">
|
||||
<arg line="-verify"/>
|
||||
<arg line="@{jar}"/>
|
||||
</exec>
|
||||
<if>
|
||||
<contains string="${@{jar}.verify}" substring="jar verified"/>
|
||||
<then>
|
||||
<var name="deploy.signed" value="${deploy.signed} @{jar}"/>
|
||||
</then>
|
||||
</if>
|
||||
</sequential>
|
||||
</for>
|
||||
</then>
|
||||
</if>
|
||||
|
||||
<for list="${toDeploy.packed}" param="jar" delimiter=" ">
|
||||
<sequential>
|
||||
<if>
|
||||
<not>
|
||||
<contains string="${deploy.signed}" substring="@{jar}"/>
|
||||
</not>
|
||||
<then>
|
||||
<var name="toDeploy.packed.copy" value="${toDeploy.packed.copy} @{jar}"/>
|
||||
</then>
|
||||
</if>
|
||||
</sequential>
|
||||
</for>
|
||||
<if>
|
||||
<equals arg1="${jnlp.resources.property.jnlp.packEnabled}" arg2="true"/>
|
||||
<then>
|
||||
<echo message="Packing jars..."/>
|
||||
<echo message="toDeploy.packed.copy = ${toDeploy.packed.copy}"/>
|
||||
<apply executable="pack200" parallel="false" dest="signed/packed" failonerror="false">
|
||||
<arg value="-J-Xmx1g"/>
|
||||
<arg value="--modification-time=latest"/>
|
||||
<arg value="--deflate-hint=true"/>
|
||||
<arg value="--segment-limit=-1"/>
|
||||
<targetfile/>
|
||||
<srcfile/>
|
||||
<fileset dir="signed" includes="${toDeploy.packed.copy}" />
|
||||
<mapper type="glob" from="*" to="*.pack.gz" />
|
||||
</apply>
|
||||
</then>
|
||||
</if>
|
||||
</target>
|
||||
|
||||
<target name="alter-client-jar-xml" depends="pack-jars-2">
|
||||
<property name="deploy.jars.copy" value=""/>
|
||||
<for list="${deploy.jars}" param="jar" delimiter=":">
|
||||
<sequential>
|
||||
<var name="deploy.jars.copy" value="${deploy.jars.copy} '@{jar}'"/>
|
||||
</sequential>
|
||||
</for>
|
||||
|
||||
<property name="pack.jars" refid="pack.dir-jars"/>
|
||||
<echo message="Pack jars = ${pack.jars}"/>
|
||||
|
||||
<property name="pack.jars.copy" value=""/>
|
||||
<for list="${pack.jars}" param="jar" delimiter=":">
|
||||
<sequential>
|
||||
<var name="pack.jars.copy" value="${pack.jars.copy} '@{jar}'"/>
|
||||
</sequential>
|
||||
</for>
|
||||
|
||||
<echo message="Deploy jars = ${deploy.jars.copy}"/>
|
||||
<echo message="Pack jars = ${pack.jars.copy}"/>
|
||||
|
||||
<java fork="true" failonerror="yes" classname="com.evolute.xml.BuildXML" classpathref="lib.tools.classpath">
|
||||
<arg line="${basedir} ${deploy.jars.copy} ${pack.jars.copy} inicial"/>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
<target name="verify-jars-at-server-2" depends="alter-client-jar-xml">
|
||||
<echo message="nome da aplicacao = ${app.name}"/>
|
||||
<if>
|
||||
<isset property="TESTDEPLOY"/>
|
||||
<then>
|
||||
<sshexec verbose="false" failonerror="true" trust="yes" host="${app.deploy.server}" username="${deploy.user}" command='find /home/software/public_html/versoes_teste/${app.name} -name "*.jar*" -exec md5sum {} +' password="${deploy.password}" output="jarsAtServer.txt" outputproperty="trash" />
|
||||
<java fork="true" failonerror="yes" classname="com.evolute.xml.ServerJarsXml" classpathref="lib.tools.classpath">
|
||||
<arg line="versoes_teste/${app.appName}"/>
|
||||
</java>
|
||||
</then>
|
||||
<else>
|
||||
<sshexec verbose="false" failonerror="true" trust="yes" host="${app.deploy.server}" username="${deploy.user}" command='find "/home/software/public_html/${app.name}" -name "*.jar*" -exec md5sum {} +' password="${deploy.password}" output="jarsAtServer.txt" outputproperty="trash" />
|
||||
<java fork="true" failonerror="yes" classname="com.evolute.xml.ServerJarsXml" classpathref="lib.tools.classpath">
|
||||
<arg line="'${app.appName}'"/>
|
||||
</java>
|
||||
</else>
|
||||
</if>
|
||||
<xmlproperty file="currentServerJars.xml"/>
|
||||
</target>
|
||||
|
||||
<target name="compare-client-and-server-jars" depends="verify-jars-at-server-2">
|
||||
<xmlproperty file="clientJars.xml" prefix="new"/>
|
||||
<xmlproperty file="currentServerJars.xml"/>
|
||||
<property name="toDeploy.jars" value=""/>
|
||||
<for list="${new.project.signed-jar-files.name}" param="jar">
|
||||
<sequential>
|
||||
<for list="${current-server-jar-files.name}" param="currJar">
|
||||
<sequential>
|
||||
<if>
|
||||
<and>
|
||||
<equals arg1="@{jar}" arg2="@{currJar}"/>
|
||||
<equals arg1="${new.project.signed-jar-files.name(@{jar}-md5)}" arg2="${current-server-jar-files.name(@{currJar}-md5)}"/>
|
||||
</and>
|
||||
<then>
|
||||
<property name="@{jar}-exists-on-server" value=""/>
|
||||
</then>
|
||||
</if>
|
||||
</sequential>
|
||||
</for>
|
||||
<if>
|
||||
<not>
|
||||
<isset property="@{jar}-exists-on-server"/>
|
||||
</not>
|
||||
<then>
|
||||
<var name="toDeploy.jars" value="${toDeploy.jars};${new.project.signed-jar-files.name(@{jar}-path)}@{jar}"/>
|
||||
</then>
|
||||
</if>
|
||||
</sequential>
|
||||
</for>
|
||||
<echo message="toDeploy.jars = ${toDeploy.jars}"/>
|
||||
</target>
|
||||
|
||||
<target name="send-main-jar">
|
||||
<if>
|
||||
<isset property="TESTDEPLOY"/>
|
||||
<then>
|
||||
<echo message="scp @{jar} ${deploy.user}@${app.deploy.server}:/home/software/public_html/versoes_teste/${app.appName}"/>
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/versoes_teste/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/signed" includes="*.jar"/>
|
||||
</scp>
|
||||
</then>
|
||||
<else>
|
||||
<echo message="scp @{jar} ${deploy.user}@${app.deploy.server}:/home/software/public_html/${app.appName}"/>
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/signed" includes="*.jar"/>
|
||||
</scp>
|
||||
</else>
|
||||
</if>
|
||||
</target>
|
||||
|
||||
<target name="send-jars-to-server-2" depends="compare-client-and-server-jars, send-main-jar">
|
||||
<echo message="Jars to deploy: ${toDeploy.jars}"/>
|
||||
<for list="${toDeploy.jars}" param="jar" delimiter=";">
|
||||
<sequential>
|
||||
<if>
|
||||
<and>
|
||||
<contains string="@{jar}" substring=".pack.gz"/>
|
||||
<equals arg1="${jnlp.resources.property.jnlp.packEnabled}" arg2="true"/>
|
||||
</and>
|
||||
<then>
|
||||
<if>
|
||||
<isset property="TESTDEPLOY"/>
|
||||
<then>
|
||||
<echo message="scp @{jar} ${deploy.user}@${app.deploy.server}:/home/software/public_html/versoes_teste/${app.appName}"/>
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/versoes_teste/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/signed/packed" includes="@{jar}"/>
|
||||
</scp>
|
||||
</then>
|
||||
<else>
|
||||
<echo message="scp @{jar} ${deploy.user}@${app.deploy.server}:/home/software/public_html/${app.appName}"/>
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/signed/packed" includes="@{jar}"/>
|
||||
</scp>
|
||||
</else>
|
||||
</if>
|
||||
</then>
|
||||
<else>
|
||||
<if>
|
||||
<and>
|
||||
<not>
|
||||
<contains string="@{jar}" substring=".pack.gz"/>
|
||||
</not>
|
||||
<not>
|
||||
<equals arg1="${jnlp.resources.property.jnlp.packEnabled}" arg2="true"/>
|
||||
</not>
|
||||
</and>
|
||||
<then>
|
||||
<if>
|
||||
<isset property="TESTDEPLOY"/>
|
||||
<then>
|
||||
<echo message="scp @{jar} ${deploy.user}@${app.deploy.server}:/home/software/public_html/versoes_teste/${app.appName}"/>
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/versoes_teste/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/signed" includes="@{jar}"/>
|
||||
</scp>
|
||||
</then>
|
||||
<else>
|
||||
<echo message="scp @{jar} ${deploy.user}@${app.deploy.server}:/home/software/public_html/${app.appName}"/>
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/signed" includes="@{jar}"/>
|
||||
</scp>
|
||||
</else>
|
||||
</if>
|
||||
</then>
|
||||
</if>
|
||||
</else>
|
||||
</if>
|
||||
</sequential>
|
||||
</for>
|
||||
<if>
|
||||
<isset property="TESTDEPLOY"/>
|
||||
<then>
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chmod -R -f g+w /home/software/public_html/versoes_teste/${app.appName}; true" password="${deploy.password}" />
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chown -R -f :software /home/software/public_html/versoes_teste/${app.appName}; true" password="${deploy.password}" />
|
||||
</then>
|
||||
<else>
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chmod -R -f g+w /home/software/public_html/${app.appName}; true" password="${deploy.password}" />
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chown -R -f :software /home/software/public_html/${app.appName}; true" password="${deploy.password}" />
|
||||
</else>
|
||||
</if>
|
||||
</target>
|
||||
|
||||
<target name="delete-principal-jar" depends="send-jars-to-server-2">
|
||||
<delete file="signed/${app.appName}.jar"/>
|
||||
<delete file="signed/packed/${app.appName}.jar.pack.gz"/>
|
||||
<delete file="currentServerJars.xml"/>
|
||||
<delete file="jarsAtServer.txt"/>
|
||||
<delete file="newClientJars.xml"/>
|
||||
</target>
|
||||
|
||||
<!-- END NEW -->
|
||||
|
||||
<!-- TEST PROJECT -->
|
||||
|
||||
|
||||
<target name="test-project">
|
||||
<property file="script.properties"/>
|
||||
<echo message="${svn_repo} ${user} ${pass} ${target} ${build}"/>
|
||||
<antcall target="app-create-jar"/>
|
||||
</target>
|
||||
|
||||
<target name="deploy-project-script">
|
||||
<property file="script.properties"/>
|
||||
<antcall target="app-deploy"/>
|
||||
</target>
|
||||
|
||||
|
||||
<!-- END TEST PROJECT -->
|
||||
|
||||
<target name="app-deploy-version-jars-user-pass" if="deploy.password">
|
||||
<antcall target="prepare-deploy-location" />
|
||||
<echo message="Uploading files: ${deploy.jars}"/>
|
||||
<scp 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"/>
|
||||
<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 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,88 @@
|
||||
<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>
|
||||
|
||||
<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,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="evo-web-build-common" basedir="../../">
|
||||
|
||||
<import file="evo-web-compile-common.xml" />
|
||||
|
||||
<target name="web-build" description="Compiles all application classes" depends="web-prepare,web-pre-build">
|
||||
<mkdir dir="${web.build.dir}" />
|
||||
<depend srcdir="${web.src.dir}" destdir="${web.build.dir}" cache="${web.dependencies.chache.dir}">
|
||||
<include name="**/*.java" />
|
||||
</depend>
|
||||
<javac srcdir="${web.src.dir}" destdir="${web.build.dir}" classpathref="web.build.classpath" debug="on" deprecation="on" fork="true" memoryMaximumSize="512M" />
|
||||
<antcall target="create-web-properties-file"/>
|
||||
<antcall target="web-post-build"/>
|
||||
</target>
|
||||
|
||||
<target name="create-web-properties-file">
|
||||
<propertyfile file="${web.build.dir}/AnalisesAcidentesTrabalho.properties">
|
||||
<entry key="timestamp" type="date" value="now"/>
|
||||
<entry key="user" value="${user.name}"/>
|
||||
</propertyfile>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,84 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="evo-web-compile-common" basedir="../../">
|
||||
|
||||
<import file="evo-web-load-properties.xml" />
|
||||
|
||||
<!-- BUILD -->
|
||||
|
||||
<target name="web-post-build" />
|
||||
|
||||
<target name="web-pre-build" />
|
||||
|
||||
<target name="web-build" />
|
||||
|
||||
<target name="cifrar" depends="web-properties-exists" if="web.properties.exists" >
|
||||
<echo message="Encrypting web.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="${web.build.dir}${file.separator}app.properties"/>
|
||||
</target>
|
||||
|
||||
<target name="web-properties-exists">
|
||||
<available file="${properties.dir}${file.separator}app.properties" property="web.properties.exists"/>
|
||||
</target>
|
||||
|
||||
<target name="web-prepare" depends="load-properties">
|
||||
<echo message="Dealing with package-info.java files (ant compilation problem workaround)" />
|
||||
<delete failonerror="false">
|
||||
<fileset dir="${web.build.dir}" includes="**/package-info.java"/>
|
||||
</delete>
|
||||
<echo message="Copying non-java files to build directory" />
|
||||
<copy failonerror="false" overwrite="true" verbose="true" todir="${web.build.dir}" file="${web.version.file}"/>
|
||||
<copy verbose="true" failonerror="true" overwrite="true" todir="${web.build.dir}">
|
||||
<!-- <fileset dir="${web.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="web-clean" description="Removes all generated files" depends="load-static-properties">
|
||||
<delete verbose="true" failonerror="false">
|
||||
<fileset dir="${web.build.dir}">
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</delete>
|
||||
<delete dir="${web.build.dir}" verbose="true" failonerror="true" />
|
||||
<delete dir="${web.dist.dir}" verbose="true" failonerror="true" />
|
||||
<delete dir="${web.deploy.dist.dir}" verbose="true" failonerror="true" />
|
||||
</target>
|
||||
|
||||
<!-- JAR -->
|
||||
<target name="web-create-jar" description="Make application Jar" depends="web-clean, web-build" >
|
||||
<pathconvert property="jar.classpath.converted" refid="web.jar.classpath" pathsep=" ">
|
||||
<map from="${web.dir}/" to="" />
|
||||
<map from="${basedir}/" to="" />
|
||||
</pathconvert>
|
||||
<mkdir dir="${web.dist.dir}" />
|
||||
<jar destfile="${web.dist.dir}${file.separator}AnalisesAcidentesTrabalho.jar">
|
||||
<fileset dir="${web.build.dir}">
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</jar>
|
||||
<copy todir="${web.dist.lib.dir}">
|
||||
<fileset dir="${web.lib.dir}">
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,91 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="evo-web-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="web.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="${web.dir}/docs" />
|
||||
<property name="docs.api.dir" value="${docs.dir}/api" />
|
||||
<property name="web.src.dir" value="${web.dir}/src" />
|
||||
<property name="web.lib.dir" value="${web.dir}/lib" />
|
||||
<property name="deploy.project.relative.lib.dir" value="lib" />
|
||||
<property name="web.dist.dir" value="${web.dir}/dist" />
|
||||
<property name="web.dist.lib.dir" value="${web.dist.dir}/lib" />
|
||||
<property name="web.deploy.dist.dir" value="${web.dir}/deploy" />
|
||||
<property name="web.deploy.dist.lib.dir" value="${web.deploy.dist.dir}/lib" />
|
||||
<property name="web.build.dir" value="${web.dir}/build" />
|
||||
<property name="web.dependencies.chache.dir" value="${web.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="web.jar.classpath">
|
||||
<fileset dir="${web.lib.dir}" />
|
||||
<fileset dir="${basedir}/web/WEB-INF/lib" />
|
||||
<fileset file="${basedir}/lib.tools/servlet-api.jar" />
|
||||
<fileset file="${basedir}/lib.tools/jsp-api.jar" />
|
||||
<fileset file="${basedir}/lib.tools/el-api.jar" />
|
||||
</path>
|
||||
|
||||
<path id="web.build.classpath">
|
||||
<pathelement location="${web.build.dir}" />
|
||||
<path refid="web.jar.classpath" />
|
||||
</path>
|
||||
|
||||
<path id="lib.docs.classpath">
|
||||
<path refid="lib.tools.classpath" />
|
||||
<path refid="web.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" />
|
||||
<antcall target="load-static-properties"/>
|
||||
</target>
|
||||
|
||||
<target name="load-properties" depends="load-static-properties,load-properties-file">
|
||||
|
||||
<property name="web.name" value="${web.appName}" />
|
||||
|
||||
<property name="web.jar.name" value="${web.name}.jar" />
|
||||
<property name="jnlp.dir" value="${web.dir}/jnlp" />
|
||||
<property name="jnlp.extensions.dir" value="${jnlp.dir}/extensions" />
|
||||
<property name="web.java.version" value="${java.version}" />
|
||||
<property name="web.deploy.server" value="www.evolute.pt" />
|
||||
<property name="web.deploy.path" value="/home/software/src_${web.name}" />
|
||||
<property name="web.deploy.jnlp.path" value="${web.deploy.path}/jnlp" />
|
||||
<property name="web.deploy.production.script" value="/home/software/auto_deploy.sh ${web.name}" />
|
||||
<property name="web.deploy.test.script" value="/home/software/auto_test_deploy.sh ${web.name}" />
|
||||
<property name="deploy.prepare.script" value="/home/software/auto_prepare_deploy.sh ${web.name}" />
|
||||
<property name="web.deploy.docs.server" value="${web.deploy.server}" />
|
||||
<property name="web.deploy.docs.path" value="/home/software/public_html/docs/${web.name}" />
|
||||
<property name="web.docs.prepare.script" value="/home/software/auto_prepare_docs_upload.sh" />
|
||||
|
||||
<property name="web.version.file" value="${properties.base.dir}/version.properties" />
|
||||
<property name="web.version.comment" value="${web.name} versioning file" />
|
||||
<property name="web.run.args" value="" />
|
||||
<property name="jvm.run.args" value="-XX:-UseGCOverheadLimit" />
|
||||
<property name="web.ws.wsdl.url" value="${web.ws.wsdl.url.protocol}://${web.ws.wsdl.url.host}:${web.ws.wsdl.url.port}${web.ws.wsdl.url.path}" />
|
||||
|
||||
<property name="web.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,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>
|
||||
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="evo-web-build" basedir="../" default="build-war">
|
||||
<import file="common/evo-web-build-common.xml" />
|
||||
|
||||
|
||||
<target name="build-war" depends="web-clean,web-create-jar">
|
||||
<war destfile="${web.dist.dir}/${ant.project.name}.war" webxml="${basedir}/web/WEB-INF/web.xml">
|
||||
<fileset dir="${basedir}/web">
|
||||
<include name="**/*.*" />
|
||||
<exclude name="WEB-INF/web.xml" />
|
||||
</fileset>
|
||||
<lib file="${web.dist.dir}/AnalisesAcidentesTrabalho.jar"/>
|
||||
</war>
|
||||
</target>
|
||||
</project>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue