mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 22:17:41 +00:00
Merge pull request #1311 from askoning/testsOnLinux
Several minor fixes to make 'ant test' work more reliably on other systems
This commit is contained in:
commit
438095f587
5 files changed
+7
-6
No files matched your search
@@ -28,7 +28,8 @@ the common tasks and can be called on to run the main aspects of all the sub-scr
|
||||
<property name="build.compiler" value="javac1.6" />
|
||||
<property name="ivy.retrieve.pattern" value="lib/[conf]/[organisation]-[artifact].[ext]" />
|
||||
<available file="lib/ivyplusplus.jar" property="ivyplusplus.available" />
|
||||
|
||||
<available file="lib/openJDK6Environment/rt-openjdk6.jar" property="rt-openjdk6.available" />
|
||||
|
||||
<path id="build.path">
|
||||
<fileset dir="lib/build">
|
||||
<include name="*.jar" />
|
||||
@@ -101,8 +102,8 @@ the common tasks and can be called on to run the main aspects of all the sub-scr
|
||||
<ivy:resolve file="buildScripts/ivy.xml" refresh="true" conf="contrib, ecj7, ecj8" />
|
||||
<ivy:retrieve />
|
||||
</target>
|
||||
|
||||
<target name="ensureBuildDeps" depends="config-ivy">
|
||||
|
||||
<target name="ensureBuildDeps" depends="config-ivy" unless="rt-openjdk6.available">
|
||||
<mkdir dir="lib/openJDK6Environment" />
|
||||
<get src="https://projectlombok.org/ivyrepo/langtools/rt-openjdk6.jar" dest="lib/openJDK6Environment/rt-openjdk6.jar" verbose="true" usetimestamp="true" />
|
||||
<ivy:resolve file="buildScripts/ivy.xml" refresh="true" conf="build, javac7" />
|
||||
|
||||
@@ -137,7 +137,7 @@ public class RunTestsViaEcj extends AbstractRunTests {
|
||||
i.remove();
|
||||
}
|
||||
}
|
||||
classpath.add("bin");
|
||||
if (new File("bin").exists()) classpath.add("bin");
|
||||
classpath.add("dist/lombok.jar");
|
||||
classpath.add("lib/test/commons-logging-commons-logging.jar");
|
||||
classpath.add("lib/test/org.slf4j-slf4j-api.jar");
|
||||
|
||||
File renamed without changes.
+1
-1
@@ -43,4 +43,4 @@ final @lombok.EqualsAndHashCode(exclude = {"y"}) class EqualsAndHashCodeExclude
|
||||
result = ((result * PRIME) + this.x);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -8,4 +8,4 @@ final class EqualsAndHashCodeOf {
|
||||
final class EqualsAndHashCodeExclude {
|
||||
int x;
|
||||
int y;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user