Add top-level .gitignore.

Initial contents ignore Emacs autosave files.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Fix issue #11, missing Serial.begin() in SFR example
Fix permissions on various files.

Remove executable bits from all .pde, .gif, .jpg, .java, .txt, .html,
and .css files using:

$ find . -executable -name '*.pde' -exec chmod -x {} \;
$ find . -executable -name '*.png' -exec chmod -x {} \;
$ find . -executable -name '*.gif' -exec chmod -x {} \;
$ find . -executable -name '*.jpg' -exec chmod -x {} \;
$ find . -executable -name '*.java' -exec chmod -x {} \;
$ find . -executable -name '*.txt' -exec chmod -x {} \;
$ find . -executable -name '*.html' -exec chmod -x {} \;
$ find . -executable -name '*.css' -exec chmod -x {} \;
$ find . -executable -name '*.xml' -exec chmod -x {} \;
$ find . -executable -name '*.bmp' -exec chmod -x {} \;
$ find . -executable -name '*.ico' -exec chmod -x {} \;
$ find . -executable -name '*.o' -exec chmod -x {} \;
$ find . -executable -name '*.cpp' -exec chmod -x {} \;
$ find . -executable -name 'Makefile' -exec chmod -x {} \;
$ find . -executable -name '*.g' -exec chmod -x {} \;
$ find . -executable -name '*.h' -exec chmod -x {} \;
$ find . -executable -name '*.notused' -exec chmod -x {} \;
$ find . -executable -name '*.properties' -exec chmod -x {} \;
$ find . -executable -name '*.gz' -exec chmod -x {} \;

These files are not executables.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Remove Autoscroll build directory.

This looks like an example build directory that didn't get removed
with the rest of the binaries.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Remove scrap diff file.

Looks like a diff that got put in a commit by accident.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Remove Commander.java.notused.

If it's not used, it shouldn't be in the repository.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Add /out/ to .gitignore.

This will be the parent directory for all build artifacts.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Remove build/shared/reference.zip.

This is an external dependency which should be fetched over the
network.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Move examples/ into framework/.

Properly speaking, the examples are part of the Wiring Framework. If
we ever split the framework into its own repository, that's where
they'll live, so move them there now.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Add processing.jar to IDE/app/lib.

This is Wiring, not Processing, so the Processing core is an external
dependency, like any other.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Remove IDE/core.

This contains the Processing core. Since that's an external
dependency, we shouldn't be versioning it.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Move contents of IDE/app/lib into build/shared/lib/.

IDE/app/lib contains JARs (and shared libraries) used by the IDE, so
they don't belong in the IDE directory. The best place for them given
the current layout is build/shared/lib/ (which, confusingly, didn't
actually contain any shared libraries until this move).

Moving these out of the IDE directory is a first step towards removing
them from the Git repository altogether.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Move IDE/app/src/processing to IDE/.

The IDE directory now only contains the IDE sources (plus some
autogenerated ANTLR sources, to be dealt with later), so the app/src/
subdirectories are unnecessary, and we should get rid of them.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Remove EventThread.java, Runner.java.

processing.app.debug.EventThread and processing.app.debug.Runner
use com.sun.* APIs that are no longer present in JDK 1.7. These
files appear to be relics from the Processing days; EventThread is
everywhere unused, and there is a single (unused) Runner field in
processing.app.Editor.

Delete EventThread.java and Runner.java, and remove the single instance
from Editor.java.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Remove build/windows/launcher/launch4j.

launch4j is an external dependency; versioning its binaries
is a bad idea. Remove it.

For now, this means that installing launch4j yourself is a requirement
for building Wiring. We can always automate this during dependency
resolution later on.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Remove build/windows/export/.

This directory appears to contain a custom launcher program. It
should not be necessary (appears to be a Processing relic), and the
code itself is too horrible to describe. We'll let launch4j start
processing.app.Base.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Add Apache Ant build system.

Add a top-level build.xml file, which allows building Wiring using
Ant. This removes the Cygwin dependency on Windows, and automates
dependency resolution and retrieval. Dependency handling is a hack,
but we need to get moving on the real work of integrating the LeafLabs
and Wiring codebases.

All build output files are generated under out/:

  - The distribution staging area is out/dist.
  - Compiled IDE sources live under out/ide.
  - Dependencies are retrieved and extracted under out/deps.

The top-level build.xml doesn't handle any platform-specific build
tasks. Instead, it imports build/<platform>/plat-build.xml to handle
that.

build/windows/launcher/config.xml:

  - Remove incorrect <jar>lib</jar>
  - Remove unused <cmdLine>
  - Remove <priority>normal</priority>; this is already the default
  - Fix the downloadURL to reflect Oracle's acquisition of Sun
  - Change the lib/core.jar entry under classPath to
    lib/processing.jar, to reflect changes made elsewhere.

build/howto.txt: Update for new Ant build.

build/macosx/dist/Wiring.app/Contents/Info.plist: Fix up classpath
changes made elsewhere.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Base.java: remove initRequirements().

Unused, and incorrect for JDK 1.7.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Base.java: Remove commented-out code.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Compiler.java: Remove commented-out code.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>