Commit 25ca8c7c authored by Christoph Thelen's avatar Christoph Thelen

Run legacy Ant targets with Maven

parent 6be3e4ac
......@@ -2,3 +2,9 @@
.classpath
.settings/*
target/*
# Output files
src/main/webapp/lib/sencha1.1.1/arsnovaCombined.js
src/main/webapp/lib/sencha1.1.1/arsnovaCombined-debug.js
src/main/webapp/lib/sencha1.1.1/pkgs/arsnovaCombined.js
src/main/webapp/resources/css/arsnova_min.css
<project name="ARSnova" default="run">
<property name="lib.dir" value="lib" />
<property name="main.dir" value="src/main/webapp" />
<property name="lib.dir" value="${main.dir}/lib" />
<property name="sencha.dir" value="${lib.dir}/sencha1.1.1" />
<target name="min:js">
......@@ -13,8 +14,8 @@
</target>
<target name="min:css">
<java jar="${sencha.dir}/jsbuilder/ycompressor/ycompressor.jar" fork="true" failonerror="true" output="resources/css/arsnova_min.css">
<arg value="resources/css/arsnova_new.css" />
<java jar="${sencha.dir}/jsbuilder/ycompressor/ycompressor.jar" fork="true" failonerror="true" output="${main.dir}/resources/css/arsnova_min.css">
<arg value="${main.dir}/resources/css/arsnova_new.css" />
</java>
</target>
......
......@@ -4,4 +4,29 @@
<artifactId>arsnova-legacy-js</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>war</packaging>
</project>
\ No newline at end of file
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>compile</phase>
<configuration>
<target>
<ant target="min:css"/>
<ant target="min:js"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment