Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

Commit 62704a3

Browse files
committed
updated to latest format of library template
1 parent 3f90fe9 commit 62704a3

File tree

10 files changed

+692
-424
lines changed

10 files changed

+692
-424
lines changed

resources/README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## How to install ##library.name##
2+
3+
### Install with the Contribution Manager
4+
5+
Add contributed Libraries by selecting the menu item _Sketch__Import Library...__Add Library..._ This will open the Contribution Manager, where you can browse for ##library.name##, or any other Library you want to install.
6+
7+
Not all available Libraries have been converted to show up in this menu. If a Library isn't there, it will need to be installed manually by following the instructions below.
8+
9+
### Manual Install
10+
11+
Contributed Libraries may be downloaded separately and manually placed within the `libraries` folder of your Processing sketchbook. To find (and change) the Processing sketchbook location on your computer, open the Preferences window from the Processing application (PDE) and look for the "Sketchbook location" item at the top.
12+
13+
By default the following locations are used for your sketchbook folder:
14+
* For Mac users, the sketchbook folder is located inside `~/Documents/Processing`
15+
* For Windows users, the sketchbook folder is located inside `My Documents/Processing`
16+
17+
Download ##library.name## from ##library.url##
18+
19+
Unzip and copy the contributed Library's folder into the `libraries` folder in the Processing sketchbook. You will need to create this `libraries` folder if it does not exist.
20+
21+
The folder structure for Library ##library.name## should be as follows:
22+
23+
```
24+
Processing
25+
libraries
26+
##library.name##
27+
examples
28+
library
29+
##library.name##.jar
30+
reference
31+
src
32+
```
33+
34+
Some folders like `examples` or `src` might be missing. After Library ##library.name## has been successfully installed, restart the Processing application.
35+
36+
### Troubleshooting
37+
38+
If you're having trouble, have a look at the [Processing Wiki](https://github.com/processing/processing/wiki/How-to-Install-a-Contributed-Library) for more information, or contact the author [##author.name##](##author.url##).

resources/build.properties

100644100755
Lines changed: 65 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,69 @@
1-
# Create libraries for the Processing open source programming language and
2-
# environment (http://www.processing.org)
1+
# Create a Library for the Processing open source programming language and
2+
# environment (http://processing.org/)
33
#
44
# Customize the build properties to make the ant-build-process work for your
55
# environment. How? Please read the comments below.
66
#
7-
# The default properties are set for OSX, for Windows-settings please refer to
8-
# comments made under (1) and (2).
7+
# The default properties are set for OS X. Please refer to comments for Windows
8+
# settings.
99

1010

11-
12-
# (1)
1311
# Where is your Processing sketchbook located?
1412
# If you are not sure, check the sketchbook location in your Processing
1513
# application preferences.
1614
# ${user.home} points the compiler to your home directory.
1715
# For windows the default path to your sketchbook would be
18-
# ${user.home}/My Documents/Processing (make adjustments below).
16+
# ${user.home}/My Documents/Processing (make adjustments below)
1917

18+
#sketchbook.location=${user.home}/My Documents/Processing
2019
sketchbook.location=${user.home}/code/processing/sketchbook
2120

2221

23-
24-
# (2)
25-
# Where are the jar files located that are required for compiling your library
22+
# Where are the jar files located that are required for compiling your Library
2623
# such as e.g. core.jar?
2724
# By default the local classpath location points to folder libs inside Eclipse's
2825
# workspace (by default found in your home directory).
29-
# For Windows the default path would be ${user.home}/workspace/libs (make
30-
# adjustments below).
26+
# For Windows, the default path would be
27+
# ${user.home}/Documents/workspace/libs (make adjustments below)
28+
# For OS X,the following path will direct you into Processing's application
29+
# package, in case you put Processing inside your Applications folder.
3130

3231
#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=${user.home}/code/processing/git/processing/build/macosx/work/Processing.app/Contents/Java/core/library
32+
classpath.local.location=/Applications/Processing.app/Contents/Java/core/library
4233

4334

4435
# 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
36+
# and project classpath. Use a comma as delimiter. These jar files must be
4637
# inside your classpath.local.location folder.
4738

4839
classpath.local.include=core.jar
4940

5041

51-
# Add processing's libraries folder to the classpath.
42+
# Add Processing's libraries folder to the classpath.
5243
# If you don't need to include the libraries folder to your classpath, comment
5344
# out the following line.
5445

5546
classpath.libraries.location=${sketchbook.location}/libraries
5647

5748

49+
# Set the java version that should be used to compile your Library.
5850

59-
# (3)
60-
# Set the java version that should be used to compile your library.
61-
62-
java.target.version=1.6
51+
java.target.version=1.8
6352

6453

6554
# Set the description of the Ant build.xml file.
6655

67-
ant.description=ProcessingLibs Ant build file.
56+
ant.description=Processing Library Ant build file.
6857

6958

70-
71-
# (4)
72-
# Project details.
73-
# Give your library a name. The name must not contain spaces or special characters.
59+
# Give your Library a name. The name must not contain spaces or special
60+
# characters.
7461

