Skip to content

Commit 6d45fbf

Browse files
committed
Moved the library and tool templates to the new contrib-templates directory.
0 parents  commit 6d45fbf

21 files changed

Lines changed: 1795 additions & 0 deletions

.classpath

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" output="bin" path="src"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
5+
<classpathentry combineaccessrules="false" kind="src" path="/processing-core"/>
6+
<classpathentry kind="output" path="resources/code"/>
7+
</classpath>

.project

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>processing-library-template</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.jdt.core.javanature</nature>
16+
</natures>
17+
</projectDescription>

data/README

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
the data folder:
2+
If your library is using files like images, sound files,
3+
any data file, etc., put them into the data folder.
4+
When coding your library you can use processing's internal loading
5+
functions like loadImage(), loadStrings(), etc. to load files
6+
located inside the data folder into your library.
7+

examples/Hello/Hello.pde

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import template.library.*;
2+
3+
HelloLibrary hello;
4+
5+
void setup() {
6+
size(400,400);
7+
smooth();
8+
9+
hello = new HelloLibrary(this);
10+
11+
PFont font = createFont("",40);
12+
textFont(font);
13+
}
14+
15+
void draw() {
16+
background(0);
17+
fill(255);
18+
text(hello.sayHello(), 40, 200);
19+
}

examples/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
add examples for your library here.

lib/README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
The lib folder:
2+
In case your library requires 3rd party libraries, which need to be
3+
added to the distribution, put them into the lib folder.
4+
These 3rd party libraries will be added to your distribution and are
5+
located next to your library's jar file.
6+
This does not apply to .jar files that are considered core processing libraries.

license.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
A code template to build libraries for the Processing programming environment.
2+
3+
Part of the Processing project - http://processing.org
4+
5+
Copyright (c) 2011-12 Elie Zananiri
6+
Copyright (c) 2008-11 Andreas Schlegel
7+
8+
This program is free software; you can redistribute it and/or
9+
modify it under the terms of the GNU General Public License
10+
as published by the Free Software Foundation; either version 2
11+
of the License, or (at your option) any later version.
12+
13+
This program is distributed in the hope that it will be useful,
14+
but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
GNU General Public License for more details.
17+
18+
You should have received a copy of the GNU General Public License
19+
along with this program; if not, write to the Free Software
20+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Up-to-date instructions can be found at http://code.google.com/p/processing/wiki/LibraryTemplate

resources/ChangeLog.txt

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
2012-10-05 Elie Zananiri
2+
* version 0.4.8
3+
* updated default classpath on OS X
4+
5+
2012-02-16 Elie Zananiri
6+
* version 0.4.7
7+
* fixed up formatting to match new tool template
8+
9+
2011-12-23 Elie Zananiri
10+
* version 0.4.6
11+
* changed the default Java compile version to 1.6
12+
* added a "library.paragraph" to build.properties, used in the library.properties file
13+
* added "library.sentence" and "library.paragraph" fields to index.html
14+
15+
2011-11-17 Elie Zananiri
16+
* version 0.4.5
17+
* updated the library categories
18+
19+
2011-11-10 Elie Zananiri
20+
* version 0.4.4
21+
* updated the build script to use the correct delimiter based on the OS when parsing source files
22+
23+
2011-11-09 Elie Zananiri
24+
* version 0.4.3
25+
* removed the "-latest" suffix from the generated file names as it could lead to confusion when unzipping the library
26+
* added the version number to the download link text to avoid confusion with the pretty version string
27+
28+
2011-11-07 Elie Zananiri
29+
* version 0.4.2
30+
* fixed some warnings in the Ant build script
31+
32+
2011-11-03 Elie Zananiri
33+
* version 0.4.1
34+
* added the library.properties file, used for the library engine in Processing 2.0
35+
* added new fields to build.properties to fill in the library.properties file
36+
* the script now generates two copies of the zip and properties file: one with the version number appended and another with "latest" appended (for the Processing 2.0 library engine)
37+
38+
2010-05-07 Andreas Schlegel
39+
* version 0.3.2
40+
* build.xml: removing delete tag for bin folder, did cause issues with class referencing inside eclipse
41+
* build.xml: for users using 0.3.1, comment out <delete dir="${project.bin}"/> inside target clean
42+
43+
2010-05-01 Andreas Schlegel
44+
* version 0.3.1
45+
* the option to create a tool with the library template has been excluded. to create tools for processing see http://code.google.com/p/processing-tool-template
46+
* build.properties and build.xml files have been adjusted accordingly
47+
* modified: src, examples
48+
49+
2010-04-25 Andreas Schlegel
50+
* version 0.2.1
51+
* build.xml: zip method adjusted, tested on osx 10.x and windows xp
52+
* screencasts available for both library and tool, see wiki.
53+
54+
2010-04-12 Andreas Schlegel
55+
* version 0.2.0
56+
* the template now support both, processing libraries and tools
57+
* added an install file for a library/tool distribution included in the .zip file.
58+
* data: adding data folder, see README file for details
59+
* lib: adding lib folder, see README file for details
60+
* resources: excluding project related properties from build.xml, now located inside build.properties
61+
* distribution: distributions are now archived with a version number
62+
* bin: folder removed
63+
* build.xml: ant build file has been mostly rewritten, now supports tool and library
64+
* build.properties: adding properties file for build.xml. please read comments inside build.properties.
65+
* changeLog: adding ChangeLog file
66+
67+

