archetype-resources.build.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camunda-archetype-servlet-spring-camel-war
Show all versions of camunda-archetype-servlet-spring-camel-war
Process application that uses a shared Camunda BPM engine in a Servlet Container, e.g. Apache Tomcat.
Contains: Servlet Process Application, BPMN Process, Java Delegate, HTML5-based start and task forms,
JUnit Test with in-memory engine, Maven Plugins or Ant build script for one-click deployment in Eclipse
The newest version!
#set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' ) <?xml version="1.0" encoding="UTF-8"?> <project name="${artifactId}" default="deploy.jboss"> <property file="build.properties" /> <property file="${symbol_dollar}{user.home}/.camunda/build.properties" /> <property name="target.dir" value="target" /> <condition property="mvn.executable" value="mvn.bat" else="mvn"> <os family="windows"/> </condition> <target name="package.mvn"> <exec executable="${symbol_dollar}{mvn.executable}" dir="." failonerror="true"> <env key="MAVEN_OPTS" value="-Xmx1024m -Xms512m -DskipTests=true -Dmaven.test.skip=true" /> <arg line="clean install" /> </exec> </target> <target name="deploy.jboss" depends="package.mvn, copy.war.into.jboss" description="Copies the process application to the deployment directory defined in '${symbol_dollar}{basedir}/build.properties' or '${symbol_dollar}{user.home}/.camunda/build.properties'" /> <target name="copy.war.into.jboss"> <fail unless="deploy.jboss.dir" message="No deployment folder has been configured. Please copy the file '${symbol_dollar}{basedir}/build.properties.example' to '${symbol_dollar}{basedir}/build.properties' or '${symbol_dollar}{user.home}/.camunda/build.properties' and change it according to your environment." /> <copy file="${symbol_dollar}{target.dir}/${symbol_dollar}{ant.project.name}.war" todir="${symbol_dollar}{deploy.jboss.dir}" /> </target> <target name="undeploy.jboss" description="Deletes the process application from the deployment directory defined in '${symbol_dollar}{basedir}/build.properties' or '${symbol_dollar}{user.home}/.camunda/build.properties'"> <delete file="${symbol_dollar}{deploy.jboss.dir}/${symbol_dollar}{ant.project.name}.war" /> </target> <target name="deploy.tomcat" depends="package.mvn, copy.war.into.tomcat" description="Copies the process application to the deployment directory defined in '${symbol_dollar}{basedir}/build.properties' or '${symbol_dollar}{user.home}/.camunda/build.properties'" /> <target name="copy.war.into.tomcat"> <fail unless="deploy.tomcat.dir" message="No deployment folder has been configured. Please copy the file '${symbol_dollar}{basedir}/build.properties.example' to '${symbol_dollar}{basedir}/build.properties' or '${symbol_dollar}{user.home}/.camunda/build.properties' and change it according to your environment." /> <copy file="${symbol_dollar}{target.dir}/${symbol_dollar}{ant.project.name}.war" todir="${symbol_dollar}{deploy.tomcat.dir}" /> </target> <target name="undeploy.tomcat" description="Deletes the process application from the deployment directory defined in '${symbol_dollar}{basedir}/build.properties' or '${symbol_dollar}{user.home}/.camunda/build.properties'"> <delete file="${symbol_dollar}{deploy.tomcat.dir}/${symbol_dollar}{ant.project.name}.war" /> </target> </project>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy