Skip to content

Commit

Permalink
Init Commit v9.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pquiring committed Jun 9, 2015
1 parent 56ee5a6 commit c59c901
Show file tree
Hide file tree
Showing 1,961 changed files with 244,606 additions and 0 deletions.
160 changes: 160 additions & 0 deletions base.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
<!-- Note : Requires ANT 1.9.1+ -->
<project xmlns:if="ant:if" xmlns:unless="ant:unless">
<target name="javadoc" description="generate java documentation">
<javadoc sourcepath="src" sourcefiles="src/*.java" destdir="javadoc">
<classpath>
<fileset dir="${home}/jars" includes="*.jar"/>
</classpath>
</javadoc>
</target>

<target name="depnatives">
<copy todir=".">
<fileset dir="${home}/native" includes="*.dll"/>
<fileset dir="${home}/native" includes="*.so"/>
</copy>
</target>

<!-- Windows targets -->

<macrodef name="exemacro">
<attribute name="appx"/>
<attribute name="bits"/>
<attribute name="ico"/>
<sequential>
<copy file="${home}/stubs/win@{bits}.exe" tofile="@{appx}.exe" overwrite="true"/>
<java classpath="${home}/jars/javaforce.jar" classname="javaforce.utils.WinPE" fork="true">
<arg value="@{appx}.exe"/>
<arg value="@{ico}.ico"/>
<arg value="@{appx}.cfg"/>
</java>
</sequential>
</macrodef>

<!--these should be set before importing this file to override default behavior-->
<property name="ico" value="${app}"/>
<property name="msi" value="${app}"/>
<property name="candle_extra" value=""/>
<property name="light_extra" value=""/>
<property name="app2" value=""/>
<property name="app3" value=""/>
<property name="app4" value=""/>
<property name="app5" value=""/>

<macrodef name="msimacro">
<attribute name="xml"/>
<attribute name="bits"/>
<attribute name="ico" default="${ico}"/>
<attribute name="msi" default="${msi}"/>
<attribute name="app" default="${app}"/>
<attribute name="app2" default="${app2}"/>
<attribute name="app3" default="${app3}"/>
<attribute name="app4" default="${app4}"/>
<attribute name="app5" default="${app5}"/>
<sequential>
<exemacro appx="@{app}" bits="@{bits}" ico="@{ico}"/>
<exemacro appx="@{app2}" bits="@{bits}" ico="@{ico}" unless:blank="@{app2}"/>
<exemacro appx="@{app3}" bits="@{bits}" ico="@{ico}" unless:blank="@{app3}"/>
<exemacro appx="@{app4}" bits="@{bits}" ico="@{ico}" unless:blank="@{app4}"/>
<exemacro appx="@{app5}" bits="@{bits}" ico="@{ico}" unless:blank="@{app5}"/>
<exec command="candle ${candle_extra} -o wix.obj @{xml}.xml"/>
<exec command="light ${light_extra} -ext WixUIExtension -cultures:en-us -o @{msi}-${version}-x@{bits}.msi wix.obj"/>
<delete file="wix.obj"/>
<delete file="@{msi}-${version}-x@{bits}.wixpdb"/>
<move unless:set="nomove" file="@{msi}-${version}-x@{bits}.msi" todir="${home}/release"/>
</sequential>
</macrodef>

<target name="msi32" depends="jar,depjars" description="create msi installer file 32bit">
<msimacro xml="wix32" bits="32"/>
</target>

<target name="msi64" depends="jar,depjars" description="create msi installer file 64bit">
<msimacro xml="wix64" bits="64"/>
</target>

<!-- Linux targets -->

<macrodef name="elf">
<attribute name="app" default="${app}"/>
<attribute name="cfgdir" default=""/>
<sequential>
<copy file="${home}/stubs/linux64.bin" tofile="/usr/bin/@{app}"/>
<java classpath="${home}/jars/javaforce.jar" classname="javaforce.utils.jresmgr">
<arg value="/usr/bin/@{app}"/>
<arg value="@{cfgdir}@{app}.cfg"/>
</java>
<chmod file="/usr/bin/@{app}" perm="+x"/>
</sequential>
</macrodef>

