Build the tests along with everything else. No longer will they languish
in obscurity. Fixed a couple of out of date bits in the process. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3615 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -105,6 +105,7 @@
|
|||||||
<!-- cleans out the installed application -->
|
<!-- cleans out the installed application -->
|
||||||
<target name="clean">
|
<target name="clean">
|
||||||
<delete dir="${deploy.dir}"/>
|
<delete dir="${deploy.dir}"/>
|
||||||
|
<ant dir="tests" target="clean"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- build the java class files -->
|
<!-- build the java class files -->
|
||||||
@@ -162,11 +163,17 @@
|
|||||||
</copy>
|
</copy>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<!-- builds the various tests -->
|
||||||
|
<target name="tests">
|
||||||
|
<ant dir="tests" target="compile"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
<!-- a target for rebuilding everything -->
|
<!-- a target for rebuilding everything -->
|
||||||
<target name="all" depends="clean,prepare,compile,ncompile,javadoc,dist"/>
|
<target name="all"
|
||||||
|
depends="clean,prepare,compile,ncompile,javadoc,tests,dist"/>
|
||||||
|
|
||||||
<!-- builds our distribution files (war and jar) -->
|
<!-- builds our distribution files (war and jar) -->
|
||||||
<target name="dist" depends="prepare,compile,ncompile">
|
<target name="dist" depends="prepare,compile,ncompile,tests">
|
||||||
<!-- build our various jar files -->
|
<!-- build our various jar files -->
|
||||||
<jar destfile="${deploy.dir}/${app.name}-base.jar">
|
<jar destfile="${deploy.dir}/${app.name}-base.jar">
|
||||||
<fileset dir="${classes.dir}" includes="com/threerings/io/**"/>
|
<fileset dir="${classes.dir}" includes="com/threerings/io/**"/>
|
||||||
|
|||||||
@@ -45,9 +45,11 @@ import com.threerings.jme.JmeApp;
|
|||||||
public class JabberApp extends JmeApp
|
public class JabberApp extends JmeApp
|
||||||
{
|
{
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
public void init ()
|
public boolean init ()
|
||||||
{
|
{
|
||||||
super.init();
|
if (!super.init()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// initialize our client instance
|
// initialize our client instance
|
||||||
_client = new JabberClient();
|
_client = new JabberClient();
|
||||||
@@ -81,6 +83,8 @@ public class JabberApp extends JmeApp
|
|||||||
|
|
||||||
// speed up key input
|
// speed up key input
|
||||||
_input.setKeySpeed(100f);
|
_input.setKeySpeed(100f);
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void run (String server, int port, String username, String password)
|
public void run (String server, int port, String username, String password)
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
package com.threerings.parlor;
|
package com.threerings.parlor;
|
||||||
|
|
||||||
import com.threerings.parlor.client.GameConfigurator;
|
import com.threerings.parlor.game.client.GameConfigurator;
|
||||||
import com.threerings.parlor.game.data.GameConfig;
|
import com.threerings.parlor.game.data.GameConfig;
|
||||||
|
|
||||||
public class TestConfig extends GameConfig
|
public class TestConfig extends GameConfig
|
||||||
|
|||||||
Reference in New Issue
Block a user