# tools/build now centralizes common scripts and properties for builds

This commit is contained in:
cbonar 2012-01-27 19:42:49 +01:00
parent d59f8b7f73
commit 0a705e10ac
21 changed files with 165 additions and 241 deletions

View file

@ -20,3 +20,11 @@ codecs/sha1/local.properties
codecs/sha1/target
ciform/build
ciform/lib
crypto/base64/build
crypto/base64/target
crypto/hex/target
crypto/hex/build
crypto/rsa/target
crypto/rsa/build
crypto/sha1/target
crypto/sha1/build

View file

@ -4,4 +4,9 @@ ciform -> Ciform project directory tree
codecs -> Dependent Javascript libraries for Ciform
Each subdirectory is a Maven-style project with a build script that generates Ivy artifacts for use with Ciform.
Run "ant install" to generate and import artifacts into the local Ivy repository.
tools -> Tools required to build the projects : extract required binaries before building the projects
tools -> Tools required to build the projects : extract required binaries before building the projects
To build the projects, you should only need to :
- extract the required binaries into the 'tools' directory
- rename 'common-sample.properties' in 'tools/build' to 'common.properties' and edit it to reflect your local configuration
- run ant in each project

View file

@ -1,28 +1,24 @@
########################################
#
# This file is a convenient way to define some parameters,
# rather than from inside the build script.
# This file defines properties specific only to this project.
#
# Depending on the ant targets that will be invoked,
# some properties will be required, some others won't.
#
# Some important properties are marked "required" so you can spot
# the ones to define locally if you want to build this project.
# Some important properties are marked as "required" so you can spot them.
# They are required to have valid values for the projects to build.
#
# You should not need to override those properties.
# If you really need to, you can create a new file called "local.properties"
# in the same directory and put inside any property you want to fit your local configuration.
# If you really need to, you may create a new file called "local.properties" in the same directory
# and put inside any property you want to fit your local configuration.
#
# Do NOT commit the "local.properties" file to the version control system
# (CVS, SVN, ...) : it should stay as a local configuration only.
# Do not commit or remove this file from the v.c.s. either ;-o
# The "local.properties" file is meant to stay local,
# therefore you won't find it on the version control system (SVN, Hg, ...).
#
# If you don't wish to create such a file, you can pass the required properties
# If you don't wish to create such a file, you may pass the required properties
# to ant as command line arguments using the -D option.
#
########################################
basedir=.
tools.dir=../tools
# Where the source files are : here Maven-style
src.dir=${basedir}/src/main/javascript
@ -39,34 +35,5 @@ lib.dir=${target.dir}/lib
# Where to copy the documentation
doc.dir=${target.dir}/doc
########################################
#
# External programs : you should copy this section to "local.properties"
# and change it for your configuration.
#
########################################
# (convenience) -> set to common 'tools' directory
#tools.dir=../../tools
# JsUnit files
#jsunit.dir=/opt/jsunit
jsunit.coreJs=${jsunit.dir}/app/jsUnitCore.js
#jsunit.build=${jsunit.dir}/build.xml
jsunit.testRunner=${jsunit.dir}/testRunner.html
#jsunit.browsers=/usr/bin/firefox,/usr/bin/konqueror
# Ant settings
# (required) -> set to Ivy library containing Ant task
#ant.ivytask.path=${tools.dir}/ivy-2.2.0.jar
# (required) -> set to Javascript Ant template project
#ant.jsproject.path=${tools.dir}/ant-js.xml
# (required) -> define this property in your "local.properties" file
# Full path to the jar of the YUI compressor (http://developer.yahoo.com/yui/compressor)
#yuicompressor.jar=${tools.dir}/yuicompressor-2.4.7.jar
# (required) -> define this property in your "local.properties" file
# Installation directory of JSDoc-toolkit (http://code.google.com/p/jsdoc-toolki)
#jsdoc.dir=${tools.dir}/jsdoc-toolkit
# set to common properties file
common.properties=${tools.dir}/build/common.properties

View file

