Skip to content

Commit

Permalink
Update Webapp Ant Script, Create Webapp Ant Script
Browse files Browse the repository at this point in the history
  • Loading branch information
danjasuw committed Nov 19, 2018
1 parent 269fe45 commit 4ba5a63
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 1 deletion.
85 changes: 85 additions & 0 deletions proxl_web_app/ant_Copy_FrontEnd_ToTomcat.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." name="Proxl Copy_FrontEnd_ToTomcat" default="copy-front-end">

<!-- Build the 'front end' and copy to a Tomcat Deploy -->

<!--
<property environment="env" />
<property name="gradle.wrapper.executable" location="${env.GRADLE_HOME}/bin/gradle" />
<echo>env:${env}</echo>
<echo>env.GRADLE_HOME:${env.GRADLE_HOME}</echo>
-->

<property name="config_file" value="aa_ant_buildWar_CopyToTomcat.settings.properties" />

<property name="config_file_with_path"
value="${config_file}"/>

<fail message="ERROR: '${config_file}' file not found, check the path. filename with path: ${config_file_with_path}">
<condition>
<not>
<available file="${config_file_with_path}" />
</not>
</condition>
</fail>

<echo>config_file_with_path: ${config_file_with_path}</echo>

<!-- This does not fail if the file is not found -->
<property file="${config_file_with_path}" />

<echo>gradle.wrapper.executable: ${gradle.wrapper.executable}</echo>

<echo>tomcat.webapps.root: ${tomcat.webapps.root}</echo>
<echo>proxl.context: ${proxl.context}</echo>

<property name="tomcat.proxl.webapp.root" value="${tomcat.webapps.root}${file.separator}${proxl.context}" />


<property name="tomcat.css" value="${tomcat.proxl.webapp.root}${file.separator}css" />
<property name="tomcat.images" value="${tomcat.proxl.webapp.root}${file.separator}images" />
<property name="tomcat.js" value="${tomcat.proxl.webapp.root}${file.separator}js" />

<property name="tomcat.jsp-includes" value="${tomcat.proxl.webapp.root}${file.separator}WEB-INF${file.separator}jsp-includes" />
<property name="tomcat.jsp-pages" value="${tomcat.proxl.webapp.root}${file.separator}WEB-INF${file.separator}jsp-pages" />
<property name="tomcat.jsp_template_fragments" value="${tomcat.proxl.webapp.root}${file.separator}WEB-INF${file.separator}jsp_template_fragments" />

<target name="copy-front-end" description="">

<delete dir="${tomcat.css}"/>
<mkdir dir="${tomcat.css}"/>
<delete dir="${tomcat.images}"/>
<mkdir dir="${tomcat.images}"/>
<delete dir="${tomcat.js}"/>
<mkdir dir="${tomcat.js}"/>
<delete dir="${tomcat.jsp-includes}"/>
<mkdir dir="${tomcat.jsp-includes}"/>
<delete dir="${tomcat.jsp-pages}"/>
<mkdir dir="${tomcat.jsp-pages}"/>
<delete dir="${tomcat.jsp_template_fragments}"/>
<mkdir dir="${tomcat.jsp_template_fragments}"/>

<copy todir="${tomcat.css}" >
<fileset dir="src${file.separator}main${file.separator}webapp${file.separator}css" />
</copy>
<copy todir="${tomcat.images}" >
<fileset dir="src${file.separator}main${file.separator}webapp${file.separator}images" />
</copy>
<copy todir="${tomcat.js}" >
<fileset dir="src${file.separator}main${file.separator}webapp${file.separator}js" />
</copy>

<copy todir="${tomcat.jsp-includes}" >
<fileset dir="src${file.separator}main${file.separator}webapp${file.separator}WEB-INF${file.separator}jsp-includes" />
</copy>
<copy todir="${tomcat.jsp-pages}" >
<fileset dir="src${file.separator}main${file.separator}webapp${file.separator}WEB-INF${file.separator}jsp-pages" />
</copy>
<copy todir="${tomcat.jsp_template_fragments}" >
<fileset dir="src${file.separator}main${file.separator}webapp${file.separator}WEB-INF${file.separator}jsp_template_fragments" />
</copy>

</target>

</project>
2 changes: 1 addition & 1 deletion proxl_web_app/ant_build_War_CopyToTomcat.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<echo>gradle.wrapper.executable: ${gradle.wrapper.executable}</echo>

<echo>tomcat.webapps.root: ${tomcat.webapps.root}</echo>
<echo>limelight.context: ${limelight.context}</echo>
<echo>proxl.context: ${proxl.context}</echo>

<target name="built-copy-war" description="">

Expand Down

0 comments on commit 4ba5a63

Please sign in to comment.