Initial commit from SVN.

This commit is contained in:
wcrisman
2014-05-30 10:31:51 -07:00
commit b45e56b890
1968 changed files with 370949 additions and 0 deletions

122
Common/build.xml Normal file
View File

@@ -0,0 +1,122 @@
<!--
Builds the common project.
-->
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="Common Project" default="build-common" basedir=".">
<property name="compress" value="true"/>
<property name="build" value="./build"/>
<!-- BEGIN: ivy library -->
<property name="ivy" value="${build}/Ivy"/>
<property name="ivy.version" value="2.3.0"/>
<target name="check-ivy">
<available file="${ivy.jar.file}" property="skip.download.ivy"/>
</target>
<target name="download-ivy" depends="check-ivy" unless="skip.download.ivy">
<mkdir dir="${ivy}"/>
<echo message="installing ivy..."/>
<get src="http://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.version}/ivy-${ivy.version}.jar" dest="${ivy}/ivy-${ivy.version}.jar" usetimestamp="true"/>
</target>
<target name="load-ivy" depends="download-ivy">
<path id="ivy.classpath">
<fileset dir="${ivy}">
<include name="*.jar"/>
</fileset>
</path>
<taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.classpath"/>
</target>
<!-- END: ivy library -->
<!-- BEGIN: svnant library -->
<property name="svnant" value="${build}/SvnAnt"/>
<property name="svnant-version" value='1.4dev-5544'/>
<property name="svnant-folder-version" value='1.4dev'/>
<target name="check-svnant">
<available file="${svnant}/svnant-${svnant-version}.zip" property="skip-download-svnant"/>
</target>
<target name="download-svnant" depends="check-svnant" unless="skip-download-svnant">
<delete dir="${svnant}" quiet="true" failonerror="false"/>
<mkdir dir="${svnant}"/>
<echo message="Installing SvnAnt..."/>
<get src="http://media:8081/artifactory/simple/libs-release-local/svnant-${svnant-version}.zip" dest="${svnant}" usetimestamp="true"/>
<unzip src="${svnant}/svnant-${svnant-version}.zip" dest="${build}/SvnAnt">
</unzip>
</target>
<target name="load-svnant" depends="download-svnant">
<path id="svnant.classpath">
<fileset dir="${build}/SvnAnt/"> <!--${build}/SvnAnt/svnant-${svnant-folder-version}/lib-->
<include name="**/*.jar"/>
</fileset>
</path>
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="svnant.classpath"/>
</target>
<!-- END: svnant library -->
<target name="ivy-setup" depends="load-ivy">
<property name="ivy.default.ivy.user.dir" location="./.ivy/"/>
<ivy:configure id="ivy.settings" file="ivysettings.xml" username="jenkins" passwd="1qaz2wsx"/>
<ivy:resolve file="ivy.xml"/>
</target>
<target name="download-dependancies" depends="ivy-setup" description="Downloads the dependancies defined by the ivy.xml file from Artifactory.">
<ivy:retrieve />
</target>
<target name="upload-artifacts" depends="ivy-setup" description="Uploads artifacts defined by the ivy.xml file to Artifactory.">
<ivy:publish revision="${build-version}" status="incremental" resolver="libs-release-resolver" overwrite="true">
<artifacts pattern="[artifact]-[revision].[type].[ext]"/>
</ivy:publish>
</target>
<target name="load-svn-version">
<svn>
<wcVersion path="."/>
</svn>
<tstamp>
<format property="build-time" pattern="yyyyMMddkkmm" timezone="PST"/>
</tstamp>
</target>
<target name="get-dateversion" if="modified">
<property name="build-version" value="SNAPSHOT-${committed.max}-${build-time}"/>
</target>
<target name="get-svnversion" unless="modified">
<property name="build-version" value="SNAPSHOT-${committed.max}"/>
</target>
<target name="get-version" depends="load-svnant, load-svn-version, get-dateversion, get-svnversion">
<echo message="Project's SVN version: ${committed.max}; is modified source: ${modified}"/>
<echo message="Version used: ${build-version}"/>
</target>
<target name="init">
<mkdir dir="${build}/lib"/>
</target>
<target name="build-common" depends="build-common-src, build-common-bin" description="Builds the source zip and binary jar and places them in the ./build/lib directory.">
</target>
<target name="build-common-src" depends="init, get-version">
<zip destfile="${build}/lib/DE Common-${build-version}.src.zip" basedir="./src" compress="${compress}" includes="**/*.java, **/*.properties"/>
</target>
<target name="build-common-bin" depends="init, get-version">
<!-- Debug Build -->
<mkdir dir="${build}/bin"/>
<javac destdir="${build}/bin" target="1.4" source="1.4" encoding="utf-8" nowarn="true" verbose="no" fork="true" classpath="" debug="true" debuglevel="source" includeantruntime="false">
<compilerarg value="-XDignore.symbol.file"/>
<src path="./src"/>
</javac>
<jar destfile="${build}/lib/DE Common-${build-version}.bin.jar" basedir="./bin" compress="${compress}" includes="**/*.class, **/*.properties"/>
<delete dir="${build}/bin"/>
<!-- Release Build
<mkdir dir="${build}/bin"/>
<javac destdir="${build}/bin" target="1.4" source="1.4" encoding="utf-8" nowarn="true" verbose="no" fork="true" classpath="" debug="off" includeantruntime="false">
<compilerarg value="-XDignore.symbol.file"/>
<src path="./src"/>
</javac>
<jar destfile="${build}/lib/DE Common-${build-version}.jar" basedir="./bin" compress="${compress}" includes="**/*.class, **/*.properties"/>
<delete dir="${build}/bin"/>-->
</target>
<target name="clean" description="Cleans the old build files from disk.">
<delete dir="${build}"/>
</target>
</project>