@ -3,11 +3,14 @@
-->
<project name="Ciform" default="javascript.package" xmlns:ivy="antlib:org.apache.ivy.ant">
<!-- custom, local only, properties for this project -->
<!-- local properties for this project -->
<property file="local.properties"/>
<!-- default properties for this project -->
<property file="build.properties"/>
<!-- common properties for all projects -->
<property file="${common.properties}"/>
<!-- template for javascript projects -->
<import file="${ant.jsproject.path}" />

View file

@ -1,7 +1,7 @@
<ivy-module version="2.0">
<info organisation="ciform" module="" revision="1.0.0" status="integration" publication="20120127120313">
<license name="LGPL" url="http://plugnauth.sf.net/ciform/license" />
<ivyauthor name="Nicolas BONARDELLE" url="http://nicobo.net/contact?subject=ciform+ivy" />
<info organisation="ciform" module="" revision="1.0.0" status="integration" publication="20120127183109">
<license name="LGPL" url="http://plugnauth.sf.net/ciform/license"/>
<ivyauthor name="Nicolas BONARDELLE" url="http://nicobo.net/contact?subject=ciform+ivy"/>
<description homepage="http://plugnauth.sourceforge.net/ciform">
Ciform encrypts web forms before they are submitted, so data is not sent in clear text over the Internet.
</description>
@ -11,15 +11,15 @@
<conf name="standalone"/>
</configurations>
<publications>
<artifact name="ciform" type="js" conf="core" />
<artifact name="ciform-min" type="js" conf="core" />
<artifact name="minilib" type="js" conf="core" />
<artifact name="minilib-min" type="js" conf="core" />
<artifact name="libciform" type="js" conf="standalone" />
<artifact name="libciform-min" type="js" conf="standalone" />
<artifact name="ciform" type="js" conf="core"/>
<artifact name="ciform-min" type="js" conf="core"/>
<artifact name="minilib" type="js" conf="core"/>
<artifact name="minilib-min" type="js" conf="core"/>
<artifact name="libciform" type="js" conf="standalone"/>
<artifact name="libciform-min" type="js" conf="standalone"/>
</publications>
<dependencies>
<dependency org="crypto" name="rsa" rev="latest.integration" conf="core->minified;standalone->minified" />
<dependency org="crypto" name="sha1" rev="latest.integration" conf="core->minified;standalone->minified" />
<dependency org="crypto" name="rsa" rev="1.0.0" revConstraint="latest.integration" conf="core->minified;standalone->minified"/>
<dependency org="crypto" name="sha1" rev="1.0.0" revConstraint="latest.integration" conf="core->minified;standalone->minified"/>
</dependencies>
</ivy-module>

View file

@ -1,28 +1,24 @@
########################################
#
# This file is a convenient way to define some parameters,
# rather than from inside the build script.
# This file defines properties specific only to this project.
#
# Depending on the ant targets that will be invoked,
# some properties will be required, some others won't.
#
# Some important properties are marked "required" so you can spot
# the ones to define locally if you want to build this project.
# Some important properties are marked as "required" so you can spot them.
# They are required to have valid values for the projects to build.
#
# You should not need to override those properties.
# If you really need to, you can create a new file called "local.properties"
# in the same directory and put inside any property you want to fit your local configuration.
# If you really need to, you may create a new file called "local.properties" in the same directory
# and put inside any property you want to fit your local configuration.
#
# Do NOT commit the "local.properties" file to the version control system
# (CVS, SVN, ...) : it should stay as a local configuration only.
# Do not commit or remove this file from the v.c.s. either ;-o
# The "local.properties" file is meant to stay local,
# therefore you won't find it on the version control system (SVN, Hg, ...).
#
# If you don't wish to create such a file, you can pass the required properties
# If you don't wish to create such a file, you may pass the required properties
# to ant as command line arguments using the -D option.
#
########################################
basedir=.
tools.dir=../../tools
# Where the source files are : here Maven-style
src.dir=${basedir}/src/main/javascript
@ -39,34 +35,5 @@ lib.dir=${target.dir}/lib
# Where to copy the documentation
doc.dir=${target.dir}/doc
########################################
#
# External programs : you should copy this section to "local.properties"
# and change it for your configuration.
#
########################################
# (convenience) -> set to common 'tools' directory
#tools.dir=../../tools
# JsUnit files
#jsunit.dir=/opt/jsunit
jsunit.coreJs=${jsunit.dir}/app/jsUnitCore.js
#jsunit.build=${jsunit.dir}/build.xml
jsunit.testRunner=${jsunit.dir}/testRunner.html
#jsunit.browsers=/usr/bin/firefox,/usr/bin/konqueror
# Ant settings
# (required) -> set to Ivy library containing Ant task
#ant.ivytask.path=${tools.dir}/ivy-2.2.0.jar
# (required) -> set to Javascript Ant template project
#ant.jsproject.path=${tools.dir}/ant-js.xml
# (required) -> define this property in your "local.properties" file
# Full path to the jar of the YUI compressor (http://developer.yahoo.com/yui/compressor)
#yuicompressor.jar=${tools.dir}/yuicompressor-2.4.7.jar
# (required) -> define this property in your "local.properties" file
# Installation directory of JSDoc-toolkit (http://code.google.com/p/jsdoc-toolki)
#jsdoc.dir=${tools.dir}/jsdoc-toolkit
# set to common properties file
common.properties=${tools.dir}/build/common.properties

View file

@ -5,11 +5,14 @@
-->
<project name="Crypto.Base64" default="javascript.package" xmlns:ivy="antlib:org.apache.ivy.ant">
<!-- custom, local only, properties for this project -->
<!-- local properties for this project -->
<property file="local.properties"/>
<!-- default properties for this project -->
<property file="build.properties"/>
<!-- common properties for all projects -->
<property file="${common.properties}"/>
<!-- template for javascript projects -->
<import file="${ant.jsproject.path}" />

View file

@ -1,5 +1,5 @@
<ivy-module version="2.0">
<info organisation="crypto" module="base64" revision="1.0.0" status="integration" publication="20120127121502">
<info organisation="crypto" module="base64" revision="1.0.0" status="integration" publication="20120127183633">
<license name="Copyright 2005 Herbert Hanewinkel" url="www.haneWIN.de"/>
<ivyauthor name="Nicolas BONARDELLE" url="http://nicobo.net/contact?subject=crypto+base64+ivy"/>
<description homepage="http://code.google.com/p/ciform">

View file

@ -1,28 +1,24 @@
########################################
#
# This file is a convenient way to define some parameters,
# rather than from inside the build script.
# This file defines properties specific only to this project.
#
# Depending on the ant targets that will be invoked,
# some properties will be required, some others won't.
#
# Some important properties are marked "required" so you can spot
# the ones to define locally if you want to build this project.
# Some important properties are marked as "required" so you can spot them.
# They are required to have valid values for the projects to build.
#
# You should not need to override those properties.
# If you really need to, you can create a new file called "local.properties"
# in the same directory and put inside any property you want to fit your local configuration.
# If you really need to, you may create a new file called "local.properties" in the same directory
# and put inside any property you want to fit your local configuration.
#
# Do NOT commit the "local.properties" file to the version control system
# (CVS, SVN, ...) : it should stay as a local configuration only.
# Do not commit or remove this file from the v.c.s. either ;-o
# The "local.properties" file is meant to stay local,
# therefore you won't find it on the version control system (SVN, Hg, ...).
#
# If you don't wish to create such a file, you can pass the required properties
# If you don't wish to create such a file, you may pass the required properties
# to ant as command line arguments using the -D option.
#
########################################
basedir=.
tools.dir=../../tools
# Where the source files are : here Maven-style
src.dir=${basedir}/src/main/javascript
@ -39,34 +35,5 @@ lib.dir=${target.dir}/lib
# Where to copy the documentation
doc.dir=${target.dir}/doc
########################################
#
# External programs : you should copy this section to "local.properties"
# and change it for your configuration.
#
########################################
# (convenience) -> set to common 'tools' directory
#tools.dir=../../tools
# JsUnit files
#jsunit.dir=/opt/jsunit
jsunit.coreJs=${jsunit.dir}/app/jsUnitCore.js
#jsunit.build=${jsunit.dir}/build.xml
jsunit.testRunner=${jsunit.dir}/testRunner.html
#jsunit.browsers=/usr/bin/firefox,/usr/bin/konqueror
# Ant settings
# (required) -> set to Ivy library containing Ant task
#ant.ivytask.path=${tools.dir}/ivy-2.2.0.jar
# (required) -> set to Javascript Ant template project
#ant.jsproject.path=${tools.dir}/ant-js.xml
# (required) -> define this property in your "local.properties" file
# Full path to the jar of the YUI compressor (http://developer.yahoo.com/yui/compressor)
#yuicompressor.jar=${tools.dir}/yuicompressor-2.4.7.jar
# (required) -> define this property in your "local.properties" file
# Installation directory of JSDoc-toolkit (http://code.google.com/p/jsdoc-toolki)
#jsdoc.dir=${tools.dir}/jsdoc-toolkit
# set to common properties file
common.properties=${tools.dir}/build/common.properties

