x4o/build.txt

99 lines
2.5 KiB
Plaintext
Raw Normal View History

2012-09-11 11:15:26 +00:00
Building X4O
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 --
-- note; only needed after change in eld or cel langauge.
-- note2; maybe rm/mv after auto schema creation
2012-09-11 11:15:26 +00:00
cd project-root/;
mvn clean install;
mvn -Px4o-update-schema-cel compile;
mvn -Px4o-update-schema-eld compile;
2012-09-11 11:15:26 +00:00
note: the do 'install' is (once) because of circle plugins.
2012-09-11 11:15:26 +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 --
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;
src/main/build/gnu-up.sh <scm_username> <version>
2012-09-11 11:15:26 +00:00
-- Make site --
cd project-root/;
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 -Px4o-build-site-doc 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 -Px4o-check-license license:check
2012-09-11 11:15:26 +00:00
2013-04-28 23:43:48 +00:00
To update all files from check output;
mvn -Px4o-check-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;
-- Run x4o task from cmd --
cd project-root/;
mvn clean compile;
cd x4o-driver;
mvn exec:java -Dexec.mainClass="org.x4o.xml.lang.task.X4OLanguageTaskCommandLine" -Dexec.args="-h"
mvn exec:java -Dexec.mainClass="org.x4o.xml.lang.task.X4OLanguageTaskCommandLine" -Dexec.args="-ll"
mvn exec:java -Dexec.mainClass="org.x4o.xml.lang.task.X4OLanguageTaskCommandLine" -Dexec.args="-llt"
mvn exec:java -Dexec.mainClass="org.x4o.xml.lang.task.X4OLanguageTaskCommandLine" -Dexec.args="-l eld -t eld-xsd -p http://language.x4o.org/xml/properties/eld-xsd/output/path=/tmp/test-task-cmd"
-- Run x4o-tool-maven-plugin from cmd --
cd project-root/;
mvn clean install;
mvn org.x4o.tool:x4o-tool-maven-plugin:help
mvn org.x4o.tool:x4o-tool-maven-plugin:x4o-language-task -Dverbose=true -DtaskId=eld-xsd -DlanguageName=cel -DtaskPropertyValues=http://x4o.org/properties/eld-xsd/output/path=/tmp/test-maven-cmd