Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
ee9f539
Added a few ignore files and started working on GUI for DMGInfoView.
unsound Nov 9, 2006
b65f391
Fixed the problem that Günter Dressel had (I think).
unsound Nov 9, 2006
ebfa356
This is what I will send to Günter Dressel.
unsound Nov 9, 2006
b35815b
Removed some old stuff and fixed a few bugs.
unsound Nov 9, 2006
17333d2
Fixed a bug related to 0-means-outoffs hack.
unsound Nov 10, 2006
885f444
Disabling broken assumption about plistEnd.
unsound Nov 11, 2006
7097aad
Added a release build script for the graphical DMGExtractor.
unsound Nov 11, 2006
1cfeaa2
Updated binary build of DMGExtractor and updated the web page slightly.
unsound Nov 12, 2006
b72c461
Added bzip2 library from ant.
unsound Nov 12, 2006
1bb3e11
Added my own XML parser to the tree under org.catacombae.xml.parser.
unsound Nov 26, 2006
ecfbbbe
Various additions and changes.
unsound Nov 26, 2006
93fc3e3
Further fixes for my own XML parser + integration into DMGExtractor.
unsound Dec 1, 2006
8b514b1
Removed old test utility.
unsound Jan 13, 2007
4fc6479
Made Plist.java utilize the new XML-parser.
unsound Jan 13, 2007
b203e82
Added a lot of GPL notices...
unsound Jan 13, 2007
c75a550
Version 0.51pre1.
unsound Jan 13, 2007
3c88807
Added some small sh-script.
unsound Jan 14, 2007
0da1802
Added a few stubs for new classes and implemented some new features.
unsound Jan 29, 2007
e02c737
Added some stuff that probably isn't finished.
unsound Jan 29, 2007
b4f77f2
Worked on a DmgInputStream, but it's not finished...
unsound Jan 30, 2007
3d364e8
Don't know what has been done. Didn't commit this when I worked on it.
unsound Apr 2, 2007
38c1aa0
DmgRandomAccessStream works!
unsound Apr 5, 2007
4c5c335
Completely reworked the XML parser in order to decrease memory usage.
unsound Jun 25, 2007
f962ef2
Various changes.
unsound Jun 26, 2007
31616fb
Various fixes / cleanup.
unsound Jun 26, 2007
508fbd6
Bugfix in DmgPlistPartition + some other changes.
unsound Jun 29, 2007
9804162
Removed iHarder source from the source tree.
unsound Aug 28, 2007
4bfa0b4
Support for BT_BZIP2 at last!
unsound Aug 28, 2007
1a954f8
Reorganization.
unsound Aug 28, 2007
072968d
Updated some script files to cope with recent changes.
unsound Aug 28, 2007
f458220
Moved gcj stubs to its own subproject.
unsound Aug 28, 2007
a3a8fcc
Some source modifications to allow code to be compiled with gcj.
unsound Aug 28, 2007
0421d65
Changed license notices in source files from GPLv2 to GPLv3.
unsound Aug 28, 2007
79035f3
Fixes for 'About' message (copyright notices and acknowledgements).
unsound Aug 28, 2007
1321747
Bugfixes for command line utility (launched from dmgx.sh).
unsound Aug 28, 2007
8640e4f
Removed BuildEnumerator source from tree and moved jar file.
unsound Aug 29, 2007
f196dc7
Minor restructuring.
unsound Aug 29, 2007
321a627
Reorganization and update of build system.
unsound Aug 29, 2007
93c8e2d
More reorganization and addition of archived release files.
unsound Aug 29, 2007
bde6aca
Reorganization and cleanup.
unsound Aug 29, 2007
070a8cc
Updated sh script files to deal with new tree structure. Not verified.
unsound Aug 29, 2007
726601e
Shell script fixes to accommodate new structure.
unsound Aug 29, 2007
0ef6daf
General fixes...
unsound Aug 30, 2007
63d83e1
Bugfixes, cleanup and addition of a working DmgInputStream.
unsound Aug 30, 2007
5672695
Added validate method for Koly.
unsound Aug 31, 2007
566b73a
Reorganization and renaming of classes to more suitable names.
unsound Aug 31, 2007
7f30709
More reorganization...
unsound Aug 31, 2007
12b5876
Updated standalone and hfsx builds and fixed buildhfsxlib.bat.
unsound Aug 31, 2007
1c4e4b8
Added Java Web Start files.
unsound Aug 31, 2007
67dde58
Possibly the 0.60 final version.
unsound Aug 31, 2007
24aaadc
Cleaned out unused junk file.
unsound Aug 31, 2007
08e0f77
Shell script for making a zip-file distribution added.
unsound Aug 31, 2007
2d36241
Consolidated DMGExtractor's and HFSExplorer's I/O-libraries (+ cleanup).
unsound Jul 29, 2008
6893fd3
Updated *nix buildscript.
unsound Oct 1, 2008
47258e1
Various updates.
unsound Oct 1, 2008
23f8c26
Updated Util to latest version.
unsound Oct 10, 2008
0628e88
Added code for reading encrypted disk images.
unsound Oct 10, 2008
2293479
Updated the build script to include the encryption package.
unsound Oct 10, 2008
9f18ce4
Bump build number.
unsound Oct 10, 2008
5b9974a
Added ReadableCEncryptedEncodingStream and updated license texts.
unsound Oct 10, 2008
23a6841
Bump build number and rebuild dmgextractor.jar with latest code state.
unsound Oct 10, 2008
0e8f495
Updates the swing-layout library to latest version.
unsound Oct 10, 2008
2681655
Added 'targets' directory with various different build targets.
unsound Oct 10, 2008
f7bb310
Introduce separate manifest files for the different targets.
unsound Oct 10, 2008
f1b9e7c
Move jnlp-data to src.JNLP-INF.
unsound Oct 10, 2008
dff6a5b
Clean out old manifest directory.
unsound Oct 10, 2008
2e34ea6
Added 'hfsxlib' target.
unsound Oct 10, 2008
8427390
Clean out old files from 'dist' directory.
unsound Oct 10, 2008
9726390
Now using Apache Ant to build project.
unsound Oct 10, 2008
6cf357d
Add 'definevars.sh', missing from the previous commit.
unsound Oct 10, 2008
3745c22
Removing 'dmgx.sh' in order to change its type to binary.
unsound Oct 10, 2008
4c08e0c
Re-add 'dmgx.sh' as binary.
unsound Oct 10, 2008
2c56d9a
Remove all other .sh-scripts in order to change their type to binary.
unsound Oct 10, 2008
9023cb0
Re-add .sh scripts as binary.
unsound Oct 10, 2008
f2286db
Build fixes for the new project structure.
unsound Oct 10, 2008
d5ede04
Add missing 'dmgextractor.jar' to 'application' target.
unsound Oct 11, 2008
1ac2290
Bugfix for reading encrypted streams.
unsound Oct 11, 2008
391885c
Encryption support for DMGExtractor completely added.
unsound Oct 11, 2008
3c1c20e
Slight API change for HFSExplorer.
unsound Oct 11, 2008
c81a3ff
Add 'testencstream.bat' test script.
unsound Oct 11, 2008
c1bdac6
Removing .bat files in order to change their type to binary.
unsound Oct 11, 2008
6e19a4e
Re-add .bat files as binary.
unsound Oct 11, 2008
dd130ba
Removing .bat files in order to change their type to binary (again).
unsound Oct 11, 2008
d702e32
Re-add .bat files as binary (for real this time).
unsound Oct 11, 2008
8660704
Add 'testencstream.sh' test script (similar to 'testencstream.bat').
unsound Oct 11, 2008
b36099e
Code state at release of HFSExplorer 0.20.
unsound Nov 4, 2008
c677a2c
Major restructuring, componentization...
unsound Nov 9, 2008
5bf882d
Getting ready for version 0.70.
unsound Nov 9, 2008
e203742
Clean out old files.
unsound Nov 9, 2008
20ce914
Version 0.70.
unsound Nov 10, 2008
e57779b
Remove dmgx.bat in order to change its type to binary.
unsound Nov 10, 2008
4e1af30
Re-add 'dmgx.bat' as binary file.
unsound Nov 10, 2008
e58102d
Added some new convenient scripts.
unsound Nov 10, 2008
2a88724
Remove recently added scripts in order to change their type to binary.
unsound Nov 10, 2008
fbc08b4
Re-add scripts as binary.
unsound Nov 10, 2008
373df27
Minor fix to 'wbuildall.bat' (enclose pathname in quotes).
unsound Nov 10, 2008
a47eaf4
Updated DMGExtractor to use csframework instead of catacombae_io.
unsound Nov 16, 2008
a40971f
Updated build of csframework.
unsound Nov 16, 2008
a2872dc
Updated javadoc reference from CatacombaeIO to CatacombaeFramework.
unsound Nov 16, 2008
e0982d4
Code reformatting, documentation and cleanup.
unsound Jan 2, 2010
32a9fe9
Latest ant buildfile fixes.
unsound Jan 2, 2010
b56fd44
Plist.java: Cleanup (unused variables, trailing spaces/tabs).
unsound Jul 2, 2011
85f71f6
Isolated plist-specific functionality into package org.catacombae.plist.
unsound Jul 2, 2011
d34362f
Corrected a few spelling errors.
unsound Jul 2, 2011
06b3237
XmlPlistNode.java: Bugfix in getKeyValue.
unsound Jul 3, 2011
667afd9
First implementation of a filter stream for reading a sparse bundle.
unsound Jul 3, 2011
920bec3
build.xml: Include sparse bundle code in hfsx_dmglib.jar
unsound Jul 3, 2011
97612c3
JDK 5 compile fixes.
unsound Jul 4, 2011
acb29e0
Update buildall.sh
sneak Apr 30, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .cvsignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*~
*#
*.class
.DS_Store
Thumbs.db
176 changes: 176 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
<?xml version="1.0" encoding="UTF-8"?>