View file

@ -5,11 +5,14 @@
-->
<project name="Crypto.Hex" default="javascript.package" xmlns:ivy="antlib:org.apache.ivy.ant">
<!-- custom, local only, properties for this project -->
<!-- local properties for this project -->
<property file="local.properties"/>
<!-- default properties for this project -->
<property file="build.properties"/>
<!-- common properties for all projects -->
<property file="${common.properties}"/>
<!-- template for javascript projects -->
<import file="${ant.jsproject.path}" />

View file

@ -1,5 +1,5 @@
<ivy-module version="2.0">
<info organisation="crypto" module="hex" revision="1.0.0" status="integration" publication="20120127121502">
<info organisation="crypto" module="hex" revision="1.0.0" status="integration" publication="20120127183653">
<ivyauthor name="Nicolas BONARDELLE" url="http://nicobo.net/contact?subject=crypto+hex+ivy"/>
<description homepage="http://code.google.com/p/ciform">
This library provides conversion functions from/to hexadecimal format.

View file

@ -1,28 +1,24 @@
########################################
#
# This file is a convenient way to define some parameters,
# rather than from inside the build script.
# This file defines properties specific only to this project.
#
# Depending on the ant targets that will be invoked,
# some properties will be required, some others won't.
#
# Some important properties are marked "required" so you can spot
# the ones to define locally if you want to build this project.
# Some important properties are marked as "required" so you can spot them.
# They are required to have valid values for the projects to build.
#
# You should not need to override those properties.
# If you really need to, you can create a new file called "local.properties"
# in the same directory and put inside any property you want to fit your local configuration.
# If you really need to, you may create a new file called "local.properties" in the same directory
# and put inside any property you want to fit your local configuration.
#
# Do NOT commit the "local.properties" file to the version control system
# (CVS, SVN, ...) : it should stay as a local configuration only.
# Do not commit or remove this file from the v.c.s. either ;-o
# The "local.properties" file is meant to stay local,
# therefore you won't find it on the version control system (SVN, Hg, ...).
#
# If you don't wish to create such a file, you can pass the required properties
# If you don't wish to create such a file, you may pass the required properties
# to ant as command line arguments using the -D option.
#
########################################
basedir=.
tools.dir=../../tools
# Where the source files are : here Maven-style
src.dir=${basedir}/src/main/javascript
@ -39,34 +35,5 @@ lib.dir=${target.dir}/lib
# Where to copy the documentation
doc.dir=${target.dir}/doc
########################################
#
# External programs : you should copy this section to "local.properties"
# and change it for your configuration.
#
########################################
# (convenience) -> set to common 'tools' directory
#tools.dir=../../tools
# JsUnit files
#jsunit.dir=/opt/jsunit
jsunit.coreJs=${jsunit.dir}/app/jsUnitCore.js
#jsunit.build=${jsunit.dir}/build.xml
jsunit.testRunner=${jsunit.dir}/testRunner.html
#jsunit.browsers=/usr/bin/firefox,/usr/bin/konqueror
# Ant settings
# (required) -> set to Ivy library containing Ant task
#ant.ivytask.path=${tools.dir}/ivy-2.2.0.jar
# (required) -> set to Javascript Ant template project
#ant.jsproject.path=${tools.dir}/ant-js.xml
# (required) -> define this property in your "local.properties" file
# Full path to the jar of the YUI compressor (http://developer.yahoo.com/yui/compressor)
#yuicompressor.jar=${tools.dir}/yuicompressor-2.4.7.jar
# (required) -> define this property in your "local.properties" file
# Installation directory of JSDoc-toolkit (http://code.google.com/p/jsdoc-toolki)
#jsdoc.dir=${tools.dir}/jsdoc-toolkit
# set to common properties file
common.properties=${tools.dir}/build/common.properties