7562
project.name=planetarium
7663

77-
# The name as the user will see it. This can contain spaces and special characters.
64+
65+
# The name as the user will see it. This can contain spaces and special
66+
# characters.
7867

7968
project.prettyName=planetarium
8069

@@ -83,89 +72,101 @@ project.prettyName=planetarium
8372
# 'fast' will only compile the project into your sketchbook.
8473
# 'normal' will compile the distribution including the javadoc-reference and all
8574
# web-files (the compile process here takes longer).
75+
# All files compiled with project.compile=normal are stored in the distribution
76+
# folder.
8677

8778
project.compile=normal
8879

89-
# All files compiled with project.compile=normal are stored
90-
# in the distribution folder.
9180

92-
93-
94-
# (5)
95-
# The following items are properties that will be used to make changes to the
96-
# web document templates. Values of properties will be inserted into the
97-
# documents automatically.
98-
# If you need more control, you can edit web/index.html and
99-
# web/library.properties directly.
81+
# Set your name and URL, used for the web page and properties file.
10082

10183
author.name=Andres Colubri
10284
author.url=http://andrescolubri.net/
10385

10486

105-
# Set the web page for your library.
87+
# Set the web page for your Library.
10688
# This is NOT a direct link to where to download it.
10789

10890
library.url=https://github.com/codeanticode/planetarium
10991

11092

111-
# Set the category of your library. This must be one (or many) of the following:
93+
# Set the category (or categories) of your Library from the following list:
11294
# "3D" "Animation" "Compilations" "Data"
11395
# "Fabrication" "Geometry" "GUI" "Hardware"
11496
# "I/O" "Language" "Math" "Simulation"
115-
# "Sound" "Utilities" "Typography" "Video & Vision"
116-
# If a value other than those listed is used, your library will listed as
117-
# "Other".
97+
# "Sound" "Utilities" "Typography" "Video & Vision"
98+
#
99+
# If a value other than those listed is used, your Library will listed as
100+
# "Other". Many categories must be comma-separated.
118101

119102
library.category=3D
120103

121104

122-
# A short sentence (or fragment) to summarize the library's function. This will
123-
# be shown from inside the PDE when the library is being installed. Avoid
124-
# repeating the name of your library here. Also, avoid saying anything redundant
125-
# like mentioning that it's a library. This should start with a capitalized
105+
# A short sentence (or fragment) to summarize the Library's function. This will
106+
# be shown from inside the PDE when the Library is being installed. Avoid
107+
# repeating the name of your Library here. Also, avoid saying anything redundant
108+
# like mentioning that it's a Library. This should start with a capitalized
126109
# letter, and end with a period.
127110

128111
library.sentence=This library provides a renderer to project 3D scenes on a full dome.
129112

130113

131114
# Additional information suitable for the Processing website. The value of
132115
# 'sentence' always will be prepended, so you should start by writing the
133-
# second sentence here. If your library only works on certain operating systems,
116+
# second sentence here. If your Library only works on certain operating systems,
134117
# mention it here.
135118

136119
library.paragraph=It works by rendering the scene 5 times (one from each direction: top, right, etc) and then assembling the output of these renderings into a single environmental map that covers the entire dome.
137120

138121

139122
# Set the source code repository for your project.
140-
# Recommendations for storing your source code online are Google Code or GitHub.
123+
# We recommend Bitbucket (https://bitbucket.org) or GitHub (https://github.com).
141124

142125
source.host=GitHub
143126
source.url=https://github.com/
144127
source.repository=https://github.com/codeanticode/planetarium
145128

146129

147-
# The current version of your library.
130+
# The current version of your Library.
148131
# This number must be parsable as an int. It increments once with each release.
149-
# This is used to compare different versions of the same library, and check if
132+
# This is used to compare different versions of the same Library, and check if
150133
# an update is available.
151134

152135
library.version=5
153136

154137

155-
# The version as the user will see it.
138+
# The version as the user will see it.
156139

157140
library.prettyVersion=0.5
158141

159142

160-
library.copyright=(c) 2013-2018
161-
library.dependencies=opengl
162-
library.keywords=dome projection,planetarium,real-time
143+
# The min and max revision of Processing compatible with your Library.
144+
# Note that these fields use the revision and not the version of Processing,
145+
# parsable as an int. For example, the revision number for 2.2.1 is 227.
146+
# You can find the revision numbers in the change log: https://raw.githubusercontent.com/processing/processing/master/build/shared/revisions.txt
147+
# Only use maxRevision (or minRevision), when your Library is known to
148+
# break in a later (or earlier) release. Otherwise, use the default value 0.
149+
150+
compatible.minRevision=0246
151+
compatible.maxRevision=0
152+
153+
154+
# The platforms and Processing version that the Library has been tested
155+
# against. This information is only used in the generated webpage.
156+
157+
tested.platform=osx,windows
158+
tested.processingVersion=3.2.3
159+
160+
161+
# Additional information for the generated webpage.
163162