<project basedir="." default="all" name="DMGExtractor">
<property environment="env"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="java.target.level" value="1.5"/>
<property name="java.source.level" value="1.5"/>
<property name="java.source.dir" value="src"/>
<property name="builddir" value=".antbuild~"/>
<property name="java.build.library.dir" value="lib"/>
<property name="java.runtime.library.dir" value="targets/application/lib"/>
<property name="target.application.manifest.dir" value="src.META-INF/application"/>
<property name="target.standalone.manifest.dir" value="src.META-INF/standalone"/>
<property name="target.standalone.jnlp.dir" value="src.JNLP-INF/standalone"/>
<property name="target.application.outjar" value="targets/application/lib/dmgextractor.jar"/>
<property name="target.standalone.outjar" value="targets/standalone/dmgextractor-standalone.jar"/>
<property name="target.hfsxlib.outjar" value="targets/hfsxlib/hfsx_dmglib.jar"/>


<!-- TARGET: init -->

<target name="init">
<mkdir dir="${builddir}"/>
</target>


<!-- TARGET: clean -->

<target name="clean">
<mkdir dir="${builddir}"/>
<delete dir="${builddir}"/>
</target>


<!-- TARGET: all -->

<target name="all">
<echo message="Currently defined targets:"/>
<echo message=" build-application - Builds the application target, compiling all project sources."/>
<echo message=" build-standalone - Builds the standalone target, creating a standalone executable jar file with only the essentials to run DMGExtractor."/>
<echo message=" build-hfsxlib - Builds the library subset of DMGExtractor required by HFSExplorer."/>
<echo message=" javadoc - Creates the javadoc documentation for the project."/>
</target>