<target name="deb" depends="jar" description="create deb package">
<exec executable="jfdeb">
<arg value="${app}-${version}_amd64.deb"/>
</exec>
<copy file="${app}-${version}_amd64.deb" todir="${home}/repo/ubuntu" overwrite="true"/>
</target>

<target name="rpm" depends="jar" description="create rpm package">
<exec executable="jfrpm">
<arg value="${app}.spec"/>
</exec>
<copy file="${app}-${version}-1.x86_64.rpm" todir="${home}/repo/fedora" overwrite="true"/>
</target>

<!-- MacOSX targets -->

<macrodef name="mac">
<attribute name="app" default="${app}"/>
<sequential>
<copy file="${home}/stubs/mac64.bin" tofile="@{app}"/>
<chmod file="@{app}" perm="+x"/>
</sequential>
</macrodef>

<target name="dmg" depends="jar" description="create dmg package (using hciutil) (mac only)">
<mac/>
<exec executable="jfdmg">
<arg value="${app}"/>
<arg value="${app}-${version}.dmg"/>
</exec>
<delete file="${app}"/>
<copy file="${app}-${version}.dmg" todir="${home}/release" overwrite="true"/>
</target>

<target name="genisodmg" depends="jar" description="create dmg package (using genisoimage)">
<mac/>
<exec executable="jfdmg">
<arg value="${app}"/>
<arg value="${app}-${version}.dmg"/>
<arg value="-geniso"/>
</exec>
<delete file="${app}"/>
<copy file="${app}-${version}.dmg" todir="${home}/release" overwrite="true"/>
</target>

<!-- Applet stuff : highly deprecated : Chrome 42+ by default no longer supports Applets -->

<available property="keyexists" file="keystore.key"/>

<target name="genkey" unless="keyexists" description="generate keys">
<!-- create key -->
<genkey alias="${app}" storepass="password" keystore="keystore.key" keyalg="RSA" dname="CN=${app}.sourceforge.net, OU=${app}, O=JavaForce, C=CA"/>
<!-- create csr -->
<exec command="keytool -certreq -alias ${app} -keystore keystore.key -file ${app}.csr -storepass password"/>
<copy file="${app}.csr" todir="${home}/keys"/>
</target>

<target name="importcert">
<copy file="${home}/keys/javaforce.crt" todir="."/>
<exec command="keytool -import -alias root -file javaforce.crt -keystore keystore.key -storepass password -noprompt"/>
<copy file="${home}/keys/${app}.crt" todir="."/>
<exec command="keytool -import -alias ${app} -file ${app}.crt -keystore keystore.key -storepass password"/>
</target>

<target name="sign-jar" depends="jar,depjars" description="sign jars for applets">
<signjar alias="${app}" storepass="password" keystore="keystore.key">
<fileset dir="." includes="*.jar"/>
</signjar>
</target>
</project>
120 changes: 120 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
<project name="javaforce" default="jar" basedir=".">
<description>JavaForce SDK</description>
<!-- set global properties for this build -->
<property name="app" location="javaforce"/>
<property name="src" location="src"/>
<property name="build" location="classes"/>
<property name="home" value="."/>
<property name="version" value="9.0.0"/>

<import file="base.xml"/>

<target name="depjars">
<copy todir=".">
<fileset dir="${home}/native" includes="*"/>
</copy>
</target>

<target name="compile" description="compile the source">
<!-- Compile the java code from ${src} into ${build} -->
<mkdir dir="${build}"/>
<mkdir dir="jars"/>
<javac srcdir="${src}" destdir="${build}" target="1.6" source="1.6" debug="true" includeantruntime="false">
<compilerarg value="-Xlint:unchecked"/>
<classpath>
<fileset dir="jars" includes="*.jar"/>
</classpath>
</javac>
</target>

<target name="javadoc" description="generate java documentation">
<javadoc sourcepath="src" destdir="javadoc">
<classpath>
<fileset dir="jars" includes="*.jar"/>
</classpath>
</javadoc>
</target>

