Skip to content

Commit

Permalink
addd missing build file
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed May 3, 2006
1 parent eb48fb5 commit 2933c2b
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
50 changes: 50 additions & 0 deletions build.test.xml
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
** @author Matthias L. Jugel
** @version $Id$
-->
<project basedir="." default="test" name="SnipSnap.test">
<description>
Execute Tests for SnipSnap.
</description>

<property file="conf/build.properties"/>

<target name="prepare-tests" depends="snipsnap-war, jar-server, compile-test">
<mkdir dir="${dir.out}/test/org/snipsnap/config"/>
<copy file="conf/snipsnap.conf" tofile="./cls/test/conf/snipsnap.conf"/>
<copy file="src/org/snipsnap/config/defaults.conf" tofile="${dir.out}/test/org/snipsnap/config/defaults.conf"/>
<copy file="src/org/snipsnap/config/globals.conf" tofile="${dir.out}/test/org/snipsnap/config/globals.conf"/>
<copy file="src/org/snipsnap/config/transpose.map" tofile="${dir.out}/test/org/snipsnap/config/transpose.map"/>
<copy todir="${dir.out}/test">
<fileset dir="${dir.src}/apps/default" includes="**.properties"/>
</copy>

</target>

<target name="test" depends="prepare-tests">
<junit printsummary="true">
<formatter usefile="false" type="plain"/>
<test name="org.snipsnap.test.AllTests"/>
<classpath>
<pathelement location="${dir.out}/test"/>
<pathelement location="${dir.out}/webapp/WEB-INF/classes"/>
<path refid="all.classpath"/>
<path refid="snipsnap.test"/>
</classpath>
</junit>
</target>

<target name="test-complex" depends="snipsnap-war, jar-server, prepare-tests, compile-test">
<junit printsummary="true">
<formatter usefile="false" type="plain"/>
<test name="org.snipsnap.test.AllComplexTests"/>
<classpath>
<pathelement location="${dir.out}/test"/>
<pathelement location="${dir.out}"/>
<path refid="all.classpath"/>
</classpath>
</junit>
</target>
</project>
2 changes: 1 addition & 1 deletion src/snipsnap/api/config/Configuration.java
Expand Up @@ -89,7 +89,7 @@ public interface Configuration extends Globals {

// automatically created interface/constants stub from
// /Users/leo/src/Projects/SnipSnap/core/trunk/src/org/snipsnap/config/defaults.conf
// generated on 3/8/06 10:51 AM
// generated on 3/28/06 8:13 AM
// constant/getter for 'app.admin.email'
public final static String APP_ADMIN_EMAIL = "app.admin.email";
public String getAdminEmail();
Expand Down

0 comments on commit 2933c2b

Please sign in to comment.