164-
tested.platform=osx,windows,linux
165-
tested.processingVersion=3.3.6
163+
library.copyright=(c) 2016
164+
library.dependencies=?
165+
library.keywords=?
166166

167167

168168
# Include javadoc references into your project's javadocs.
169169

170-
javadoc.java.href=http://java.sun.com/javase/6/docs/api/
171-
javadoc.processing.href=http://processing.googlecode.com/svn/trunk/processing/build/javadoc/core/
170+
#javadoc.java.href=http://docs.oracle.com/javase/7/docs/api/
171+
javadoc.java.href=http://docs.oracle.com/javase/8/docs/api/
172+
javadoc.processing.href=http://processing.github.io/processing-javadocs/core/

resources/build.xml

100644100755
Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<project name="Planetarium" default="clean" basedir="../">
1+
<project name="Processing Library" default="clean" basedir="../">
22

33

44
<!--
@@ -52,8 +52,8 @@
5252
<property name="project.reference" location="reference"/>
5353
<property name="project.dist" location="distribution"/>
5454
<property name="project.dist.version" location="distribution/${project.name}-${library.version}"/>
55-
<property name="install.source" location="resources/install_instructions.txt"/>
56-
<property name="install.destination" location="${project.dist.version}/INSTALL.txt"/>
55+
<property name="install.source" location="resources/README.md"/>
56+
<property name="install.destination" location="${project.dist.version}/README.md"/>
5757
<property name="libprops.source" location="resources/library.properties"/>
5858

5959
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
@@ -78,7 +78,7 @@
7878

7979
<target name="init">
8080
<echo>${line}
81-
Building the Processing library ${project.name} ${library.version}
81+
Building the Processing Library ${project.name} ${library.version}
8282
${line}
8383
src path ${project.src}
8484
bin path ${project.bin}
@@ -209,8 +209,8 @@ ${line}
209209

210210

211211
<target name="generate.javadoc" if="is.normal">
212-
<!-- create the java reference of the library -->
213-
<javadoc bottom="Processing library ${project.name} by ${author.name}. ${library.copyright}"
212+
<!-- create the java reference of the Library -->
213+
<javadoc bottom="Processing Library ${project.name} by ${author.name}. ${library.copyright}"
214214
classpath="${classpath.local.location}/core.jar;{project.bin}"
215215
destdir="${project.tmp}/${project.name}/reference"
216216
verbose="false"
@@ -271,8 +271,11 @@ ${line}
271271
<replaceregexp file="${file}" match="##library.version##" replace="${library.version}" flags="g" />
272272
<replaceregexp file="${file}" match="##library.prettyVersion##" replace="${library.prettyVersion}" flags="g" />
273273

274+
<replaceregexp file="${file}" match="##compatible.minRevision##" replace="${compatible.minRevision}" flags="g" />
275+
<replaceregexp file="${file}" match="##compatible.maxRevision##" replace="${compatible.maxRevision}" flags="g" />
276+
274277
<replaceregexp file="${file}" match="##library.url##" replace="${library.url}" flags="g" />
275-
<replaceregexp file="${file}" match="##library.category##" replace="${library.category}" flags="g" />
278+
<replaceregexp file="${file}" match="##library.categories##" replace="${library.categories}" flags="g" />
276279
<replaceregexp file="${file}" match="##library.sentence##" replace="${library.sentence}" flags="g" />
277280
<replaceregexp file="${file}" match="##library.paragraph##" replace="${library.paragraph}" flags="g" />
278281
<replaceregexp file="${file}" match="##library.keywords##" replace="${library.keywords}" flags="g" />
@@ -289,15 +292,15 @@ ${line}
289292

290293

291294
<target name="generate.install.library" if="is.normal">
292-
<copy file="${install.source}" tofile="${project.dist.version}/INSTALL.txt" />
295+
<copy file="${install.source}" tofile="${install.destination}" />
293296

294297
<antcall target="parse.file"><param name="file" value="${install.destination}"/></antcall>
295298
</target>
296299

297300

298301

299302
<target name="generate.zip" if="is.normal">
300-
<!-- zip the distribution of the library -->
303+
<!-- zip the distribution of the Library -->
301304

302305
<move todir="${project.dist.version}/tmp/${project.name}">
303306
<fileset dir="${project.dist.version}/${project.name}" />

resources/code/ExampleTaglet.class

100644100755
File mode changed.

resources/code/ExampleTaglet.java

100644100755
File mode changed.

resources/code/ant-contrib-1.0b3.jar

100644100755
File mode changed.

resources/code/doc.sh

100644100755
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# a shell script to create a java documentation
2-
# for a processing library.
2+
# for a processing Library.
33
#
44
# make changes to the variables below so they
5-
# fit the structure of your library
5+
# fit the structure of your Library
66

7-
# the package name of your library
7+
# the package name of your Library
88
package=template;
99

1010
# source folder location

0 commit comments

Comments
 (0)