<target name="jar" depends="depjars,compile" description="build jar file">
<!-- Build jar file from class files -->
<jar destfile="jars/javaforce.jar" includes="**/*.class" basedir="${build}">
</jar>
</target>

<!-- sudo ant install -->
<target name="install" description="install files">
<copy file="jars/javaforce.jar" todir="/usr/share/java"/>
<copy file="jars/bouncycastle.jar" todir="/usr/share/java"/>
<copy file="jars/filters.jar" todir="/usr/share/java"/>

<copy file="native/jfnative64.so" todir="/usr/lib"/>

<copy file="lnxbin/jbus-call" todir="/usr/bin"/>
<chmod file="/usr/bin/jbus-call" perm="+x"/>
<copy file="lnxbin/jbus-client" todir="/usr/bin"/>
<chmod file="/usr/bin/jbus-client" perm="+x"/>

<elf app="jsudo" cfgdir="lnxcfg/"/>
<elf app="jsudo-ask" cfgdir="lnxcfg/"/>
<elf app="jopen" cfgdir="lnxcfg/"/>
<elf app="jfs" cfgdir="lnxcfg/"/>
<elf app="jimgconvert" cfgdir="lnxcfg/"/>
<elf app="jfr" cfgdir="lnxcfg/"/>
<elf app="pngalpha" cfgdir="lnxcfg/"/>
<elf app="jf-update-desktop-database" cfgdir="lnxcfg/"/>
<elf app="jsmbget" cfgdir="lnxcfg/"/>
<elf app="jservice" cfgdir="lnxcfg/"/>
<elf app="jf-monitor-dir" cfgdir="lnxcfg/"/>
<elf app="jfuse-smb" cfgdir="lnxcfg/"/>
<elf app="jfuse-ftp" cfgdir="lnxcfg/"/>
<elf app="jfuse-ftps" cfgdir="lnxcfg/"/>
<elf app="jfuse-sftp" cfgdir="lnxcfg/"/>
<elf app="jfuse-zip" cfgdir="lnxcfg/"/>
<elf app="jfuse-iso" cfgdir="lnxcfg/"/>
<elf app="jfuse-cdfs" cfgdir="lnxcfg/"/>
<elf app="jfshare" cfgdir="lnxcfg/"/>
<elf app="jcp" cfgdir="lnxcfg/"/>
<elf app="jmv" cfgdir="lnxcfg/"/>
<elf app="jrm" cfgdir="lnxcfg/"/>
<elf app="jver" cfgdir="lnxcfg/"/>
<elf app="jresmgr" cfgdir="lnxcfg/"/>
</target>

<macrodef name="utilsmacro">
<attribute name="app"/>
<attribute name="bits"/>
<sequential>
<copy file="${home}/stubs/win@{bits}c.exe" tofile="@{app}.exe" overwrite="true"/>
<java classpath="${home}/jars/javaforce.jar" classname="javaforce.utils.WinPE" fork="true">
<arg value="@{app}.exe"/>
<arg value="wincfg/@{app}.cfg"/>
</java>
</sequential>
</macrodef>

<target name="utils32" depends="jar" description="build exe for utils 32bit">
<utilsmacro app="jfr" bits="32"/>
<utilsmacro app="jfs" bits="32"/>
<utilsmacro app="jimgconvert" bits="32"/>
<utilsmacro app="pngalpha" bits="32"/>
<utilsmacro app="jfshare" bits="32"/>
<utilsmacro app="WinPE" bits="32"/>
</target>

<target name="utils64" depends="jar" description="build exe for utils 64bit">
<utilsmacro app="jfr" bits="64"/>
<utilsmacro app="jfs" bits="64"/>
<utilsmacro app="jimgconvert" bits="64"/>
<utilsmacro app="pngalpha" bits="64"/>
<utilsmacro app="jfshare" bits="64"/>
<utilsmacro app="WinPE" bits="64"/>
</target>

<target name="clean" description="deletes compiled files">
<delete>
<fileset dir="classes/javaforce" includes="**/*.class"/>
<fileset dir="jars" includes="javaforce.jar"/>
</delete>
</target>

