Commits

tbrugz committed 68062b7

build bugfixing, added logging.properties

Comments (0)

Files changed (2)

 	
     <property name="manifest.version"     value="1.0"/>
     <property name="manifest.mainclass"   value="net.sf.pdfsplice.PDFSplice"/>
-	<property name="manifest.classpath"   value="iText-5.0.1.jar bcprov-jdk15-133.jar"/>
+	<property name="manifest.classpath"   value="itextpdf-5.1.3.jar bcprov-jdk15-146.jar"/>
 
 	<loadproperties srcfile="build.properties"/>
 	
 	    	<include name="*.jar"/>
 		</fileset>
     </path>
+	
+	<fileset id="jar.classes" dir="${compile.dir}">
+		<include name="net/sf/pdfsplice/*.class"/>
+		<include name="net/sf/pdfsplice/uiutil/**.class"/>
+		<include name="net/sf/pdfsplice/sign/**.class"/>
+	</fileset>
 
     <target name="prepare">
         <property environment="env"/>
 
     <target name="jar" depends="compile">
         <jar jarfile="${dist.dir}/pdfsplice.jar"
-            basedir="${compile.dir}"
-            includes="net/sf/pdfsplice/**.class, net/sf/pdfsplice/uiutil/**.class">
+            basedir="${compile.dir}">
+        	<fileset refid="jar.classes"/>
 		    <manifest>
 				<attribute name="Manifest-Version" value="${manifest.version}"/>
 				<attribute name="Implementation-Title" value="PDF Splice"/>
     </target>
 	
 	<target name="jar.all-in-one" depends="compile">
-		<jar id="files" jarfile="${dist.dir}/pdfsplice.allinone.jar">
+		<jar jarfile="${dist.dir}/pdfsplice.allinone.jar">
 			<manifest>
 				<attribute name="Manifest-Version" value="${manifest.version}"/>
 				<attribute name="Implementation-Title" value="PDF Splice"/>
 				<attribute name="Implementation-Version" value="${version}"/>
 				<attribute name="Main-Class" value="${manifest.mainclass}"/>
 			</manifest>
-			<fileset dir="${compile.dir}" includes="net/sf/pdfsplice/**.class, net/sf/pdfsplice/uiutil/**.class"/>
-			<zipfileset src="${lib.dir}/iText-5.0.1.jar" includes="**/*.class, *.properties"/>
-			<zipfileset src="${lib.dir}/bcprov-jdk15-133.jar" includes="**/*.class, *.properties"/>
+			<fileset refid="jar.classes"/>
+			<zipfileset src="${lib.dir}/itextpdf-5.1.3.jar" includes="**/*.class, *.properties"/>
+			<zipfileset src="${lib.dir}/bcprov-jdk15-146.jar" includes="**/*.class, *.properties"/>
 		</jar>
 	</target>
 	
 	</target>
 	
     <target name="dist"
-            depends="jar">
+            depends="jar, jar.all-in-one">
     	<copy todir="${dist.dir}">
     		<fileset dir="${lib.dir}" includes="*.jar"/>
     	</copy>
     </target>
 	
-	<target name="all" depends="dist, test">
+	<target name="all" depends="version, dist, test">
 	</target>
 
-    <target name="version" 
-            depends="compile"
+    <target name="version"
 	    description="Prints some info about the Ant version and the OS/JDK used">
         <echo message="Ant version=${ant.version}"/>
         <echo message="JDK=${java.vm.version} on ${os.name} ${os.version}"/>

src/logging.properties

+# Properties file which configures the operation of the JDK 
+# logging facility.
+
+# The system will look for this config file, first using 
+# a System property specified at startup: 
+# 
+# >java -Djava.util.logging.config.file=myLoggingConfigFilePath 
+# 
+# If this property is not specified, then the config file is 
+# retrieved from its default location at: 
+# 
+# JDK_HOME/jre/lib/logging.properties
+
+# Global logging properties. 
+# ------------------------------------------ 
+# The set of handlers to be loaded upon startup. 
+# Comma-separated list of class names. 
+# (? LogManager docs say no comma here, but JDK example has comma.) 
+handlers=java.util.logging.ConsoleHandler
+
+# Default global logging level. 
+# Loggers and Handlers may override this level 
+.level=CONFIG
+
+# Loggers 
+# ------------------------------------------ 
+# Loggers are usually attached to packages. 
+# Here, the level for each package is specified. 
+# The global level is used by default, so levels 
+# specified here simply act as an override.
+net.sf.pdfsplice.level=ALL
+
+# Handlers 
+# -----------------------------------------
+
+# --- ConsoleHandler --- 
+# Override of global logging level 
+java.util.logging.ConsoleHandler.level=FINEST
+java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter