2012-09-11 11:15:26 +00:00
|
|
|
|
|
|
|
Building X4O
|
|
|
|
|
2013-08-08 22:51:53 +00:00
|
|
|
Software requirements;
|
|
|
|
- JDK 1.5++
|
|
|
|
- Maven 3.0.1++ (3.0.3++ for jdk5)
|
2012-09-11 11:15:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
-- Create package --
|
|
|
|
|
|
|
|
cd project-root/;
|
|
|
|
mvn clean package;
|
|
|
|
|
|
|
|
|
|
|
|
-- Install local package --
|
|
|
|
|
|
|
|
cd project-root/;
|
|
|
|
mvn clean install;
|
|
|
|
|
|
|
|
|
|
|
|
-- Update schemas in src --
|
2013-04-14 19:59:26 +00:00
|
|
|
-- note; rm after auto schema creation
|
2012-09-11 11:15:26 +00:00
|
|
|
|
|
|
|
cd project-root/;
|
|
|
|
mvn clean install;
|
2013-04-14 19:59:26 +00:00
|
|
|
mvn -Pant-update-schema-cel package;
|
|
|
|
mvn -Pant-update-schema-eld package;
|
2012-09-11 11:15:26 +00:00
|
|
|
- Add the license as manual step in xsd files. (todo in ant task)
|
|
|
|
|
|
|
|
note: the do 'install' is because of circle plugins.
|
|
|
|
|
|
|
|
|
2013-08-08 22:51:53 +00:00
|
|
|
-- Run multi jvm test --
|
|
|
|
|
|
|
|
Run tests in all jvms;
|
|
|
|
src/main/build/jvm-test.sh
|
|
|
|
|
|
|
|
Run tests in single jvm;
|
|
|
|
src/main/build/jvm-test.sh /usr/lib/jvm/jdk1.5.0_22/
|
|
|
|
|
|
|
|
|
2012-09-11 11:15:26 +00:00
|
|
|
-- Make release build --
|
|
|
|
|
2013-08-09 17:34:52 +00:00
|
|
|
cd /tmp;
|
|
|
|
git clone ssh://<scm_username>@git.sv.gnu.org/srv/git/x4o.git;
|
|
|
|
cd x4o;
|
2012-09-11 11:15:26 +00:00
|
|
|
mvn clean package;
|
|
|
|
mvn -B -Dusername=<scm_username> clean install release:clean release:prepare release:perform;
|
2013-01-12 02:39:37 +00:00
|
|
|
src/main/build/gnu-up.sh <scm_username> <version>
|
2012-09-11 11:15:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
-- Make site --
|
|
|
|
|
|
|
|
cd project-root/;
|
2013-08-09 17:34:52 +00:00
|
|
|
mvn clean install; # (installs the snapshots plugins so we can run the current eld-doc task in site phase)
|
|
|
|
MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=128m" mvn -Pbuild-site-x4o-support clean package site site:stage;
|
|
|
|
cp -r target/staging/x4o-* target/site/;
|
|
|
|
cp -r target/site/ ~/public_html/site-x4o;
|
2012-09-11 11:15:26 +00:00
|
|
|
|
|
|
|
-- Check for code style --
|
|
|
|
|
|
|
|
cd project-root/;
|
|
|
|
mvn checkstyle:checkstyle
|
|
|
|
|
|
|
|
|
|
|
|
-- Check for licenses --
|
|
|
|
|
|
|
|
cd project-root/;
|
|
|
|
mvn -Pcheck-license license:check
|
|
|
|
|
2013-04-28 23:43:48 +00:00
|
|
|
To update all files from check output;
|
|
|
|
mvn -Pcheck-license license:format
|
2012-09-11 11:15:26 +00:00
|
|
|
|
|
|
|
-- Check for versions-updates --
|
|
|
|
|
|
|
|
cd project-root/;
|
|
|
|
mvn versions:display-plugin-updates;
|
|
|
|
mvn versions:display-dependency-updates;
|
|
|
|
|
|
|
|
|
2013-04-11 07:26:38 +00:00
|
|
|
-- Run x4o-plugin-maven from cmd --
|
|
|
|
|
|
|
|
cd project-root/;
|
|
|
|
mvn clean install;
|
|
|
|
mvn org.x4o.plugin:x4o-plugin-maven:help
|
2013-04-14 19:59:26 +00:00
|
|
|
mvn org.x4o.plugin:x4o-plugin-maven:write-language-doc -DoutputDirectory=/tmp/doc1
|
|
|
|
mvn org.x4o.plugin:x4o-plugin-maven:write-language-doc -DoutputDirectory=/tmp/doc2 -Dlanguages={eld=ALL,swixml=1.0-2.0} -Dverbose=true
|