</project>
Binary file added data/font.fnt
Binary file not shown.
Binary file added data/icon32_add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icon32_delete.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icon32_edit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icon32_lock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icon32_logout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icon32_makefolder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icon32_move.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icon32_refresh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icon32_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icon32_templates.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icon32_upload.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icon_delete.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icon_disk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icon_drive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icon_edit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icon_file.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icon_folder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icon_makefolder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icon_minus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icon_parentfolder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icon_plus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icon_refresh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icon_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icon_upload.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions data/rpmmacros
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
%_signature gpg
%_gpg_name Peter Quiring <[email protected]>
Binary file added data/test.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/test.png
11 changes: 11 additions & 0 deletions deb/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Package: javaforce
Version: 9.0.0
Architecture: amd64
Maintainer: Peter Quiring <[email protected]>
Installed-Size: 290
Depends: openjdk-8-jre, libjsch-java (>= 0.1.42), libjzlib-java, libjcifs-java, fuse, libfuse2, fuseiso, libcdio13, mate-icon-theme
Components: main
Provides:
Section: java
Priority: optional
Description: JavaForce base classes.
21 changes: 21 additions & 0 deletions deb/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh

set -e

case "$1" in
configure)
update-alternatives --install /usr/bin/update-desktop-database update-desktop-database /usr/bin/jf-update-desktop-database 100
;;
esac

update-desktop-database

#ensure Java7 is selected
if [ -f /usr/lib/jvm/java-7-openjdk-i386/bin/java ]; then
echo Selecting Java7 i386
update-java-alternatives -s java-1.7.0-openjdk-i386
fi
if [ -f /usr/lib/jvm/java-7-openjdk-amd64/bin/java ]; then
echo Selecting Java7 amd64
update-java-alternatives -s java-1.7.0-openjdk-amd64
fi
11 changes: 11 additions & 0 deletions deb/postrm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

set -e

case "$1" in
configure)
update-alternatives --remove update-desktop-database /usr/bin/jf-update-desktop-database
;;
esac

update-desktop-database
14 changes: 14 additions & 0 deletions deb/preinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

set -e

if [ "$1" = upgrade ]; then
update-alternatives --remove update-desktop-database /usr/bin/jf-update-desktop-database
fi

mkdir -p /etc/jconfig.d
mkdir -p /etc/jinit
mkdir -p /usr/share/jhelp
mkdir -p /usr/share/icons/hicolor/48x48/apps

exit 0
9 changes: 9 additions & 0 deletions deb/prerm
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

set -e

case "$1" in
remove)
update-alternatives --remove update-desktop-database /usr/bin/jf-update-desktop-database
;;
esac
28 changes: 28 additions & 0 deletions files.lst
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/usr/share/java/javaforce.jar
/usr/share/java/bouncycastle.jar
/usr/share/java/filters.jar
/usr/bin/jbus-call
/usr/bin/jbus-client
/usr/bin/jfs
/usr/bin/jfr
/usr/bin/pngalpha
/usr/bin/jf-update-desktop-database
/usr/bin/jsudo
/usr/bin/jsudo-ask
/usr/bin/jopen
/usr/bin/jsmbget
/usr/bin/jservice
/usr/bin/jfuse-smb
/usr/bin/jfuse-ftp
/usr/bin/jfuse-ftps
/usr/bin/jfuse-sftp
/usr/bin/jfuse-zip
/usr/bin/jfuse-iso
/usr/bin/jfuse-cdfs
/usr/bin/jfshare
/usr/bin/jcp
/usr/bin/jmv
/usr/bin/jrm
/usr/bin/jver
/usr/bin/jimgconvert
/usr/lib/jfnative64.so
6 changes: 6 additions & 0 deletions iso/fedora/google-chrome.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
6 changes: 6 additions & 0 deletions iso/fedora/javaforce.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[javaforce]
name=JavaForce Yum Repo
baseurl=http://javaforce.sourceforge.net/fedora
enabled=1
gpgcheck=1
gpgkey=http://javaforce.sourceforge.net/fedora/RPM-GPG-KEY-javaforce
Loading

0 comments on commit c59c901

Please sign in to comment.