<!-- TARGET: application -->

<path id="target.application.classpath">
<fileset dir="${java.runtime.library.dir}">
<include name="*.jar"/>
<exclude name="dmgextractor.jar"/>
</fileset>
</path>

<target name="build-application" depends="clean,jar-application"/>

<target name="compile-application" depends="init">
<javac srcdir="${java.source.dir}"
destdir="${builddir}"
includes="**"
debug="true"
debuglevel="${debuglevel}"
encoding="iso-8859-1"
source="${java.source.level}"
target="${java.target.level}"
deprecation="on">
<compilerarg value="-Xlint:unchecked"/>
<classpath refid="target.application.classpath"/>
</javac>
</target>

<target name="jar-application" depends="compile-application">
<jar destfile="${target.application.outjar}" basedir="${builddir}" manifest="${target.application.manifest.dir}/MANIFEST.MF" level="9"/>
</target>


<!-- TARGET: standalone -->

<target name="build-standalone" depends="clean,jar-standalone"/>

<target name="copyresources-standalone" depends="init">
<copy todir="${builddir}">
<zipfileset src="${java.runtime.library.dir}/csframework.jar" includes="**/*.class"/>
<zipfileset src="${java.runtime.library.dir}/apache-ant-1.7.0-bzip2.jar" includes="**/*.class"/>
<zipfileset src="${java.runtime.library.dir}/iharder-base64.jar" includes="**/*.class"/>
<zipfileset src="${java.runtime.library.dir}/swing-layout-1.0.3.jar" includes="**/*.class"/>
</copy>
<mkdir dir="${builddir}/JNLP-INF"/>
<copy file="${target.standalone.jnlp.dir}/dmgextractor.jnlp" tofile="${builddir}/JNLP-INF/APPLICATION.JNLP"/>
</target>

