Comment #4 on issue 120 by allain.lalonde: ant all fails to build all of  
piccolo
http://code.google.com/p/piccolo2d/issues/detail?id=120

Here's a patch that allows it to compile on my system. I'm not sure about  
the
procedure for patching a tag release-1.2.1 so, I'll let someone else apply  
it.

Index: build.xml
===================================================================
--- build.xml   (revision 652)
+++ build.xml   (working copy)
@@ -274,7 +274,7 @@

      <javac srcdir="${build.tests.src}"
             destdir="${build.tests.dest}"
-                   
classpath="${build.dir}/${name}.jar;${build.dir}/${name}x.jar"
+
classpath="${build.dir}/${name}.jar;${build.dir}/${name}x.jar;${lib.dir}/junit.jar"
             debug="${debug}"
             deprecation="${deprecation}"
             optimize="${optimize}"
@@ -327,6 +327,7 @@
    <target name="runtests" depends="tests">
      <java fork="yes" classname="junit.textui.TestRunner" taskname="junit"
failonerror="true">
        <arg value="RunAllUnitTests"/>
+      <jvmarg value="-Djava.awt.headless=true" />
        <classpath>
          <pathelement location="${build.dir}/${name}.jar" />
          <pathelement location="${build.dir}/${name}x.jar" />
Index: tests/PFrameTest.java
===================================================================
--- tests/PFrameTest.java       (revision 652)
+++ tests/PFrameTest.java       (working copy)
@@ -13,6 +13,9 @@
      }

      public void testComponentResized() throws InvocationTargetException,
InterruptedException {
+        if (java.awt.GraphicsEnvironment.isHeadless()) {
+          return;
+        }
          final PFrame frame = new PFrame();
          frame.setBounds(0, 0, TEST_WIDTH, TEST_HEIGHT);
          EventQueue.invokeAndWait(new Runnable() {

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to