resources/build.properties

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
# Create libraries for the Processing open source programming language and
2+
# environment (http://www.processing.org)
3+
#
4+
# Customize the build properties to make the ant-build-process work for your
5+
# environment. How? Please read the comments below.
6+
#
7+
# The default properties are set for OSX, for Windows-settings please refer to
8+
# comments made under (1) and (2).
9+
10+
11+
12+
# (1)
13+
# Where is your Processing sketchbook located?
14+
# If you are not sure, check the sketchbook location in your Processing
15+
# application preferences.
16+
# ${user.home} points the compiler to your home directory.
17+
# For windows the default path to your sketchbook would be
18+
# ${user.home}/My Documents/Processing (make adjustments below).
19+
20+
sketchbook.location=${user.home}/Documents/Processing
21+
22+
23+
24+
# (2)
25+
# Where are the jar files located that are required for compiling your library
26+
# such as e.g. core.jar?
27+
# By default the local classpath location points to folder libs inside Eclipse's
28+
# workspace (by default found in your home directory).
29+
# For Windows the default path would be ${user.home}/workspace/libs (make
30+
# adjustments below).
31+
32+
#classpath.local.location=${user.home}/Documents/workspace/libs
33+
34+
35+
# For OSX users.
36+
# The following path will direct you into Processing's application source code
37+
# folder in case you put Processing inside your Applications folder.
38+
# Uncommenting the line below will overwrite the classpath.local.location from
39+
# above.
40+
41+
classpath.local.location=/Applications/Processing.app/Contents/Resources/Java/core/library/
42+
43+
44+
# Add all jar files that are required for compiling your project to the local
45+
# and project classpath, use a comma as delimiter. These jar files must be
46+
# inside your classpath.local.location folder.
47+
48+
classpath.local.include=core.jar
49+
50+
51+
# Add processing's libraries folder to the classpath.
52+
# If you don't need to include the libraries folder to your classpath, comment
53+
# out the following line.
54+
55+
classpath.libraries.location=${sketchbook.location}/libraries
56+
57+
58+
59+
# (3)
60+
# Set the java version that should be used to compile your library.
61+
62+
java.target.version=1.6
63+
64+
65+
# Set the description of the Ant build.xml file.
66+
67+
ant.description=ProcessingLibs Ant build file.
68+
69+
70+
71+
# (4)
72+
# Project details.
73+
# Give your library a name.
74+
75+
project.name=YourLibrary
76+
77+
78+
# Use 'normal' or 'fast' as value for project.compile.
79+
# 'fast' will only compile the project into your sketchbook.
80+
# 'normal' will compile the distribution including the javadoc-reference and all
81+
# web-files (the compile process here takes longer).
82+
83+
project.compile=normal
84+
85+
# All files compiled with project.compile=normal are stored
86+
# in the distribution folder.
87+
88+
89+
90+
# (5)
91+
# The following items are properties that will be used to make changes to the
92+
# web document templates. Values of properties will be inserted into the
93+
# documents automatically.
94+
# If you need more control, you can edit web/index.html and
95+
# web/library.properties directly.
96+
97+
author.name=Your Name
98+
author.url=http://yoururl.com
99+
100+
101+
# Set the web page for your library.
102+
# This is NOT a direct link to where to download it.
103+
104+
library.url=http://yourlibraryname.com
105+
106+
107+
# Set the category of your library. This must be one (or many) of the following:
108+
# "3D" "Animation" "Compilations" "Data"
109+
# "Fabrication" "Geometry" "GUI" "Hardware"
110+
# "I/O" "Language" "Math" "Simulation"
111+
# "Sound" "Utilities" "Typography" "Video & Vision"
112+
# If a value other than those listed is used, your library will listed as
113+
# "Other".
114+
115+
library.category=Other
116+
117+
118+
# A short sentence (or fragment) to summarize the library's function. This will
119+
# be shown from inside the PDE when the library is being installed. Avoid
120+
# repeating the name of your library here. Also, avoid saying anything redundant
121+
# like mentioning that it's a library. This should start with a capitalized
122+
# letter, and end with a period.
123+
124+
library.sentence=A collection of utilities for solving this and that problem.
125+
126+
127+
# Additional information suitable for the Processing website. The value of
128+
# 'sentence' always will be prepended, so you should start by writing the
129+
# second sentence here. If your library only works on certain operating systems,
130+
# mention it here.
131+
132+
library.paragraph=
133+
134+
135+
# Set the source code repository for your project.
136+
# Recommendations for storing your source code online are Google Code or GitHub.
137+
138+
source.host=Google Code
139+
source.url=http://code.google.com/p/yourProject
140+
source.repository=http://code.google.com/p/yourProject/source/browse/
141+
142+
143+
# The current version of your library.
144+
# This number must be parsable as an int. It increments once with each release.
145+
# This is used to compare different versions of the same library, and check if
146+
# an update is available.
147+
148+
library.version=1
149+
150+
151+
# The version as the user will see it.
152+
# If blank, the library.version attribute will be used here.
153+
154+
library.prettyVersion=0.1.1
155+
156+
157+
library.copyright=(C) 2012
158+
library.dependencies=?
159+
library.keywords=?
160+
161+
tested.platform=osx,windows
162+
tested.processingVersion=1.5
163+
164+
165+
# Include javadoc references into your project's javadocs.
166+
167+
javadoc.java.href=http://java.sun.com/javase/6/docs/api/
168+
javadoc.processing.href=http://processing.googlecode.com/svn/trunk/processing/build/javadoc/core/

0 commit comments

Comments
 (0)