<target name="compile-standalone" depends="init,copyresources-standalone">
<javac srcdir="${java.source.dir}"
destdir="${builddir}"
includes="org/catacombae/dmgextractor/DMGExtractorGraphical.java"
debug="true"
debuglevel="${debuglevel}"
source="${java.source.level}"
target="${java.target.level}"
deprecation="on">
<compilerarg value="-Xlint:unchecked"/>
<classpath>
<pathelement path="${builddir}"/>
</classpath>
</javac>
</target>

<target name="jar-standalone" depends="compile-standalone">
<jar destfile="${target.standalone.outjar}" basedir="${builddir}" manifest="${target.standalone.manifest.dir}/MANIFEST.MF" level="9"/>
</target>


<!-- TARGET: hfsxlib -->

<path id="target.hfsxlib.classpath">
<fileset dir="${java.runtime.library.dir}">
<include name="*.jar"/>
<exclude name="dmgextractor.jar"/>
</fileset>
</path>

<target name="build-hfsxlib" depends="clean,jar-hfsxlib"/>

<target name="compile-hfsxlib" depends="init">
<javac srcdir="${java.source.dir}"
destdir="${builddir}"
debug="true"
debuglevel="${debuglevel}"
source="${java.source.level}"
target="${java.target.level}"
deprecation="on">
<!-- All entry points to the DMGExtractor libraries from HFSExplorer should be listed here. -->
<include name="org/catacombae/dmg/udif/*.java"/>
<include name="org/catacombae/dmg/encrypted/*.java"/>
<include name="org/catacombae/dmg/sparsebundle/ReadableSparseBundleStream.java"/>
<include name="org/catacombae/dmgextractor/ui/PasswordDialog.java"/>

<compilerarg value="-Xlint:unchecked"/>
<classpath refid="target.hfsxlib.classpath"/>
</javac>
</target>

<target name="jar-hfsxlib" depends="compile-hfsxlib">
<jar destfile="${target.hfsxlib.outjar}" basedir="${builddir}" level="9"/>
</target>


<!-- TARGET: javadoc -->

<path id="javadoc.classpath">
<!--<fileset dir="${java.build.library.dir}">
<include name="**/*.jar"/>
</fileset>-->
<fileset dir="${java.runtime.library.dir}">
<include name="**/*.jar"/>
</fileset>
</path>

<target name="javadoc">
<javadoc destdir="javadoc.~"
packagenames="org.catacombae.*"
sourcepath="${java.source.dir}"
access="private"
author="true"
version="true"
use="true"
windowtitle="DMGExtractor API">

<link href="http://java.sun.com/j2se/1.5.0/docs/api/"/>
<link href="../../CatacombaeFramework/javadoc.~/"/>
<classpath>
<path refid="javadoc.classpath"/>
</classpath>
</javadoc>
</target>
</project>
61 changes: 28 additions & 33 deletions buildall.bat
Original file line number Diff line number Diff line change
@@ -1,33 +1,28 @@
@echo off
:begin
setlocal

set SOURCES_DIR=src
set CLASSFILES_DIR=build.~
set LIBRARY_PATH=lib
set JARFILE=dmgextractor.jar
set MANIFEST=meta\metafile.txt

pushd %~dp0
echo Removing all class files...
if not exist %CLASSFILES_DIR% mkdir %CLASSFILES_DIR%
del /f /q %CLASSFILES_DIR%\*.*
echo Incrementing build number...
java -cp .\buildenumerator BuildEnumerator src\BuildNumber.java
echo Compiling...
javac -sourcepath %SOURCES_DIR% -d %CLASSFILES_DIR% -Xlint:unchecked %SOURCES_DIR%\*.java
set JAVAC_EXIT_CODE=%ERRORLEVEL%
if not "%JAVAC_EXIT_CODE%"=="0" goto error
echo Building jar-file...
if not exist %LIBRARY_PATH% mkdir %LIBRARY_PATH%
jar cvfm %LIBRARY_PATH%\%JARFILE% %MANIFEST% -C %CLASSFILES_DIR% . >NUL:
if "%ERRORLEVEL%"=="0" (echo Done!) else echo Problems while building jar-file...
popd
goto end

:error
echo There were errors...
goto end

:end
endlocal
@echo off
:begin
setlocal

set SOURCES_DIR=%~dp0src
set BUILDTOOLS_CP=%~dp0lib\buildenumerator.jar

pushd %~dp0

echo Incrementing build number...
java -cp "%BUILDTOOLS_CP%" BuildEnumerator "%SOURCES_DIR%\org\catacombae\dmgextractor\BuildNumber.java" 1
if not "%ERRORLEVEL%"=="0" goto error

