From f667bb4bf5c96fd73f4a9cc6e91b8eca7e052d1f Mon Sep 17 00:00:00 2001 From: soupwizard Date: Sun, 16 Dec 2012 21:05:48 -0800 Subject: [PATCH] Added config file needed for travis-ci continuous integration hosting support. Fixed places in build.xml that had hardcoded path references to use relative references. Undid fix to build warning in MotorCompare.java, since the fix didn't work with java 1.7. --- .travis.yml | 4 + core/build.xml | 91 ++++++++++--------- .../net/sf/openrocket/utils/MotorCompare.java | 2 +- 3 files changed, 53 insertions(+), 44 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..d17ddb161 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,4 @@ +language: java +jdk: + - oraclejdk7 +script: "ant -buildfile core/build.xml clean checkascii build jar" diff --git a/core/build.xml b/core/build.xml index ee1ee9c5d..603f5787b 100644 --- a/core/build.xml +++ b/core/build.xml @@ -2,18 +2,23 @@ - - - - - + + + + + + + + + + + - @@ -24,7 +29,7 @@ - + @@ -33,23 +38,23 @@ - + - + - + - + @@ -57,7 +62,7 @@ - + @@ -75,27 +80,27 @@ - + - - + + - - - - - - - - - - - - + + + + + + + + + + + + @@ -104,7 +109,7 @@ - + @@ -120,8 +125,8 @@ fork="true" classpathref="run-classpath" failonerror="true"> - - + + @@ -136,7 +141,7 @@ classpathref="run-classpath" failonerror="true"> - + @@ -146,7 +151,7 @@ depends="build"> - - + - + @@ -212,7 +217,7 @@ - + Checking project for FIXMEs. @@ -235,10 +240,10 @@ ${criticaltodos} - + - + Checking project for non-ASCII characters. @@ -268,13 +273,13 @@ ${nonascii} Running unit tests - + - + @@ -284,11 +289,11 @@ ${nonascii} - - - + + + - + Unit tests passed successfully. diff --git a/core/src/net/sf/openrocket/utils/MotorCompare.java b/core/src/net/sf/openrocket/utils/MotorCompare.java index 5428f4bca..8c4390804 100644 --- a/core/src/net/sf/openrocket/utils/MotorCompare.java +++ b/core/src/net/sf/openrocket/utils/MotorCompare.java @@ -76,7 +76,7 @@ public class MotorCompare { System.out.print("(ERR:" + e.getMessage() + ")"); } if (m != null) { - motors.addAll((List) m); + motors.addAll((List) m); for (int i = 0; i < m.size(); i++) files.add(file); }