From f7b41121db82d12ab805f31f2adb6f6671bcd82f Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Sat, 20 Aug 2011 15:49:44 +0000 Subject: [PATCH] --- .../tools/fwstk/nbproject/build-impl.xml | 72 +++++++++++++------ .../tools/fwstk/nbproject/genfiles.properties | 10 +-- .../private/configs/Extract_Layout.properties | 2 +- .../tools/fwstk/nbproject/project.properties | 2 +- fluidbook/tools/fwstk/nbproject/project.xml | 1 + .../apache/pdfbox/util/PDFStreamEngine.java | 4 +- 6 files changed, 62 insertions(+), 29 deletions(-) diff --git a/fluidbook/tools/fwstk/nbproject/build-impl.xml b/fluidbook/tools/fwstk/nbproject/build-impl.xml index e0ac685fb..ba8fe7e7e 100644 --- a/fluidbook/tools/fwstk/nbproject/build-impl.xml +++ b/fluidbook/tools/fwstk/nbproject/build-impl.xml @@ -54,6 +54,43 @@ is divided into following sections: + + + + + + + + + + + + + + + + + + + + + + + + + + Must set platform.home + Must set platform.bootcp + Must set platform.java + Must set platform.javac + + The J2SE Platform is not correctly set up. + Your active platform is: ${platform.active}, but the corresponding property "platforms.${platform.active}.home" is not found in the project's properties files. + Either open the project in the IDE and setup the Platform with the same name or add it manually. + For example like this: + ant -Duser.properties.file=<path_to_property_file> jar (where you put the property "platforms.${platform.active}.home" in a .properties file) + or ant -Dplatforms.${platform.active}.home=<path_to_JDK_home> jar (where no properties file is used) + @@ -185,15 +222,6 @@ is divided into following sections: - - - - - - - - - @@ -239,7 +267,7 @@ is divided into following sections: - + @@ -278,7 +306,7 @@ is divided into following sections: - + @@ -335,7 +363,7 @@ is divided into following sections: - + @@ -407,6 +435,9 @@ is divided into following sections: + + + @@ -422,7 +453,9 @@ is divided into following sections: - + + + @@ -447,7 +480,7 @@ is divided into following sections: - + @@ -472,7 +505,7 @@ is divided into following sections: - + @@ -655,7 +688,7 @@ is divided into following sections: - java -cp "${run.classpath.with.dist.jar}" ${main.class} + ${platform.java} -cp "${run.classpath.with.dist.jar}" ${main.class} @@ -682,7 +715,7 @@ is divided into following sections: To run this application from the command line without Ant, try: - java -jar "${dist.jar.resolved}" + ${platform.java} -jar "${dist.jar.resolved}" @@ -832,16 +865,15 @@ is divided into following sections: --> - + - + - diff --git a/fluidbook/tools/fwstk/nbproject/genfiles.properties b/fluidbook/tools/fwstk/nbproject/genfiles.properties index 00af3e9f5..c18a0bf72 100644 --- a/fluidbook/tools/fwstk/nbproject/genfiles.properties +++ b/fluidbook/tools/fwstk/nbproject/genfiles.properties @@ -1,8 +1,8 @@ -build.xml.data.CRC32=5afba316 +build.xml.data.CRC32=0fe54e23 build.xml.script.CRC32=ef618d2d -build.xml.stylesheet.CRC32=28e38971@1.44.1.45 +build.xml.stylesheet.CRC32=28e38971@1.43.1.45 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=5afba316 -nbproject/build-impl.xml.script.CRC32=f0904f14 -nbproject/build-impl.xml.stylesheet.CRC32=0ae3a408@1.44.1.45 +nbproject/build-impl.xml.data.CRC32=0fe54e23 +nbproject/build-impl.xml.script.CRC32=34b388b3 +nbproject/build-impl.xml.stylesheet.CRC32=0c01fd8e@1.43.1.45 diff --git a/fluidbook/tools/fwstk/nbproject/private/configs/Extract_Layout.properties b/fluidbook/tools/fwstk/nbproject/private/configs/Extract_Layout.properties index 8db5be2fb..4a5d0304d 100644 --- a/fluidbook/tools/fwstk/nbproject/private/configs/Extract_Layout.properties +++ b/fluidbook/tools/fwstk/nbproject/private/configs/Extract_Layout.properties @@ -1 +1 @@ -application.args=--input C:\\Users\\Vincent\\Documents\\layout\\document.pdf --layout C:\\Users\\Vincent\\Documents\\layout\\p%d.layout --cmaps C:\\Users\\Vincent\\Documents\\layout\\ +application.args=--input H:\\Documents\\fwstk\\layout\\document.pdf --layout H:\\Documents\\fwstk\\layout\\p%d.layout --cmaps H:\\Documents\\fwstk\\layout\\ diff --git a/fluidbook/tools/fwstk/nbproject/project.properties b/fluidbook/tools/fwstk/nbproject/project.properties index 9a4f489cf..9c3a89676 100644 --- a/fluidbook/tools/fwstk/nbproject/project.properties +++ b/fluidbook/tools/fwstk/nbproject/project.properties @@ -87,7 +87,7 @@ main.class=com.fluidbook.fwstk.Main manifest.file=manifest.mf meta.inf.dir=${src.dir}/META-INF mkdist.disabled=false -platform.active=default_platform +platform.active=JDK_1.7 run.classpath=\ ${build.classes.dir}:\ ${javac.classpath} diff --git a/fluidbook/tools/fwstk/nbproject/project.xml b/fluidbook/tools/fwstk/nbproject/project.xml index a70a3bf29..38eb6a1e3 100644 --- a/fluidbook/tools/fwstk/nbproject/project.xml +++ b/fluidbook/tools/fwstk/nbproject/project.xml @@ -4,6 +4,7 @@ fwstk + diff --git a/fluidbook/tools/fwstk/src/org/apache/pdfbox/util/PDFStreamEngine.java b/fluidbook/tools/fwstk/src/org/apache/pdfbox/util/PDFStreamEngine.java index a9f30603a..03e0174c7 100644 --- a/fluidbook/tools/fwstk/src/org/apache/pdfbox/util/PDFStreamEngine.java +++ b/fluidbook/tools/fwstk/src/org/apache/pdfbox/util/PDFStreamEngine.java @@ -372,7 +372,7 @@ public class PDFStreamEngine { } try { - String currentChar= Character.toString(currentString.charAt(i)); + String currentChar = Character.toString(currentString.charAt(i)); if (c.toUpperCase().equals(currentChar)) { System.out.println("up"); c = c.toUpperCase(); @@ -380,7 +380,7 @@ public class PDFStreamEngine { System.out.println("low"); c = c.toLowerCase(); } - } catch ( NullPointerException | StringIndexOutOfBoundsException e) { + } catch (NullPointerException | StringIndexOutOfBoundsException e) { } //System.out.println(c+";"+currentString.charAt(i)); -- 2.39.5