Skip to content

Commit

Permalink
Updated build.xml to fail descriptively if LiveConnect of JUnit is no…
Browse files Browse the repository at this point in the history
…t found, updated BUILD to say JUnit 3, not "4 or greater", since we curently use JUnit 3 API

git-svn-id: https://svn.apache.org/repos/asf/incubator/pivot/trunk@764922 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Todd Volkert committed Apr 14, 2009
1 parent d6e5389 commit 19ddb09
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ System Requirements

* JDK 1.6 or greater (http://java.sun.com/)
* Ant 1.7 or greater (http://ant.apache.org/)
* JUnit 4 or greater (http://www.junit.org/)
* JUnit 3 (http://www.junit.org/)


Building Pivot
Expand Down
16 changes: 16 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,14 @@ limitations under the License.

<!-- Core Test -->
<target name="core-test" depends="core">
<fail message="JUnit not found. Please see the BUILD file for more information.">
<condition>
<not>
<available classname="junit.framework.TestCase"/>
</not>
</condition>
</fail>

<mkdir dir="core/${folder.bin}"/>
<javac srcdir="core/test"
destDir="core/${folder.bin}"
Expand Down Expand Up @@ -354,6 +362,14 @@ limitations under the License.

<!-- WTK -->
<target name="wtk" depends="core">
<fail message="LiveConnect not found. Please see the BUILD file for more information.">
<condition>
<not>
<available classname="netscape.javascript.JSObject"/>
</not>
</condition>
</fail>

<mkdir dir="wtk/${folder.bin}"/>
<javac srcdir="wtk/src"
destDir="wtk/${folder.bin}"
Expand Down

0 comments on commit 19ddb09

Please sign in to comment.