View file

@ -5,11 +5,14 @@
-->
<project name="Crypto.RSA" default="javascript.package" xmlns:ivy="antlib:org.apache.ivy.ant">
<!-- custom, local only, properties for this project -->
<!-- local properties for this project -->
<property file="local.properties"/>
<!-- default properties for this project -->
<property file="build.properties"/>
<!-- common properties for all projects -->
<property file="${common.properties}"/>
<!-- template for javascript projects -->
<import file="${ant.jsproject.path}" />

View file

@ -1,5 +1,5 @@
<ivy-module version="2.0">
<info organisation="crypto" module="rsa" revision="1.0.0" status="integration" publication="20120127120313">
<info organisation="crypto" module="rsa" revision="1.0.0" status="integration" publication="20120127183302">
<license name="Copyright 2000 by John M Hanna" url="http://sourceforge.net/projects/shop-js"/>
<license name="GNU General Public License (GPL)" url="http://www.gnu.org/copyleft/gpl.html"/>
<ivyauthor name="Nicolas BONARDELLE" url="http://nicobo.net/contact?subject=crypto+rsa+ivy"/>

View file

@ -1,28 +1,24 @@
########################################
#
# This file is a convenient way to define some parameters,
# rather than from inside the build script.
# This file defines properties specific only to this project.
#
# Depending on the ant targets that will be invoked,
# some properties will be required, some others won't.
#
# Some important properties are marked "required" so you can spot
# the ones to define locally if you want to build this project.
# Some important properties are marked as "required" so you can spot them.
# They are required to have valid values for the projects to build.
#
# You should not need to override those properties.
# If you really need to, you can create a new file called "local.properties"
# in the same directory and put inside any property you want to fit your local configuration.
# If you really need to, you may create a new file called "local.properties" in the same directory
# and put inside any property you want to fit your local configuration.
#
# Do NOT commit the "local.properties" file to the version control system
# (CVS, SVN, ...) : it should stay as a local configuration only.
# Do not commit or remove this file from the v.c.s. either ;-o
# The "local.properties" file is meant to stay local,
# therefore you won't find it on the version control system (SVN, Hg, ...).
#
# If you don't wish to create such a file, you can pass the required properties
# If you don't wish to create such a file, you may pass the required properties
# to ant as command line arguments using the -D option.
#
########################################
basedir=.
tools.dir=../../tools
# Where the source files are : here Maven-style
src.dir=${basedir}/src/main/javascript
@ -39,34 +35,5 @@ lib.dir=${target.dir}/lib
# Where to copy the documentation
doc.dir=${target.dir}/doc
########################################
#
# External programs : you should copy this section to "local.properties"
# and change it for your configuration.
#
########################################
# (convenience) -> set to common 'tools' directory
#tools.dir=../../tools
# JsUnit files
#jsunit.dir=/opt/jsunit
jsunit.coreJs=${jsunit.dir}/app/jsUnitCore.js
#jsunit.build=${jsunit.dir}/build.xml
jsunit.testRunner=${jsunit.dir}/testRunner.html
#jsunit.browsers=/usr/bin/firefox,/usr/bin/konqueror
# Ant settings
# (required) -> set to Ivy library containing Ant task
#ant.ivytask.path=${tools.dir}/ivy-2.2.0.jar
# (required) -> set to Javascript Ant template project
#ant.jsproject.path=${tools.dir}/ant-js.xml
# (required) -> define this property in your "local.properties" file
# Full path to the jar of the YUI compressor (http://developer.yahoo.com/yui/compressor)
#yuicompressor.jar=${tools.dir}/yuicompressor-2.4.7.jar
# (required) -> define this property in your "local.properties" file
# Installation directory of JSDoc-toolkit (http://code.google.com/p/jsdoc-toolki)
#jsdoc.dir=${tools.dir}/jsdoc-toolkit
# set to common properties file
common.properties=${tools.dir}/build/common.properties

