Skip to content

Commit 5631733

Browse files
author
Yong Bakos
committed
Adjust project template path to accommodate ST3.
1 parent e851247 commit 5631733

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Processing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# NOTE: Change this next line to match the correct library path for your system.
44
DEFAULT_PROCESSING_LIBRARY_PATH = "/Applications/Processing.app/Contents/Java/core/library"
5-
PROJECT_TEMPLATE_PATH = os.path.abspath("Commands/templates/new_java_ant_project")
5+
PROJECT_TEMPLATE_PATH = os.path.dirname(os.path.abspath(__file__)) + "/Commands/templates/new_java_ant_project"
66
SOURCE_DIRECTORY_NAME = "src"
77
BUILDFILE_TEMPLATE_NAME = "build.xml.template"
88
GENERATED_BUILDFILE_NAME = "build.xml"

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@ To get `.pde` files to run with **⌘R** and **⇧⌘R** (like Processing) inste
6969
"context": [{ "key": "selector", "operator": "equal", "operand": "source.pde" }]
7070
}
7171
```
72-
### _New Java Ant Project_ Command
7372

74-
Want a "pure Java" Processing project but don't like [Eclipse](http://eclipse.org)? Try creating a project with the _New Java Ant Project_ command. (See [issue 61](https://github.com/b-g/processing-sublime/issues/61).)
73+
### Want a "Pure Java" Project without Eclipse?
74+
75+
Complex projects often lead people into using Processing with [Eclipse](http://eclipse.org). If you want to stick with Sublime Text, but want a "pure Java" Processing project _and_ the convenience of a fast "build and run" workflow, try creating a project with the _New Java Ant Project_ command (see [issue 61](https://github.com/b-g/processing-sublime/issues/61)) and run your sketch with the _Ant_ build system.
7576

7677
#### Prerequisites
7778
Be sure that [ant](http://ant.apache.org/) is installed and on your environment's `PATH`. You know this is right when you can open a terminal, run `ant`, and see a `Build failed` message. This means that [ant](http://ant.apache.org/) is runnable, and failing is ok because there is no "Buildfile."
@@ -86,7 +87,7 @@ Make sure that the variable `DEFAULT_PROCESSING_LIBRARY_PATH` within the file `P
8687
4. Use the _Tools > Build System > Ant_ menu item to ensure that _Ant_ is the active build system.
8788
5. Use **⌘B** to build and run your sketch. Out of the box, you should see a full screen app that displays the default 200x200px gray sketch, which is the Processing default.
8889

89-
You can now continue to add classes to your sketch, and run it with **⌘B**. Just be sure that _Ant_ is the active build system.
90+
You can now implement `setup` and `draw`, add additional classes to your sketch, and run it with **⌘B**. Just be sure that _Ant_ is the active build system.
9091

9192
## Hints
9293
Console error messages are clickable: e.g. double click `test.pde:10:0:10:0: The function rEEct(int, int, int, int) does not exist` to jump to the related line and file.

0 commit comments

Comments
 (0)