How to Build Executables

Preparation

Checkout modules

You must checkout following modules:

  • sqs-util
  • sqs-translator
  • sqs-editor
  • sqs-reader

cf. Subversion Repository

Option A: Checkout without commiter account(normal case)

If you don't have a commiter account of SQS repository, you can checkout modules as follows:

svn checkout http://diaspora.prof.cuc.ac.jp/svn/trunk/sqs-util
svn checkout http://diaspora.prof.cuc.ac.jp/svn/trunk/sqs-translator
svn checkout http://diaspora.prof.cuc.ac.jp/svn/trunk/sqs-editor
svn checkout http://diaspora.prof.cuc.ac.jp/svn/trunk/sqs-reader

Option B: Checkout with commiter account(special case)

If you have a commiter account of SQS repository, you can checkout modules as follows:
svn checkout svn+ssh://diaspora.prof.cuc.ac.jp/var/lib/svn/trunk/sqs-util
svn checkout svn+ssh://diaspora.prof.cuc.ac.jp/var/lib/svn/trunk/sqs-translator
svn checkout svn+ssh://diaspora.prof.cuc.ac.jp/var/lib/svn/trunk/sqs-editor
svn checkout svn+ssh://diaspora.prof.cuc.ac.jp/var/lib/svn/trunk/sqs-reader

Build Libraries and Install them into Your Local Repository

In the "sqs-util" and "sqs-translator" directory,
mvn install

Prepare code signing certification

Option A: Buy your code signing certification from somewhere.

Option B: Create your self-certification for test.

(公開鍵と非公開鍵のペア myself を作る)
keytool -keystore myKeystore -alias myself -genkey

(自己署名証明書を生成する)
 
 keytool -keystore myKeystore -alias myself -selfcert

Create JNLP File and Sign Jar Files

Configure your code signing certification.

Open pom.xml file in "sqs-editor" and "sqs-reader" project and edit it to match your configuration:

xpath: /project/build/plugins/plugin/configuration/sign/

<sign>
 <keystore>C:\YOUR\KEYSTORE.p12</keystore>
 <keypass />
 <storepass>YOUR_KEYSTORE_PASSWORD</storepass>
 <storetype>pkcs12</storetype>
 <alias>YOUR_KEY_ID_IN_THE_KEYSTORE</alias>
 <verify>false</verify>
</sign>
You must configure following items at least:
  • keystore
  • keypass
  • storepass
  • storetype
  • alias

Configure your signing authority properties.

You must edit your pom.xml :

Open pom.xml file in "sqs-editor" and "sqs-reader" project and edit it to match your configuration:

xpath: /project/properties

    <license>Apache License, Version 2.0</license>
      <main.class>net.sqs2.omr.swing.app.MarkReaderGUILauncher</main.class>
    <icon>omr.gif</icon>
    <maxHeapSize>812m</maxHeapSize>
    <group>SQS</group>
    <signingOrganizationName>Chiba University of Commerce</signingOrganizationName>
    <signingOrganizationURL>http://www.cuc.ac.jp/</signingOrganizationURL>
    <signedBy>Hiroya KUBO</signedBy>
      <date>2009/12/29</date>

You must configure following properties:

  • signingOrganizationName
  • signingOrganizationURL
  • signedBy
  • date

Configure your host account properties.

You must configure following properties:

  • LOGNAME
  • HOST
  • WEBAPP.dir

Create JNLP File and Sign Jar Files

In "sqs-editor" and "sqs-reader" directory,

mvn install

Then, JNLP file and signed jar files are automatically generated under "target/jnlp" directories and uploaded to your Web site.

Create IzPack Installer

mvn package

... under construction ...
... under construction ...
... under construction ...

Create tarballs

In "sqs-util", "sqs-translator", "sqs-editor" and "sqs-reader" directory,

mvn assembly:assembly -DdescriptorId=src

Then, under the "target" directory, You can see:

  • -src.tar.gz
  • -src.tar.bz2
  • -src.zip

Exec applications

In "sqs-editor" and "sqs-reader" directory,

mvn exec:java

Also available in: HTML TXT