Home / project-builder-0.0.0.1
Name Modified Size InfoDownloads / Week
Parent folder
readme.txt 2011-05-11 1.8 kB
project-builder-0.0.0.1.zip 2011-05-05 1.9 MB
Totals: 2 Items   1.9 MB 0
I moved the whole project to github



https://github.com/pete911/project-builder


project builder is run from command line.
Set path for project-builder.exe or project-builder.sh (linux)

then just run:
project-builder -t test -n my_test

where -t points to a template, located in templates folder.
-n is name of the project and default variable which will
replace all $name placeholders.

project builder uses properties file (template.properties) where
it looks for placeholder values.
you can specify ignored files in "ignore" file. File names in ignore 
list are written using ant style.
Theses files will be just copied and their content and names are not
going to be searched for placeholders.

template.properties and ingore at the root are global (visible to 
all templates). These files can be specified at the root of a 
template as well - specific for that template.

project-builder arguments:
-t = (required) tmeplate name
-n = (required) project name
-v = verbose - prints information about the running process
-o = output directory, if not specified, output directory is 
        current directory

templates:
templates are written in apache velocity.
Variables (placholders) start with "$", if variable ends with 
dot (.), it is calling a function or attribute. To avoid this, 
variable name can be surrounded by curly braces - ${variable}.txt

Escape character is back slash - "\".

"#" has special meaning in velocity, so literal hash needs to be
escaped - \#

the easiest way to print "$" is to replace it. So in your template 
file you need to write this on the first line (at least before replace):
#set($D = '$')

which sets '$' value on $D variable. Then:
${D}

prints '$' in your project (evaluated template).

for more information read velocity documentation
Source: readme.txt, updated 2011-05-11