Partial move to maven build system
This commit is contained in:
1 parent
7fd91625d6
commit
11b7c07481
19 files changed
+18
-88
No files matched your search
@@ -1,13 +0,0 @@
|
||||
servlet.api.jar=/usr/share/tomcat6/lib/servlet-api.jar
|
||||
|
||||
src.dir=src
|
||||
web.dir=web
|
||||
|
||||
build.dir=build
|
||||
dist.dir=dist
|
||||
doc.dir=doc
|
||||
|
||||
guac.version=0.3.1rc1
|
||||
tar.dir=guacamole-${guac.version}
|
||||
tar.src.dir=guacamole-src
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<project name="guacamole" default="compile" basedir=".">
|
||||
|
||||
<property file="ant/build.properties"/>
|
||||
|
||||
<target name="clean" description="Removes build and dist dirs.">
|
||||
<delete dir="${build.dir}"/>
|
||||
<delete dir="${dist.dir}"/>
|
||||
<delete dir="${tar.dir}"/>
|
||||
<delete dir="${tar.src.dir}"/>
|
||||
<delete file="${tar.dir}.tar.gz"/>
|
||||
</target>
|
||||
|
||||
<target name="init" description="Creates build and dist dirs.">
|
||||
<mkdir dir="${build.dir}"/>
|
||||
<mkdir dir="${build.dir}/WEB-INF/classes"/>
|
||||
<mkdir dir="${dist.dir}"/>
|
||||
</target>
|
||||
|
||||
<target name="compile" description="Compiles Guacamole."
|
||||
depends="init">
|
||||
<copy todir="${build.dir}">
|
||||
<fileset dir="${web.dir}"/>
|
||||
</copy>
|
||||
|
||||
<!-- Replace __GUAC_VERSION with declared version -->
|
||||
<replace dir="${build.dir}" value="${guac.version}">
|
||||
<include name="**/*.html"/>
|
||||
<replacetoken><![CDATA[__GUAC_VERSION]]></replacetoken>
|
||||
</replace>
|
||||
|
||||
<javac srcdir="${src.dir}" destdir="${build.dir}/WEB-INF/classes"
|
||||
classpath="${servlet.api.jar}">
|
||||
<compilerarg value="-Xlint:unchecked"/>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="war" description="Builds Guacamole .war file."
|
||||
depends="compile">
|
||||
<war destfile="${dist.dir}/guacamole.war"
|
||||
webxml="${build.dir}/WEB-INF/web.xml">
|
||||
<fileset dir="${build.dir}"/>
|
||||
</war>
|
||||
</target>
|
||||
|
||||
<target name="tar" description="Build distributable .tar.gz file"
|
||||
depends="war">
|
||||
<mkdir dir="${tar.dir}"/>
|
||||
|
||||
<mkdir dir="${tar.src.dir}"/>
|
||||
<copy todir="${tar.src.dir}">
|
||||
<fileset dir=".">
|
||||
<exclude name=".git/**"/>
|
||||
<exclude name="**/.svn"/>
|
||||
<exclude name="${tar.dir}/**"/>
|
||||
<exclude name="${tar.src.dir}/**"/>
|
||||
<exclude name="${dist.dir}/**"/>
|
||||
<exclude name="${build.dir}/**"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
<tar basedir="." includes="${tar.src.dir}/**" destfile="${tar.dir}/${tar.src.dir}.tar" longfile="gnu"/>
|
||||
<delete dir="${tar.src.dir}"/>
|
||||
|
||||
<copy todir="${tar.dir}">
|
||||
<fileset file="${doc.dir}/example/guacamole.properties"/>
|
||||
<fileset file="${doc.dir}/example/user-mapping.xml"/>
|
||||
<fileset file="${dist.dir}/guacamole.war"/>
|
||||
<fileset file="LICENSE.txt"/>
|
||||
</copy>
|
||||
|
||||
<tar basedir="." includes="${tar.dir}/**" destfile="${tar.dir}.tar.gz" compression="gzip" longfile="gnu"/>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,18 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>net.sourceforge.guacamole</groupId>
|
||||
<artifactId>guacamole-common</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<name>guacamole-common</name>
|
||||
<url>http://maven.apache.org</url>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>3.8.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user