Skip to content

Commit a0a51fc

Browse files
committed
Fast-forwarded 'scheduler' branch
Merge branch 'ide-1.5.x' into scheduler
2 parents 354b21a + 3c6f2ce commit a0a51fc

File tree

194 files changed

+30366
-16515
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

194 files changed

+30366
-16515
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ hardware/arduino/bootloaders/caterina_LUFA/Caterina.lss
1313
hardware/arduino/bootloaders/caterina_LUFA/Caterina.elf
1414
hardware/arduino/bootloaders/caterina_LUFA/Caterina.eep
1515
hardware/arduino/bootloaders/caterina_LUFA/.dep/
16-
.gitignore
1716
build/windows/work/
1817
build/linux/work/
18+
build/linux/dist/*.tar.gz
19+
build/linux/*.tgz
20+
test-bin
21+
*.iml

app/.classpath_vista

100755100644
File mode changed.

app/build.xml

Lines changed: 60 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?xml version="1.0"?>
22
<project name="Arduino PDE" default="build">
3-
3+
44
<target name="clean" description="Clean the build directories">
55
<delete dir="bin" />
6+
<delete dir="test-bin" />
67
<delete file="pde.jar" />
78
</target>
89

@@ -24,11 +25,11 @@
2425
<property name="java_home" value="${env.JAVA_HOME}" />
2526

2627
<condition property="linux"><os family="unix" /></condition>
27-
<fail if="linux" unless="java_home"
28+
<fail if="linux" unless="java_home"
2829
message="The JAVA_HOME variable must be set to the location of a full JDK. For instance, on Ubuntu Linux, this might be /usr/lib/jvm/java-6-sun." />
2930

3031
<condition property="windows"><os family="windows" /></condition>
31-
<fail if="windows" unless="java_home"
32+
<fail if="windows" unless="java_home"
3233
message="The JAVA_HOME variable must be set to the location of a full JDK. For instance, on Windows, this might be c:\jdk1.6.0_18." />
3334

3435
<!--
@@ -37,20 +38,69 @@
3738
<echo message="override ${env.JAVA_HOME}/lib/tools.jar" />
3839
<fail />
3940
-->
40-
<javac target="1.5"
41-
srcdir="src"
42-
destdir="bin"
43-
excludes="**/tools/format/**"
41+
<javac source="1.5" target="1.5"
42+
srcdir="src"
43+
destdir="bin"
4444
encoding="UTF-8"
4545
includeAntRuntime="false"
4646
debug="true"
47-
classpath="../core/core.jar; ${env.JAVA_HOME}/lib/tools.jar; lib/ant.jar; lib/ant-launcher.jar; lib/apple.jar; lib/ecj.jar; lib/jna.jar; lib/RXTXcomm.jar" />
47+
classpath="../core/core.jar; ${env.JAVA_HOME}/lib/tools.jar; lib/apple.jar; lib/ecj.jar; lib/jna.jar; lib/RXTXcomm.jar" />
4848
<copy todir="bin" overwrite="true" verbose="true">
4949
<fileset dir="src" includes="**/*.properties" />
5050
</copy>
5151
</target>
52-
53-
<target name="build" depends="compile" description="Build PDE">
52+
53+
<target name="test" depends="compile" description="Runs the test">
54+
<mkdir dir="test-bin"/>
55+
56+
<javac source="1.5" target="1.5"
57+
srcdir="test"
58+
destdir="test-bin"
59+
encoding="UTF-8"
60+
includeAntRuntime="false"
61+
debug="true">
62+
<classpath>
63+
<pathelement location="bin"/>
64+
<pathelement location="../core/core.jar"/>
65+
<pathelement location="${env.JAVA_HOME}/lib/tools.jar"/>
66+
<pathelement location="lib/apple.jar"/>
67+
<pathelement location="lib/ecj.jar"/>
68+
<pathelement location="lib/jna.jar"/>
69+
<pathelement location="lib/RXTXcomm.jar"/>
70+
<pathelement location="test-lib/junit-4.11.jar"/>
71+
</classpath>
72+
</javac>
73+
74+
<copy todir="test-bin" overwrite="true" verbose="true">
75+
<fileset dir="test" includes="**/*.zip" />
76+
<fileset dir="test" includes="**/*.txt" />
77+
</copy>
78+
79+
<junit printsummary="yes" haltonfailure="yes">
80+
<classpath>
81+
<pathelement location="bin"/>
82+
<pathelement location="test-bin"/>
83+
<pathelement location="../core/core.jar"/>
84+
<pathelement location="${env.JAVA_HOME}/lib/tools.jar"/>
85+
<pathelement location="lib/apple.jar"/>
86+
<pathelement location="lib/ecj.jar"/>
87+
<pathelement location="lib/jna.jar"/>
88+
<pathelement location="lib/RXTXcomm.jar"/>
89+
<pathelement location="test-lib/junit-4.11.jar"/>
90+
</classpath>
91+
92+
<formatter type="xml"/>
93+
94+
<batchtest fork="yes" todir="test-bin">
95+
<fileset dir="test">
96+
<include name="**/*Test.java"/>
97+
</fileset>
98+
</batchtest>
99+
</junit>
100+
101+
</target>
102+
103+
<target name="build" depends="test" description="Build PDE">
54104
<jar basedir="bin" destfile="pde.jar" />
55105
</target>
56106
</project>

app/src/processing/app/tools/format/src/AutoFormat.java renamed to app/format/src/AutoFormat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* <A HREF="http://jalopy.sourceforge.net/">Jalopy</A>. This is to replace
3535
* the buggy code formatter found in previous releases.
3636
*/
37-
public class AutoFormat {
37+
public class AutoFormat {
3838
Editor editor;
3939

4040

app/lib/apple.jar

100755100644
File mode changed.

0 commit comments

Comments
 (0)