echo Building with ant...
call ant build-application
if "%ERRORLEVEL%"=="0" (echo Done!) else echo Problems while building with ant... && goto error

popd
goto end

:error
echo There were errors...
echo Decrementing build number...
java -cp "%BUILDTOOLS_CP%" BuildEnumerator "%SOURCES_DIR%\org\catacombae\dmgextractor\BuildNumber.java" -1
goto end

:end
endlocal
81 changes: 33 additions & 48 deletions buildall.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,60 +1,45 @@
#!/bin/sh
#!/bin/bash

SOURCES_DIR=src
BUILDTOOLS_CP=lib/buildenumerator.jar

error() {
echo "There were errors..."
echo "Decrementing build number..."
java -cp $BUILDTOOLS_CP BuildEnumerator $SOURCES_DIR/org/catacombae/dmgx/BuildNumber.java -1
decrement_buildnumber
exit 1
}
jobCompleted() {
echo "Done!"
}

SOURCES_DIR=src
CLASSFILES_DIR=build.~
LIBRARY_PATH=lib
MANIFEST=meta/metafile.txt
BUILD_CP=$CLASSFILES_DIR
#:$LIBRARY_PATH/filedrop.jar
BUILDTOOLS_CP=buildenumerator/buildenumerator.jar
JARFILE=dmgextractor.jar

if [ -d "$CLASSFILES_DIR" ]; then # if exists $CLASSFILES_DIR...
echo "Removing all class files..."
rm -r $CLASSFILES_DIR
fi
mkdir $CLASSFILES_DIR

echo "Extracting swing-layout to classfiles directory..."
cd $CLASSFILES_DIR
jar xf "../$LIBRARY_PATH/swing-layout-1.0.1-stripped.jar"
cd ..
increment_buildnumber() {
echo "Incrementing build number..."
java -cp $BUILDTOOLS_CP BuildEnumerator $SOURCES_DIR/org/catacombae/dmgextractor/BuildNumber.java 1
}

echo "Extracting filedrop to classfiles directory..."
cd $CLASSFILES_DIR
jar xf "../$LIBRARY_PATH/filedrop.jar"
cd ..
decrement_buildnumber() {
echo "Decrementing build number..."
java -cp $BUILDTOOLS_CP BuildEnumerator $SOURCES_DIR/org/catacombae/dmgextractor/BuildNumber.java -1
}

#echo "Extracting base64 to classfiles directory..."
#cd $CLASSFILES_DIR
#jar xf "../$LIBRARY_PATH/base64.jar"
#cd ..
ant_build() {
ant build-application
return $?
}

echo "Incrementing build number..."
java -cp $BUILDTOOLS_CP BuildEnumerator $SOURCES_DIR/org/catacombae/dmgx/BuildNumber.java 1
echo "Compiling org.catacombae.dmgx..."
javac -cp $BUILD_CP -sourcepath $SOURCES_DIR -d $CLASSFILES_DIR -Xlint:deprecation -Xlint:unchecked $SOURCES_DIR/org/catacombae/dmgx/*.java
echo "Compiling org.catacombae.dmgx.gui..."
javac -cp $BUILD_CP -sourcepath $SOURCES_DIR -d $CLASSFILES_DIR -Xlint:deprecation -Xlint:unchecked $SOURCES_DIR/org/catacombae/dmgx/gui/*.java
JAVAC_EXIT_CODE=$?
if [ "$JAVAC_EXIT_CODE" == 0 ]; then
echo "Building jar-file..."
if [ ! -d "$LIBRARY_PATH" ]; then # if not exists $LIBRARY_PATH...
echo "Making library path"
mkdir $LIBRARY_PATH
fi
jar cfm $LIBRARY_PATH/$JARFILE $MANIFEST -C $CLASSFILES_DIR .
main() {
increment_buildnumber
if [ "$?" == 0 ]; then
echo Done!
ant_build
if [ "$?" == 0 ]; then
jobCompleted
else
error
fi
else
error
fi
else
error
fi
}

# Entry point
main
26 changes: 0 additions & 26 deletions buildenumerator/BuildEnumerator.java

This file was deleted.

21 changes: 21 additions & 0 deletions buildhfsxlib.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@echo off
:begin
setlocal

set SOURCES_DIR=%~dp0src

pushd %~dp0

echo Building with ant...
call ant build-hfsxlib
if "%ERRORLEVEL%"=="0" (echo Done!) else echo Problems while building with ant... && goto error

popd
goto end

:error
echo There were errors...
goto end

:end
endlocal
Loading