View file

@ -5,11 +5,14 @@
-->
<project name="Crypto.Base64" default="javascript.package" xmlns:ivy="antlib:org.apache.ivy.ant">
<!-- custom, local only, properties for this project -->
<!-- local properties for this project -->
<property file="local.properties"/>
<!-- default properties for this project -->
<property file="build.properties"/>
<!-- common properties for all projects -->
<property file="${common.properties}"/>
<!-- template for javascript projects -->
<import file="${ant.jsproject.path}" />

View file

@ -1,5 +1,5 @@
<ivy-module version="2.0">
<info organisation="crypto" module="sha1" revision="1.0.0" status="integration" publication="20120127135932">
<info organisation="crypto" module="sha1" revision="1.0.0" status="integration" publication="20120127183603">
<license name="Copyright Paul Johnston 2000 - 2002" url="http://pajhome.org.uk/crypt/md5"/>
<license name="BSD License"/>
<ivyauthor name="Nicolas BONARDELLE" url="http://nicobo.net/contact?subject=crypto+base64+ivy"/>

View file

@ -5,6 +5,18 @@
-->
<project name="javascript" default="package" xmlns:ivy="antlib:org.apache.ivy.ant">
<!--
Loads default properties : simple convenience (not specific to Javascript)
-->
<!-- example of use : local properties for the main project only -->
<property file="local.properties"/>
<!-- example of use : default properties for the main project only -->
<property file="build.properties"/>
<!-- example of use : default generic properties -->
<property file="default.properties"/>
<!--
Loads dependent tasks
-->

View file

@ -0,0 +1,49 @@
########################################
#
# This file defines some static parameters, common to all projects.
#
# Some important properties are marked as "required" so you can spot them.
# They are required to have valid values for the projects to build.
#
# To override some properties, you should not edit this file :
# create a new file called "local.properties" in the same directory and put
# inside any property you want to fit your local configuration.
#
# The "local.properties" file is meant to stay local,
# you'll not find it on the version control system (SVN, Hg, ...).
#
# If you don't wish to create such a file, you may pass the required properties
# to ant as command line arguments using the -D option.
#
########################################
# (required as a convenience) -> set to common tools directory
# Set it to an absolute path here
# or set it as a relative path in the main projects' properties.
# You can use absolute paths in the properties of this file to get rid of this one.
#tools.dir=/opt
# JsUnit settings
#jsunit.dir=/opt/jsunit
jsunit.coreJs=${jsunit.dir}/app/jsUnitCore.js
#jsunit.build=${jsunit.dir}/build.xml
jsunit.testRunner=${jsunit.dir}/testRunner.html
#jsunit.browsers=/usr/bin/firefox,/usr/bin/konqueror
# Ant settings
# (required) -> set to Ivy library containing Ant task
ant.ivytask.path=${tools.dir}/ivy-2.2.0.jar
# (required) -> set to Javascript Ant template project
ant.jsproject.path=${tools.dir}/build/ant-js.xml
# Other tools
# Full path to the jar of the YUI compressor (http://developer.yahoo.com/yui/compressor)
# (required) -> define this property in your "local.properties" file
yuicompressor.jar=${tools.dir}/yuicompressor-2.4.7.jar
# Installation directory of JSDoc-toolkit (http://code.google.com/p/jsdoc-toolkit)
# (required) -> define this property in your "local.properties" file
jsdoc.dir=${tools.dir}/jsdoc-toolkit