Skip to content

Commit

Permalink
bumped version to 0.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
hrj committed Jul 5, 2015
1 parent 4121fcb commit b0c99a7
Show file tree
Hide file tree
Showing 11 changed files with 15,714 additions and 1 deletion.
76 changes: 76 additions & 0 deletions buildPackage.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<project name="gngr" default="dist" basedir=".">
<description>
simple example build file
</description>

<!-- set global properties for this build -->
<property name="dist" location="dist"/>
<property name="build" location="build"/>
<property name="src" location="src"/>

<target name="init">
<!-- Create the time stamp -->
<tstamp/>

<mkdir dir="${build}/libs"/>
<mkdir dir="${dist}"/>
</target>

<target name="coreJar" depends="init" description="one jar to rule the core" >
<jar jarfile="${build}/core.jar" duplicate="preserve">
<fileset dir="${src}/Common/bin" />
<fileset dir="${src}/Platform_Core/bin"/>
<fileset dir="${src}/Platform_Public_API/bin"/>
</jar>
</target>

<target name="Primary_Extension" depends="init" description="jar the Primary_Extension" >
<jar jarfile="${dist}/libs/Primary_Extension.jar">
<fileset dir="${src}/Primary_Extension/bin" />
<fileset dir="${src}/HTML_Renderer/bin" />
</jar>
</target>

<target name="signJars" depends="coreJar,Primary_Extension">
<!-- Create the distribution directory -->
<mkdir dir="${dist}/libs"/>

<signjar
alias="myself"
keystore="build_resources/testKeystore"
storepass="gggnnn"
lazy="true"
destDir="${dist}/libs"
>
<path>
<fileset dir="${build}/libs/" includes="*.jar" />
<fileset dir="${src}/XAMJ_Build/ext/" includes="*.jar" />
<fileset dir="${src}/Platform_Core/lib/" includes="*.jar" />
</path>
</signjar>

<signjar
alias="myself"
keystore="build_resources/testKeystore"
storepass="gggnnn"
lazy="true"
destDir="${dist}/"
>
<path>
<fileset dir="${build}/" includes="core.jar" />
</path>
</signjar>
</target>

<target name="dist" depends="signJars" description="generate the distribution" >
<copy file="build_resources/gngr.jnlp" todir="${dist}/" />
<copy file="build_resources/gngr_libs.jnlp" todir="${dist}/" />
<exec executable="./build_resources/makeUno.sh" vmlauncher="false" resolveexecutable="true">
<arg line="build_resources/ ${build} ${dist}" />
</exec>
</target>

<target name="clean" description="clean up" >
<delete dir="${dist}"/>
</target>
</project>
1 change: 1 addition & 0 deletions build_resources/flat-extensions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gngr-extension.properties
39 changes: 39 additions & 0 deletions build_resources/gngr.jnlp
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<jnlp
spec="6.0+"
>
<information>
<title>gngr</title>
<vendor>gngr.info</vendor>

<offline-allowed/>

<!--
<shortcut online="false" install="false">
<desktop/>
<menu submenu="ggg"/>
</shortcut>
-->
</information>

<security>
<all-permissions/>
</security>

<resources>
<j2se version="1.8+" />

<!-- we have to use jnlp namespace for the property, as per: http://stackoverflow.com/q/19400725/161257 -->
<property name="jnlp.ext.files" value="libs/Primary_Extension.jar" />

<jar href="core.jar" main="true"/>

<extension name="gngr_libs" href="gngr_libs.jnlp" />

</resources>

<application-desc
name="gngr"
main-class="org.lobobrowser.main.EntryPoint"
/>
</jnlp>
30 changes: 30 additions & 0 deletions build_resources/gngr_libs.jnlp
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<jnlp
spec="6.0+"
codebase="libs"
>
<information>
<title>libs component</title>
<vendor>gngr.info</vendor>
<offline-allowed/>
</information>
<resources>
<jar href="h2-1.4.180.jar" />
<jar href="javatuples-1.2.jar" />
<jar href="jooq-3.5.0-SNAPSHOT.jar" />

<jar href="antlr-runtime-3.5.2.jar" />
<jar href="cssparser-0.9.14.jar" />
<jar href="jlfgr-1_0.jar" />
<jar href="js.jar" />
<jar href="jstyleparser-1.17.jar" />
<jar href="sac.jar" />
<jar href="slf4j-api-1.7.7.jar" />
<jar href="h2-1.4.180.jar" />
<jar href="javatuples-1.2.jar" />
<jar href="jooq-3.5.0-SNAPSHOT.jar" />

</resources>
<component-desc/>
</jnlp>

45 changes: 45 additions & 0 deletions build_resources/makeUno.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/bin/zsh

if [[ $# -lt 3 ]] then
echo Too few arguments;
exit;
fi

_absolute_path () {
echo -n `readlink -f $1`
}

BUILD_RESOURCES_DIR=$(_absolute_path $1)
BUILD_DIR=$(_absolute_path $2)
DIST_DIR=$(_absolute_path $3)

echo Build Res dir : $BUILD_RESOURCES_DIR
echo Build dir : $BUILD_DIR
echo Dist dir : $DIST_DIR

set -e

ASSEMBLY_DIR=$BUILD_DIR/unoAssemblyDir

_expandJar () {
jarFile=$1
basename=`basename -s .jar $jarFile`
subdir="uno\$\$\$$basename"
mkdir $ASSEMBLY_DIR/$subdir
( cd $ASSEMBLY_DIR/$subdir; jar xf $jarFile )
echo $basename >> $ASSEMBLY_DIR/unoConfig
}

rm -rf $ASSEMBLY_DIR
mkdir $ASSEMBLY_DIR
(cd $ASSEMBLY_DIR; jar xf $BUILD_RESOURCES_DIR/uno_0.0.2.jar)
cp $BUILD_RESOURCES_DIR/flat-extensions $ASSEMBLY_DIR/
echo org.lobobrowser.main.EntryPoint >> $ASSEMBLY_DIR/unoConfig
_expandJar $BUILD_DIR/core.jar
for jarFile in $DIST_DIR/libs/*.jar
do
_expandJar $jarFile
done
(cd $DIST_DIR; jar cfe gngr.jar uno.Uno -C $ASSEMBLY_DIR ./)
rm -r $ASSEMBLY_DIR
echo Jar created at $DIST_DIR/gngr.jar
Loading

0 comments on commit b0c99a7

Please sign in to comment.