From fb2ed910a234752406778e2d088e5a065bd2ba89 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 22 Oct 2010 11:08:26 +0800 Subject: [PATCH] refactoring and clean up --- equinox-target/.project | 11 - equinox-target/build.xml | 78 -- equinox-target/configuration/config.ini | 6 - equinox-target/equinox.target | 13 - .../adempiere_equinox_swing.launch | 27 - .../launchconfig/adempiere_equinox_web.launch | 26 - .../META-INF/ECLIPSEF.RSA | Bin 5639 -> 0 bytes .../META-INF/ECLIPSEF.SF | 179 --- .../META-INF/MANIFEST.MF | 234 ---- .../META-INF/eclipse.inf | 4 - .../about.html | 62 - .../about_files/LICENSE.dom.html | 82 -- .../about_files/LICENSE.sax.txt | 20 - .../about_files/NOTICE | 26 - .../about_files/asl-v20.txt | 202 ---- .../bin/ant | 326 ------ .../bin/ant.bat | 226 ---- .../bin/ant.cmd | 93 -- .../bin/antRun | 24 - .../bin/antRun.bat | 50 - .../bin/antRun.pl | 66 -- .../bin/antenv.cmd | 98 -- .../bin/complete-ant-cmd.pl | 114 -- .../bin/envset.cmd | 131 --- .../bin/lcp.bat | 31 - .../bin/runant.pl | 153 --- .../bin/runant.py | 102 -- .../bin/runrc.cmd | 60 - .../etc/changelog.xsl | 148 --- .../etc/checkstyle/checkstyle-frames.xsl | 299 ----- .../etc/checkstyle/checkstyle-text.xsl | 34 - .../etc/checkstyle/checkstyle-xdoc.xsl | 130 --- .../etc/coverage-frames.xsl | 489 -------- .../etc/jdepend-frames.xsl | 487 -------- .../etc/jdepend.xsl | 276 ----- .../etc/junit-frames-xalan1.xsl | 719 ------------ .../etc/junit-frames.xsl | 877 -------------- .../etc/junit-noframes.xsl | 467 -------- .../etc/log.xsl | 203 ---- .../etc/maudit-frames.xsl | 503 -------- .../etc/mmetrics-frames.xsl | 1026 ----------------- .../etc/tagdiff.xsl | 179 --- .../plugin.properties | 12 - equinox-target/spring/.directory | 7 - .../webapp/configuration/config.ini | 11 - .../webstart/adempiere-equinox.jnlp | 57 - launch/.project | 11 - launch/Adempiere.ico | Bin 4286 -> 0 bytes launch/Adempiere.xml | 44 - launch/Release/Adempiere.exe | Bin 31232 -> 0 bytes launch/readme.txt | 4 - liberoHR/.classpath | 7 - liberoHR/.project | 28 - liberoHR/.settings/org.eclipse.jdt.core.prefs | 8 - liberoHR/.settings/org.eclipse.pde.core.prefs | 4 - liberoHR/META-INF/MANIFEST.MF | 13 - liberoHR/build.properties | 2 - liberoHR/build.xml | 39 - liberoMfg/.classpath | 7 - liberoMfg/.project | 28 - .../.settings/org.eclipse.jdt.core.prefs | 8 - .../.settings/org.eclipse.pde.core.prefs | 4 - liberoMfg/META-INF/MANIFEST.MF | 31 - liberoMfg/build.properties | 2 - liberoMfg/build.xml | 39 - liberoMfgZk/.classpath | 7 - liberoMfgZk/.project | 28 - .../.settings/org.eclipse.jdt.core.prefs | 8 - .../.settings/org.eclipse.pde.core.prefs | 4 - liberoMfgZk/META-INF/MANIFEST.MF | 9 - liberoMfgZk/build.properties | 2 - liberoMfgZk/build.xml | 39 - looks/.classpath | 9 - looks/.project | 17 - looks/PLAF_Test.bat | 10 - looks/RUN.bat | 2 - looks/RUN_build.bat | 25 - looks/RUN_build.sh | 18 - looks/Swingset.bat | 11 - looks/adempiereLooks.jnlp | 26 - looks/adempiereLooks_local.jnlp | 26 - looks/build.xml | 148 --- looks/documentation.bat | 5 - looks/javadoc.xml | 15 - looks/overview.html | 50 - looks/packages.txt | 3 - looks/src/.hgignore | 0 looks/swing.properties | 10 - org.adempiere.base-feature/feature.xml | 83 +- .../META-INF/MANIFEST.MF | 4 +- org.adempiere.base/META-INF/MANIFEST.MF | 6 +- org.adempiere.extend/.classpath | 3 +- org.adempiere.install/META-INF/MANIFEST.MF | 4 +- org.adempiere.pipo.handlers/plugin.xml | 2 +- .../META-INF/MANIFEST.MF | 4 +- .../META-INF/MANIFEST.MF | 4 +- org.adempiere.server-feature/feature.xml | 18 +- org.adempiere.server-feature/server.product | 6 +- org.adempiere.server/META-INF/MANIFEST.MF | 8 +- org.adempiere.server/adempiere.html | 4 +- .../bin/org/apache/ecs/ecs.properties | 16 - .../bin/org/apache/ecs/filter/package.html | 2 - .../bin/org/apache/ecs/package.html | 34 - .../bin/org/apache/ecs/xml/package.html | 2 - plugins/TestPlugin/.classpath | 7 - plugins/TestPlugin/.project | 28 - .../.settings/org.eclipse.jdt.core.prefs | 8 - .../.settings/org.eclipse.pde.core.prefs | 4 - plugins/TestPlugin/META-INF/MANIFEST.MF | 11 - plugins/TestPlugin/build.properties | 5 - plugins/TestPlugin/plugin.xml | 18 - .../org/adempiere/testplugin/Activator.java | 19 - .../org/adempiere/testplugin/MyCallout1.java | 18 - serverApps/.classpath | 7 - serverApps/.project | 32 - ...nuitec.jboss.ide.eclipse.xdoclet.run.prefs | 3 - .../.settings/org.eclipse.jdt.core.prefs | 8 - serverApps/.settings/org.eclipse.jdt.ui.prefs | 3 - .../org.eclipse.ltk.core.refactoring.prefs | 3 - sqlj/.classpath | 6 - sqlj/.project | 22 - ...nuitec.jboss.ide.eclipse.xdoclet.run.prefs | 4 - sqlj/.settings/org.eclipse.jdt.core.prefs | 12 - sqlj/.settings/org.eclipse.jdt.ui.prefs | 3 - sqlj/RUN_build.bat | 24 - sqlj/RUN_build.sh | 26 - sqlj/SQL J.epj | 29 - sqlj/build.xml | 76 -- sqlj/compile.bat | 18 - sqlj/oracle/RUN_sqlj.bat | 10 - sqlj/oracle/RUN_sqlj.sh | 10 - sqlj/oracle/create.bat | 16 - sqlj/oracle/create.sh | 15 - sqlj/oracle/createSQLJ.sql | 275 ----- sqlj/postgresql/sqlj.ddr | 237 ---- sqlj/postgresql/sqlj.manifest | 4 - sqlj/src/org/compiere/sqlj/Account.java | 87 -- sqlj/src/org/compiere/sqlj/Adempiere.java | 598 ---------- sqlj/src/org/compiere/sqlj/BPartner.java | 58 - sqlj/src/org/compiere/sqlj/Compiere.java | 503 -------- sqlj/src/org/compiere/sqlj/Currency.java | 299 ----- sqlj/src/org/compiere/sqlj/Invoice.java | 602 ---------- sqlj/src/org/compiere/sqlj/Manufacturing.java | 74 -- sqlj/src/org/compiere/sqlj/Payment.java | 167 --- sqlj/src/org/compiere/sqlj/PaymentTerm.java | 352 ------ sqlj/src/org/compiere/sqlj/Product.java | 682 ----------- tools/.classpath | 1 - tools/.project | 36 - ...nuitec.jboss.ide.eclipse.xdoclet.run.prefs | 3 - tools/.settings/org.eclipse.jdt.core.prefs | 7 - tools/.settings/org.eclipse.jdt.ui.prefs | 3 - .../org.eclipse.wst.common.component | 6 - ....eclipse.wst.common.project.facet.core.xml | 7 - .../lib/ant4eclipse/macros/a4e-jdt-macros.xml | 195 ---- .../lib/ant4eclipse/macros/a4e-pde-macros.xml | 852 -------------- .../macros/a4e-platform-macros.xml | 29 - webstart/.project | 17 - webstart/build.properties | 1 - webstart/compile.org.adempiere.webstart.xml | 8 - webstart/feature.xml | 202 ---- 160 files changed, 56 insertions(+), 15013 deletions(-) delete mode 100644 equinox-target/.project delete mode 100644 equinox-target/build.xml delete mode 100644 equinox-target/configuration/config.ini delete mode 100644 equinox-target/equinox.target delete mode 100644 equinox-target/launchconfig/adempiere_equinox_swing.launch delete mode 100644 equinox-target/launchconfig/adempiere_equinox_web.launch delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/META-INF/ECLIPSEF.RSA delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/META-INF/ECLIPSEF.SF delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/META-INF/MANIFEST.MF delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/META-INF/eclipse.inf delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/about.html delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/about_files/LICENSE.dom.html delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/about_files/LICENSE.sax.txt delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/about_files/NOTICE delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/about_files/asl-v20.txt delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/ant delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/ant.bat delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/ant.cmd delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/antRun delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/antRun.bat delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/antRun.pl delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/antenv.cmd delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/complete-ant-cmd.pl delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/envset.cmd delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/lcp.bat delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/runant.pl delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/runant.py delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/runrc.cmd delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/changelog.xsl delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/checkstyle/checkstyle-frames.xsl delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/checkstyle/checkstyle-text.xsl delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/checkstyle/checkstyle-xdoc.xsl delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/coverage-frames.xsl delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/jdepend-frames.xsl delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/jdepend.xsl delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/junit-frames-xalan1.xsl delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/junit-frames.xsl delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/junit-noframes.xsl delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/log.xsl delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/maudit-frames.xsl delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/mmetrics-frames.xsl delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/tagdiff.xsl delete mode 100644 equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/plugin.properties delete mode 100644 equinox-target/spring/.directory delete mode 100644 equinox-target/webapp/configuration/config.ini delete mode 100644 equinox-target/webstart/adempiere-equinox.jnlp delete mode 100644 launch/.project delete mode 100644 launch/Adempiere.ico delete mode 100644 launch/Adempiere.xml delete mode 100644 launch/Release/Adempiere.exe delete mode 100644 launch/readme.txt delete mode 100644 liberoHR/.classpath delete mode 100644 liberoHR/.project delete mode 100644 liberoHR/.settings/org.eclipse.jdt.core.prefs delete mode 100644 liberoHR/.settings/org.eclipse.pde.core.prefs delete mode 100644 liberoHR/META-INF/MANIFEST.MF delete mode 100644 liberoHR/build.properties delete mode 100644 liberoHR/build.xml delete mode 100644 liberoMfg/.classpath delete mode 100644 liberoMfg/.project delete mode 100644 liberoMfg/.settings/org.eclipse.jdt.core.prefs delete mode 100644 liberoMfg/.settings/org.eclipse.pde.core.prefs delete mode 100644 liberoMfg/META-INF/MANIFEST.MF delete mode 100644 liberoMfg/build.properties delete mode 100644 liberoMfg/build.xml delete mode 100644 liberoMfgZk/.classpath delete mode 100644 liberoMfgZk/.project delete mode 100644 liberoMfgZk/.settings/org.eclipse.jdt.core.prefs delete mode 100644 liberoMfgZk/.settings/org.eclipse.pde.core.prefs delete mode 100644 liberoMfgZk/META-INF/MANIFEST.MF delete mode 100644 liberoMfgZk/build.properties delete mode 100644 liberoMfgZk/build.xml delete mode 100644 looks/.classpath delete mode 100644 looks/.project delete mode 100644 looks/PLAF_Test.bat delete mode 100644 looks/RUN.bat delete mode 100644 looks/RUN_build.bat delete mode 100644 looks/RUN_build.sh delete mode 100644 looks/Swingset.bat delete mode 100644 looks/adempiereLooks.jnlp delete mode 100644 looks/adempiereLooks_local.jnlp delete mode 100644 looks/build.xml delete mode 100644 looks/documentation.bat delete mode 100644 looks/javadoc.xml delete mode 100644 looks/overview.html delete mode 100644 looks/packages.txt delete mode 100644 looks/src/.hgignore delete mode 100644 looks/swing.properties delete mode 100644 org.apache.ecs/bin/org/apache/ecs/ecs.properties delete mode 100644 org.apache.ecs/bin/org/apache/ecs/filter/package.html delete mode 100644 org.apache.ecs/bin/org/apache/ecs/package.html delete mode 100644 org.apache.ecs/bin/org/apache/ecs/xml/package.html delete mode 100644 plugins/TestPlugin/.classpath delete mode 100644 plugins/TestPlugin/.project delete mode 100644 plugins/TestPlugin/.settings/org.eclipse.jdt.core.prefs delete mode 100644 plugins/TestPlugin/.settings/org.eclipse.pde.core.prefs delete mode 100644 plugins/TestPlugin/META-INF/MANIFEST.MF delete mode 100644 plugins/TestPlugin/build.properties delete mode 100644 plugins/TestPlugin/plugin.xml delete mode 100644 plugins/TestPlugin/src/org/adempiere/testplugin/Activator.java delete mode 100644 plugins/TestPlugin/src/org/adempiere/testplugin/MyCallout1.java delete mode 100644 serverApps/.classpath delete mode 100644 serverApps/.project delete mode 100644 serverApps/.settings/com.genuitec.jboss.ide.eclipse.xdoclet.run.prefs delete mode 100644 serverApps/.settings/org.eclipse.jdt.core.prefs delete mode 100644 serverApps/.settings/org.eclipse.jdt.ui.prefs delete mode 100644 serverApps/.settings/org.eclipse.ltk.core.refactoring.prefs delete mode 100644 sqlj/.classpath delete mode 100644 sqlj/.project delete mode 100644 sqlj/.settings/com.genuitec.jboss.ide.eclipse.xdoclet.run.prefs delete mode 100644 sqlj/.settings/org.eclipse.jdt.core.prefs delete mode 100644 sqlj/.settings/org.eclipse.jdt.ui.prefs delete mode 100644 sqlj/RUN_build.bat delete mode 100755 sqlj/RUN_build.sh delete mode 100644 sqlj/SQL J.epj delete mode 100644 sqlj/build.xml delete mode 100644 sqlj/compile.bat delete mode 100644 sqlj/oracle/RUN_sqlj.bat delete mode 100644 sqlj/oracle/RUN_sqlj.sh delete mode 100644 sqlj/oracle/create.bat delete mode 100644 sqlj/oracle/create.sh delete mode 100644 sqlj/oracle/createSQLJ.sql delete mode 100755 sqlj/postgresql/sqlj.ddr delete mode 100755 sqlj/postgresql/sqlj.manifest delete mode 100644 sqlj/src/org/compiere/sqlj/Account.java delete mode 100644 sqlj/src/org/compiere/sqlj/Adempiere.java delete mode 100644 sqlj/src/org/compiere/sqlj/BPartner.java delete mode 100755 sqlj/src/org/compiere/sqlj/Compiere.java delete mode 100644 sqlj/src/org/compiere/sqlj/Currency.java delete mode 100644 sqlj/src/org/compiere/sqlj/Invoice.java delete mode 100644 sqlj/src/org/compiere/sqlj/Manufacturing.java delete mode 100644 sqlj/src/org/compiere/sqlj/Payment.java delete mode 100644 sqlj/src/org/compiere/sqlj/PaymentTerm.java delete mode 100644 sqlj/src/org/compiere/sqlj/Product.java delete mode 100644 tools/.project delete mode 100644 tools/.settings/com.genuitec.jboss.ide.eclipse.xdoclet.run.prefs delete mode 100644 tools/.settings/org.eclipse.jdt.core.prefs delete mode 100644 tools/.settings/org.eclipse.jdt.ui.prefs delete mode 100644 tools/.settings/org.eclipse.wst.common.component delete mode 100644 tools/.settings/org.eclipse.wst.common.project.facet.core.xml delete mode 100644 tools/lib/ant4eclipse/macros/a4e-jdt-macros.xml delete mode 100644 tools/lib/ant4eclipse/macros/a4e-pde-macros.xml delete mode 100644 tools/lib/ant4eclipse/macros/a4e-platform-macros.xml delete mode 100644 webstart/.project delete mode 100644 webstart/build.properties delete mode 100644 webstart/compile.org.adempiere.webstart.xml delete mode 100644 webstart/feature.xml diff --git a/equinox-target/.project b/equinox-target/.project deleted file mode 100644 index 08165072a3..0000000000 --- a/equinox-target/.project +++ /dev/null @@ -1,11 +0,0 @@ - - - equinox-target - - - - - - - - diff --git a/equinox-target/build.xml b/equinox-target/build.xml deleted file mode 100644 index 64a81d0478..0000000000 --- a/equinox-target/build.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/equinox-target/configuration/config.ini b/equinox-target/configuration/config.ini deleted file mode 100644 index 7b5c97a7df..0000000000 --- a/equinox-target/configuration/config.ini +++ /dev/null @@ -1,6 +0,0 @@ -osgi.bundles=org.eclipse.equinox.common@2:start,\ -org.eclipse.update.configurator@3:start,\ -org.eclipse.core.runtime@4:start,\ -plugins/org.adempiere.apps.JasperReportsClient@start - - diff --git a/equinox-target/equinox.target b/equinox-target/equinox.target deleted file mode 100644 index 6b4c314199..0000000000 --- a/equinox-target/equinox.target +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - --Dosgi.compatibility.bootdelegation=true - - diff --git a/equinox-target/launchconfig/adempiere_equinox_swing.launch b/equinox-target/launchconfig/adempiere_equinox_swing.launch deleted file mode 100644 index 8cfa962215..0000000000 --- a/equinox-target/launchconfig/adempiere_equinox_swing.launch +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/equinox-target/launchconfig/adempiere_equinox_web.launch b/equinox-target/launchconfig/adempiere_equinox_web.launch deleted file mode 100644 index 543a703b84..0000000000 --- a/equinox-target/launchconfig/adempiere_equinox_web.launch +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/META-INF/ECLIPSEF.RSA b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/META-INF/ECLIPSEF.RSA deleted file mode 100644 index 47fe7785f9487d1a82e1a648ee8070fb184827e6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5639 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 - - - -About - - -

About This Content

- -

July 14, 2008

-

License

- -

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available -at http://www.eclipse.org/legal/epl-v10.html. -For purposes of the EPL, "Program" will mean the Content.

- -

If you did not receive this Content directly from the Eclipse Foundation, the Content is -being redistributed by another party ("Redistributor") and different terms and conditions may -apply to your use of any object code in the Content. Check the Redistributor's license that was -provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise -indicated below, the terms and conditions of the EPL still apply to any source code in the Content -and such source code may be obtained at http://www.eclipse.org.

- -

Third Party Content

- -

The Content includes items that have been sourced from third parties as set out below. If you -did not receive this Content directly from the Eclipse Foundation, the following is provided -for informational purposes only, and you should look to the Redistributor’s license for -terms and conditions of use.

- -

Ant 1.7.1

-

The plug-in includes software developed by The Apache Software Foundation as part of the Ant project.

- -

The Ant binary code in ant.jar and the scripts ant, ant.bat, ant.cmd, antenv.cmd, antRun, antRun.bat, antRun.pl, complete-ant-cmd.pl, envset.cmd, lcp.bat, runant.pl, runant.py and runrc.cmd are included with the plug-in with no modifications. -The Ant source code is located in the zip files named ant-*src.zip.

- -

Your use of the Ant code and the scripts is subject to the terms and conditions of the Apache License, Version 2.0. A copy of the license is contained -in the file asl-v20.txt and is also available at http://www.apache.org/licenses/LICENSE-2.0.html. - -

The names "Ant" and "Apache Software Foundation" must not be used to endorse or promote products derived from this -software without prior written permission. For written permission, please contact apache@apache.org.

- -

The Apache attribution NOTICE file is included with the Content in accordance with 4d of the Apache License, Version 2.0.

- -

Ant includes the following software:

- -
-

DOM

-

DOM is developed by the World Wide Web Consortium. Your use of DOM is subject to the terms and conditions of the license found in the - file LICENSE.dom.html which is included with this plug-in and can also be found at - http://www.w3.org/Consortium/Legal/copyright-software-19980720.

- -

SAX

- -

SAX is developed by the SAX project (http://www.saxproject.org). Your use of SAX is subject to the - terms and conditions of the license found in the file LICENSE.sax.txt which is included with this plug-in.

-
- - \ No newline at end of file diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/about_files/LICENSE.dom.html b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/about_files/LICENSE.dom.html deleted file mode 100644 index 97e7898475..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/about_files/LICENSE.dom.html +++ /dev/null @@ -1,82 +0,0 @@ - - - -License - - - -

This license came from:
-http://www.w3.org/Consortium/Legal/copyright-software-19980720

- -

-W3C® SOFTWARE NOTICE AND LICENSE
-Copyright © 1994-2001 World Wide Web Consortium, (Massachusetts Institute of Technology, -Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved.
-http://www.w3.org/Consortium/Legal/

- -

-This W3C work (including software, documents, or other related
-items) is being provided by the copyright holders under the
-following license. By obtaining, using and/or copying this work,
-you (the licensee) agree that you have read, understood, and will
-comply with the following terms and conditions:
-Permission to use, copy, modify, and distribute this software
-and its documentation, with or without modification, for any
-purpose and without fee or royalty is hereby granted, provided that
-you include the following on ALL copies of the software and
-documentation or portions thereof, including modifications, that
-you make:

- -

-The full text of this NOTICE in a location viewable to users of
-the redistributed or derivative work.

- -

-Any pre-existing intellectual property disclaimers, notices, or
-terms and conditions. If none exist, a short notice of the
-following form (hypertext is preferred, text is permitted) should
-be used within the body of any redistributed or derivative code:
-"Copyright © [$date-of-software] World Wide Web Consortium, (Massachusetts Institute of
-Technology, Institut National de
-Recherche en Informatique et en Automatique, Keio University). All Rights Reserved.
-http://www.w3.org/Consortium/Legal/"

- -

-Notice of any changes or modifications to the W3C files,
-including the date changes were made. (We recommend you provide
-URIs to the location from which the code is derived.)

- -

-THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND
-COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF
-MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE
-USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD
-PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
-COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT,
-SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE
-SOFTWARE OR DOCUMENTATION.

- -

-The name and trademarks of copyright holders may NOT be used in
-advertising or publicity pertaining to the software without
-specific, written prior permission. Title to copyright in this
-software and any associated documentation will at all times remain
-with copyright holders.

- -

-____________________________________
-This formulation of W3C's notice and license became active on
-August 14 1998 so as to improve compatibility with GPL. This
-version ensures that W3C software licensing terms are no more
-restrictive than GPL and consequently W3C software may be
-distributed in GPL packages. See the older formulation for the
-policy prior to this date. Please see our Copyright FAQ for common
-questions about using materials from
-our site, including specific terms and conditions for packages like
-libwww, Amaya, and Jigsaw.
-Other questions about this notice can be
-directed to site-policy@w3.org.

- - - \ No newline at end of file diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/about_files/LICENSE.sax.txt b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/about_files/LICENSE.sax.txt deleted file mode 100644 index d46b3dce08..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/about_files/LICENSE.sax.txt +++ /dev/null @@ -1,20 +0,0 @@ -This license came from: http://www.megginson.com/SAX/copying.html - However please note future versions of SAX may be covered - under http://saxproject.org/?selected=pd - - -This page is now out of date -- see the new SAX site at -http://www.saxproject.org/ for more up-to-date -releases and other information. Please change your bookmarks. - - -SAX2 is Free! - -I hereby abandon any property rights to SAX 2.0 (the Simple API for -XML), and release all of the SAX 2.0 source code, compiled code, and -documentation contained in this distribution into the Public Domain. -SAX comes with NO WARRANTY or guarantee of fitness for any -purpose. - -David Megginson, david@megginson.com -2000-05-05 diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/about_files/NOTICE b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/about_files/NOTICE deleted file mode 100644 index 4c88cc6659..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/about_files/NOTICE +++ /dev/null @@ -1,26 +0,0 @@ - ========================================================================= - == NOTICE file corresponding to the section 4 d of == - == the Apache License, Version 2.0, == - == in this case for the Apache Ant distribution. == - ========================================================================= - - Apache Ant - Copyright 1999-2008 The Apache Software Foundation - - This product includes software developed by - The Apache Software Foundation (http://www.apache.org/). - - This product includes also software developed by : - - the W3C consortium (http://www.w3c.org) , - - the SAX project (http://www.saxproject.org) - - The task is based on code Copyright (c) 2002, Landmark - Graphics Corp that has been kindly donated to the Apache Software - Foundation. - - Portions of this software were originally based on the following: - - software copyright (c) 1999, IBM Corporation., http://www.ibm.com. - - software copyright (c) 1999, Sun Microsystems., http://www.sun.com. - - voluntary contributions made by Paul Eng on behalf of the - Apache Software Foundation that were originally developed at iClick, Inc., - software copyright (c) 1999. diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/about_files/asl-v20.txt b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/about_files/asl-v20.txt deleted file mode 100644 index d645695673..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/about_files/asl-v20.txt +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/ant b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/ant deleted file mode 100644 index 2e60839241..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/ant +++ /dev/null @@ -1,326 +0,0 @@ -#! /bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Extract launch and ant arguments, (see details below). -ant_exec_args= -no_config=false -use_jikes_default=false -ant_exec_debug=false -show_help=false -for arg in "$@" ; do - if [ "$arg" = "--noconfig" ] ; then - no_config=true - elif [ "$arg" = "--usejikes" ] ; then - use_jikes_default=true - elif [ "$arg" = "--execdebug" ] ; then - ant_exec_debug=true - elif [ my"$arg" = my"--h" -o my"$arg" = my"--help" ] ; then - show_help=true - ant_exec_args="$ant_exec_args -h" - else - if [ my"$arg" = my"-h" -o my"$arg" = my"-help" ] ; then - show_help=true - fi - ant_exec_args="$ant_exec_args \"$arg\"" - fi -done - -# Source/default ant configuration -if $no_config ; then - rpm_mode=false - usejikes=$use_jikes_default -else - # load system-wide ant configuration (ONLY if ANT_HOME has NOT been set) - if [ -z "$ANT_HOME" -o "$ANT_HOME" = "/usr/share/ant" ]; then - if [ -f "/etc/ant.conf" ] ; then - . /etc/ant.conf - fi - fi - - # load user ant configuration - if [ -f "$HOME/.ant/ant.conf" ] ; then - . $HOME/.ant/ant.conf - fi - if [ -f "$HOME/.antrc" ] ; then - . "$HOME/.antrc" - fi - - # provide default configuration values - if [ -z "$rpm_mode" ] ; then - rpm_mode=false - fi - if [ -z "$usejikes" ] ; then - usejikes=$use_jikes_default - fi -fi - -# Setup Java environment in rpm mode -if $rpm_mode ; then - if [ -f /usr/share/java-utils/java-functions ] ; then - . /usr/share/java-utils/java-functions - set_jvm - set_javacmd - fi -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -case "`uname`" in - CYGWIN*) cygwin=true ;; - Darwin*) darwin=true - if [ -z "$JAVA_HOME" ] ; then - JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home - fi - ;; -esac - -if [ -z "$ANT_HOME" -o ! -d "$ANT_HOME" ] ; then - ## resolve links - $0 may be a link to ant's home - PRG="$0" - progname=`basename "$0"` - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi - done - - ANT_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - ANT_HOME=`cd "$ANT_HOME" > /dev/null && pwd` -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$ANT_HOME" ] && - ANT_HOME=`cygpath --unix "$ANT_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` -fi - -# set ANT_LIB location -ANT_LIB="${ANT_HOME}/lib" - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - JAVACMD="$JAVA_HOME/jre/sh/java" - elif [ -x "$JAVA_HOME/jre/bin/java" ] ; then - JAVACMD="$JAVA_HOME/jre/bin/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD=`which java 2> /dev/null ` - if [ -z "$JAVACMD" ] ; then - JAVACMD=java - fi - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." - echo " We cannot execute $JAVACMD" - exit 1 -fi - -# Build local classpath using just the launcher in non-rpm mode or -# use the Jpackage helper in rpm mode with basic and default jars -# specified in the ant.conf configuration. Because the launcher is -# used, libraries linked in ANT_HOME/lib will also be included, but this -# is discouraged as it is not java-version safe. A user should -# request optional jars and their dependencies via the OPT_JAR_LIST -# variable -if $rpm_mode && [ -x /usr/bin/build-classpath ] ; then - LOCALCLASSPATH="$(/usr/bin/build-classpath ant ant-launcher jaxp_parser_impl xml-commons-apis)" - - # If no optional jars have been specified then build the default list - if [ -z "$OPT_JAR_LIST" ] ; then - for file in /etc/ant.d/*; do - if [ -f "$file" ]; then - case "$file" in - *~) ;; - *#*) ;; - *.rpmsave) ;; - *.rpmnew) ;; - *) - for dep in `cat "$file"`; do - case "$OPT_JAR_LIST" in - *"$dep"*) ;; - *) OPT_JAR_LIST="$OPT_JAR_LIST${OPT_JAR_LIST:+ }$dep" - esac - done - esac - fi - done - fi - - # If the user requested to try to add some other jars to the classpath - if [ -n "$OPT_JAR_LIST" ] ; then - _OPTCLASSPATH="$(/usr/bin/build-classpath $OPT_JAR_LIST 2> /dev/null)" - if [ -n "$_OPTCLASSPATH" ] ; then - LOCALCLASSPATH="$LOCALCLASSPATH:$_OPTCLASSPATH" - fi - fi - - # Explicitly add javac path to classpath, assume JAVA_HOME set - # properly in rpm mode - if [ -f "$JAVA_HOME/lib/tools.jar" ] ; then - LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/tools.jar" - fi - if [ -f "$JAVA_HOME/lib/classes.zip" ] ; then - LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/classes.zip" - fi - - # if CLASSPATH_OVERRIDE env var is set, LOCALCLASSPATH will be - # user CLASSPATH first and ant-found jars after. - # In that case, the user CLASSPATH will override ant-found jars - # - # if CLASSPATH_OVERRIDE is not set, we'll have the normal behaviour - # with ant-found jars first and user CLASSPATH after - if [ -n "$CLASSPATH" ] ; then - # merge local and specified classpath - if [ -z "$LOCALCLASSPATH" ] ; then - LOCALCLASSPATH="$CLASSPATH" - elif [ -n "$CLASSPATH_OVERRIDE" ] ; then - LOCALCLASSPATH="$CLASSPATH:$LOCALCLASSPATH" - else - LOCALCLASSPATH="$LOCALCLASSPATH:$CLASSPATH" - fi - - # remove class path from launcher -cp option - CLASSPATH="" - fi -else - # not using rpm_mode; use launcher to determine classpaths - if [ -z "$LOCALCLASSPATH" ] ; then - LOCALCLASSPATH=$ANT_LIB/ant-launcher.jar - else - LOCALCLASSPATH=$ANT_LIB/ant-launcher.jar:$LOCALCLASSPATH - fi -fi - -if [ -n "$JAVA_HOME" ] ; then - # OSX hack to make Ant work with jikes - if $darwin ; then - OSXHACK="${JAVA_HOME}/../Classes" - if [ -d "${OSXHACK}" ] ; then - for i in "${OSXHACK}"/*.jar - do - JIKESPATH="$JIKESPATH:$i" - done - fi - fi -fi - -# Allow Jikes support (off by default) -if $usejikes; then - ANT_OPTS="$ANT_OPTS -Dbuild.compiler=jikes" -fi - -# For Cygwin, switch paths to appropriate format before running java -# For PATHs convert to unix format first, then to windows format to ensure -# both formats are supported. Probably this will fail on directories with ; -# in the name in the path. Let's assume that paths containing ; are more -# rare than windows style paths on cygwin. -if $cygwin; then - if [ "$OS" = "Windows_NT" ] && cygpath -m .>/dev/null 2>/dev/null ; then - format=mixed - else - format=windows - fi - ANT_HOME=`cygpath --$format "$ANT_HOME"` - ANT_LIB=`cygpath --$format "$ANT_LIB"` - JAVA_HOME=`cygpath --$format "$JAVA_HOME"` - LCP_TEMP=`cygpath --path --unix "$LOCALCLASSPATH"` - LOCALCLASSPATH=`cygpath --path --$format "$LCP_TEMP"` - if [ -n "$CLASSPATH" ] ; then - CP_TEMP=`cygpath --path --unix "$CLASSPATH"` - CLASSPATH=`cygpath --path --$format "$CP_TEMP"` - fi - CYGHOME=`cygpath --$format "$HOME"` -fi - -# Show script help if requested -if $show_help ; then - echo $0 '[script options] [options] [target [target2 [target3] ..]]' - echo 'Script Options:' - echo ' --help, --h print this message and ant help' - echo ' --noconfig suppress sourcing of /etc/ant.conf,' - echo ' $HOME/.ant/ant.conf, and $HOME/.antrc' - echo ' configuration files' - echo ' --usejikes enable use of jikes by default, unless' - echo ' set explicitly in configuration files' - echo ' --execdebug print ant exec line generated by this' - echo ' launch script' - echo ' ' -fi -# add a second backslash to variables terminated by a backslash under cygwin -if $cygwin; then - case "$ANT_HOME" in - *\\ ) - ANT_HOME="$ANT_HOME\\" - ;; - esac - case "$CYGHOME" in - *\\ ) - CYGHOME="$CYGHOME\\" - ;; - esac - case "$JIKESPATH" in - *\\ ) - JIKESPATH="$JIKESPATH\\" - ;; - esac - case "$LOCALCLASSPATH" in - *\\ ) - LOCALCLASSPATH="$LOCALCLASSPATH\\" - ;; - esac - case "$CLASSPATH" in - *\\ ) - CLASSPATH="$CLASSPATH\\" - ;; - esac -fi -# Execute ant using eval/exec to preserve spaces in paths, -# java options, and ant args -ant_sys_opts= -if [ -n "$CYGHOME" ]; then - if [ -n "$JIKESPATH" ]; then - ant_sys_opts="-Djikes.class.path=\"$JIKESPATH\" -Dcygwin.user.home=\"$CYGHOME\"" - else - ant_sys_opts="-Dcygwin.user.home=\"$CYGHOME\"" - fi -else - if [ -n "$JIKESPATH" ]; then - ant_sys_opts="-Djikes.class.path=\"$JIKESPATH\"" - fi -fi -ant_exec_command="exec \"$JAVACMD\" $ANT_OPTS -classpath \"$LOCALCLASSPATH\" -Dant.home=\"$ANT_HOME\" -Dant.library.dir=\"$ANT_LIB\" $ant_sys_opts org.apache.tools.ant.launch.Launcher $ANT_ARGS -cp \"$CLASSPATH\" $ant_exec_args" -if $ant_exec_debug ; then - echo $ant_exec_command -fi -eval $ant_exec_command diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/ant.bat b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/ant.bat deleted file mode 100644 index 6d57c81ea5..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/ant.bat +++ /dev/null @@ -1,226 +0,0 @@ -@echo off - -REM Licensed to the Apache Software Foundation (ASF) under one or more -REM contributor license agreements. See the NOTICE file distributed with -REM this work for additional information regarding copyright ownership. -REM The ASF licenses this file to You under the Apache License, Version 2.0 -REM (the "License"); you may not use this file except in compliance with -REM the License. You may obtain a copy of the License at -REM -REM http://www.apache.org/licenses/LICENSE-2.0 -REM -REM Unless required by applicable law or agreed to in writing, software -REM distributed under the License is distributed on an "AS IS" BASIS, -REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -REM See the License for the specific language governing permissions and -REM limitations under the License. - -REM This is an inordinately troublesome piece of code, particularly because it -REM tries to work on both Win9x and WinNT-based systems. If we could abandon '9x -REM support, things would be much easier, but sadly, it is not yet time. -REM Be cautious about editing this, and only add WinNT specific stuff in code that -REM only runs on WinNT. - -if "%HOME%"=="" goto homeDrivePathPre -if exist "%HOME%\antrc_pre.bat" call "%HOME%\antrc_pre.bat" - -:homeDrivePathPre -if "%HOMEDRIVE%%HOMEPATH%"=="" goto userProfilePre -if "%HOMEDRIVE%%HOMEPATH%"=="%HOME%" goto userProfilePre -if exist "%HOMEDRIVE%%HOMEPATH%\antrc_pre.bat" call "%HOMEDRIVE%%HOMEPATH%\antrc_pre.bat" - -:userProfilePre -if "%USERPROFILE%"=="" goto alpha -if "%USERPROFILE%"=="%HOME%" goto alpha -if "%USERPROFILE%"=="%HOMEDRIVE%%HOMEPATH%" goto alpha -if exist "%USERPROFILE%\antrc_pre.bat" call "%USERPROFILE%\antrc_pre.bat" - -:alpha - -if "%OS%"=="Windows_NT" @setlocal -if "%OS%"=="WINNT" @setlocal - -if "%ANT_HOME%"=="" goto setDefaultAntHome - -:stripAntHome -if not _%ANT_HOME:~-1%==_\ goto checkClasspath -set ANT_HOME=%ANT_HOME:~0,-1% -goto stripAntHome - -:setDefaultAntHome -rem %~dp0 is expanded pathname of the current script under NT -set ANT_HOME=%~dp0.. - -:checkClasspath -set _USE_CLASSPATH=yes -rem CLASSPATH must not be used if it is equal to "" -if "%CLASSPATH%"=="""" set _USE_CLASSPATH=no -if "%CLASSPATH%"=="" set _USE_CLASSPATH=no - -rem Slurp the command line arguments. This loop allows for an unlimited number -rem of arguments (up to the command line limit, anyway). -set ANT_CMD_LINE_ARGS=%1 -if ""%1""=="""" goto doneStart -shift -:setupArgs -if ""%1""=="""" goto doneStart -if ""%1""==""-noclasspath"" goto clearclasspath -set ANT_CMD_LINE_ARGS=%ANT_CMD_LINE_ARGS% %1 -shift -goto setupArgs - -rem here is there is a -noclasspath in the options -:clearclasspath -set _USE_CLASSPATH=no -shift -goto setupArgs - -rem This label provides a place for the argument list loop to break out -rem and for NT handling to skip to. - -:doneStart - -if _USE_CLASSPATH==no goto findAntHome - -:stripClasspath -if not _%CLASSPATH:~-1%==_\ goto findAntHome -set CLASSPATH=%CLASSPATH:~0,-1% -goto stripClasspath - -:findAntHome -rem find ANT_HOME if it does not exist due to either an invalid value passed -rem by the user or the %0 problem on Windows 9x -if exist "%ANT_HOME%\lib\ant.jar" goto checkJava - -rem check for ant in Program Files -if not exist "%ProgramFiles%\ant" goto checkSystemDrive -set ANT_HOME=%ProgramFiles%\ant -goto checkJava - -:checkSystemDrive -rem check for ant in root directory of system drive -if not exist %SystemDrive%\ant\lib\ant.jar goto checkCDrive -set ANT_HOME=%SystemDrive%\ant -goto checkJava - -:checkCDrive -rem check for ant in C:\ant for Win9X users -if not exist C:\ant\lib\ant.jar goto noAntHome -set ANT_HOME=C:\ant -goto checkJava - -:noAntHome -echo ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME. -goto end - -:checkJava -set _JAVACMD=%JAVACMD% - -if "%JAVA_HOME%" == "" goto noJavaHome -if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome -if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe -goto checkJikes - -:noJavaHome -if "%_JAVACMD%" == "" set _JAVACMD=java.exe - -:checkJikes -if not "%JIKESPATH%"=="" goto runAntWithJikes - -:runAnt -if "%_USE_CLASSPATH%"=="no" goto runAntNoClasspath -:runAntWithClasspath -"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% -cp "%CLASSPATH%" %ANT_CMD_LINE_ARGS% -rem Check the error code of the Ant build -if not "%OS%"=="Windows_NT" goto onError -set ANT_ERROR=%ERRORLEVEL% -goto end - -:runAntNoClasspath -"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %ANT_CMD_LINE_ARGS% -rem Check the error code of the Ant build -if not "%OS%"=="Windows_NT" goto onError -set ANT_ERROR=%ERRORLEVEL% -goto end - -:runAntWithJikes - -if not _%JIKESPATH:~-1%==_\ goto checkJikesAndClasspath -set JIKESPATH=%JIKESPATH:~0,-1% -goto runAntWithJikes - -:checkJikesAndClasspath - -if "%_USE_CLASSPATH%"=="no" goto runAntWithJikesNoClasspath - -:runAntWithJikesAndClasspath -"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" "-Djikes.class.path=%JIKESPATH%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% -cp "%CLASSPATH%" %ANT_CMD_LINE_ARGS% -rem Check the error code of the Ant build -if not "%OS%"=="Windows_NT" goto onError -set ANT_ERROR=%ERRORLEVEL% -goto end - -:runAntWithJikesNoClasspath -"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" "-Djikes.class.path=%JIKESPATH%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %ANT_CMD_LINE_ARGS% -rem Check the error code of the Ant build -if not "%OS%"=="Windows_NT" goto onError -set ANT_ERROR=%ERRORLEVEL% -goto end - -:onError -rem Windows 9x way of checking the error code. It matches via brute force. -for %%i in (1 10 100) do set err%%i= -for %%i in (0 1 2) do if errorlevel %%i00 set err100=%%i -if %err100%==2 goto onError200 -if %err100%==0 set err100= -for %%i in (0 1 2 3 4 5 6 7 8 9) do if errorlevel %err100%%%i0 set err10=%%i -if "%err100%"=="" if %err10%==0 set err10= -:onError1 -for %%i in (0 1 2 3 4 5 6 7 8 9) do if errorlevel %err100%%err10%%%i set err1=%%i -goto onErrorEnd -:onError200 -for %%i in (0 1 2 3 4 5) do if errorlevel 2%%i0 set err10=%%i -if err10==5 for %%i in (0 1 2 3 4 5) do if errorlevel 25%%i set err1=%%i -if not err10==5 goto onError1 -:onErrorEnd -set ANT_ERROR=%err100%%err10%%err1% -for %%i in (1 10 100) do set err%%i= - -:end -rem bug ID 32069: resetting an undefined env variable changes the errorlevel. -if not "%_JAVACMD%"=="" set _JAVACMD= -if not "%_ANT_CMD_LINE_ARGS%"=="" set ANT_CMD_LINE_ARGS= - -if "%ANT_ERROR%"=="0" goto mainEnd - -rem Set the return code if we are not in NT. We can only set -rem a value of 1, but it's better than nothing. -if not "%OS%"=="Windows_NT" echo 1 > nul | choice /n /c:1 - -rem Set the ERRORLEVEL if we are running NT. -if "%OS%"=="Windows_NT" color 00 - -goto omega - -:mainEnd - -rem If there were no errors, we run the post script. -if "%OS%"=="Windows_NT" @endlocal -if "%OS%"=="WINNT" @endlocal - -if "%HOME%"=="" goto homeDrivePathPost -if exist "%HOME%\antrc_post.bat" call "%HOME%\antrc_post.bat" - -:homeDrivePathPost -if "%HOMEDRIVE%%HOMEPATH%"=="" goto userProfilePost -if "%HOMEDRIVE%%HOMEPATH%"=="%HOME%" goto userProfilePost -if exist "%HOMEDRIVE%%HOMEPATH%\antrc_post.bat" call "%HOMEDRIVE%%HOMEPATH%\antrc_post.bat" - -:userProfilePost -if "%USERPROFILE%"=="" goto omega -if "%USERPROFILE%"=="%HOME%" goto omega -if "%USERPROFILE%"=="%HOMEDRIVE%%HOMEPATH%" goto omega -if exist "%USERPROFILE%\antrc_post.bat" call "%USERPROFILE%\antrc_post.bat" - -:omega - diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/ant.cmd b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/ant.cmd deleted file mode 100644 index d221a40959..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/ant.cmd +++ /dev/null @@ -1,93 +0,0 @@ -/* - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - Run ant -*/ - -'@echo off' -parse arg mode envarg '::' antarg - -if mode\='.' & mode\='..' & mode\='/' then do - envarg = mode envarg - mode = '' -end - -if antarg = '' then do - antarg = envarg - envarg = '' -end - -x = setlocal() - -env="OS2ENVIRONMENT" -antenv = _getenv_('antenv') -if _testenv_() = 0 then interpret 'call "' || antenv || '"' '"' || envarg || '"' - -if mode = '' then mode = _getenv_('ANT_MODE' '..') -if mode \= '/' then do - runrc = _getenv_('runrc') - antrc = _getenv_('antrc' 'antrc.cmd') - if mode = '..' then mode = '-r' - else mode = '' - interpret 'call "' || runrc || '"' antrc '"' || mode || '"' -end - -if _testenv_() = 0 then do - say 'Ant environment is not set properly' - x = endlocal() - exit 16 -end - -settings = '-Dant.home=' || ANT_HOME '-Djava.home=' || JAVA_HOME - -java = _getenv_('javacmd' 'java') -opts = value('ANT_OPTS',,env) -args = value('ANT_ARGS',,env) -lcp = value('LOCALCLASSPATH',,env) -cp = value('CLASSPATH',,env) -if value('ANT_USE_CP',,env) \= '' then do - if lcp \= '' & right(lcp, 1) \= ';' then lcp = lcp || ';' - lcp = lcp || cp - 'SET CLASSPATH=' -end -if lcp\='' then lcp = '-classpath' lcp - -cmd = java opts lcp '-jar' ANT_HOME ||'\lib\ant-launcher.jar' settings args antarg -launcher = stream(ANT_HOME ||'\lib\ant-launcher.jar', 'C', 'query exists') -if launcher = '' then entry = 'org.apache.tools.ant.Main' -else entry = 'org.apache.tools.ant.launch.Launcher' -java opts lcp entry settings args antarg - -x = endlocal() - -return rc - -_testenv_: procedure expose env ANT_HOME JAVA_HOME -ANT_HOME = value('ANT_HOME',,env) -if ANT_HOME = '' then return 0 -JAVA_HOME = value('JAVA_HOME',,env) -if JAVA_HOME = '' then return 0 -cp = translate(value('CLASSPATH',,env)) -if pos(translate(ANT_HOME), cp) = 0 then return 0 -if pos(translate(JAVA_HOME), cp) = 0 then return 0 -return 1 - -_getenv_: procedure expose env -parse arg envar default -if default = '' then default = envar -var = value(translate(envar),,env) -if var = '' then var = default -return var diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/antRun b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/antRun deleted file mode 100644 index 8110f86efe..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/antRun +++ /dev/null @@ -1,24 +0,0 @@ -#! /bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Args: DIR command -cd "$1" -CMD="$2" -shift -shift - -exec "$CMD" "$@" diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/antRun.bat b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/antRun.bat deleted file mode 100644 index 10d2bbc78a..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/antRun.bat +++ /dev/null @@ -1,50 +0,0 @@ -@echo off - -REM Licensed to the Apache Software Foundation (ASF) under one or more -REM contributor license agreements. See the NOTICE file distributed with -REM this work for additional information regarding copyright ownership. -REM The ASF licenses this file to You under the Apache License, Version 2.0 -REM (the "License"); you may not use this file except in compliance with -REM the License. You may obtain a copy of the License at -REM -REM http://www.apache.org/licenses/LICENSE-2.0 -REM -REM Unless required by applicable law or agreed to in writing, software -REM distributed under the License is distributed on an "AS IS" BASIS, -REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -REM See the License for the specific language governing permissions and -REM limitations under the License. - -if "%OS%"=="Windows_NT" @setlocal -if "%OS%"=="WINNT" @setlocal - -if ""%1""=="""" goto runCommand - -rem Change drive and directory to %1 -if "%OS%"=="Windows_NT" goto nt_cd -if "%OS%"=="WINNT" goto nt_cd -cd ""%1"" -goto end_cd -:nt_cd -cd /d ""%1"" -:end_cd -shift - -rem Slurp the command line arguments. This loop allows for an unlimited number -rem of arguments (up to the command line limit, anyway). -set ANT_RUN_CMD=%1 -if ""%1""=="""" goto runCommand -shift -:loop -if ""%1""=="""" goto runCommand -set ANT_RUN_CMD=%ANT_RUN_CMD% %1 -shift -goto loop - -:runCommand -rem echo %ANT_RUN_CMD% -%ANT_RUN_CMD% - -if "%OS%"=="Windows_NT" @endlocal -if "%OS%"=="WINNT" @endlocal - diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/antRun.pl b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/antRun.pl deleted file mode 100644 index dbea10f2a8..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/antRun.pl +++ /dev/null @@ -1,66 +0,0 @@ -#!/usr/bin/perl -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -####################################################################### -# -# antRun.pl -# -# wrapper script for invoking commands on a platform with Perl installed -# this is akin to antRun.bat, and antRun the SH script -# -# created: 2001-10-18 -# author: Jeff Tulley jtulley@novell.com -####################################################################### -#be fussy about variables -use strict; - -#turn warnings on during dev; generates a few spurious uninitialised var access warnings -#use warnings; - -#and set $debug to 1 to turn on trace info (currently unused) -my $debug=1; - -####################################################################### -# change drive and directory to "%1" -my $ANT_RUN_CMD = @ARGV[0]; - -# assign current run command to "%2" -chdir (@ARGV[0]) || die "Can't cd to $ARGV[0]: $!\n"; -if ($^O eq "NetWare") { - # There is a bug in Perl 5 on NetWare, where chdir does not - # do anything. On NetWare, the following path-prefixed form should - # always work. (afaict) - $ANT_RUN_CMD .= "/".@ARGV[1]; -} -else { - $ANT_RUN_CMD = @ARGV[1]; -} - -# dispose of the first two arguments, leaving only the command's args. -shift; -shift; - -# run the command -my $returnValue = system $ANT_RUN_CMD, @ARGV; -if ($returnValue eq 0) { - exit 0; -} -else { - # only 0 and 1 are widely recognized as exit values - # so change the exit value to 1 - exit 1; -} diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/antenv.cmd b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/antenv.cmd deleted file mode 100644 index 170d89f346..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/antenv.cmd +++ /dev/null @@ -1,98 +0,0 @@ -/* - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -'@echo off' -call RxFuncAdd "SysLoadFuncs", "RexxUtil", "SysLoadFuncs" -call SysLoadFuncs - -/* Prepare the parameters for later use */ -parse arg argv -mode = '' -args = '' -opts = '' -cp = '' -lcp = '' - -do i = 1 to words(argv) - param = word(argv, i) - select - when param='-lcp' then mode = 'l' - when param='-cp' | param='-classpath' then mode = 'c' - when abbrev('-opts', param, 4) then mode = 'o' - when abbrev('-args', param, 4) then mode = 'a' - otherwise - select - when mode = 'a' then args = space(args param, 1) - when mode = 'c' then cp = space(cp param, 1) - when mode = 'l' then lcp = space(lcp param, 1) - when mode = 'o' then opts = space(opts param, 1) - otherwise - say 'Option' param 'ignored' - end - end -end - -env="OS2ENVIRONMENT" -antconf = _getenv_('antconf' 'antconf.cmd') -runrc = _getenv_('runrc') -interpret 'call "' || runrc || '"' '"' || antconf || '"' 'ETC' -ANT_HOME = value('ANT_HOME',,env) -JAVA_HOME = value('JAVA_HOME',,env) -classpath = value('CLASSPATH',,env) -classes = stream(JAVA_HOME || "\lib\classes.zip", "C", "QUERY EXISTS") -if classes \= '' then classpath = prepend(classpath classes) -classes = stream(JAVA_HOME || "\lib\tools.jar", "C", "QUERY EXISTS") -if classes \= '' then classpath = prepend(classpath classes) - -classpath = prepend(classpath ANT_HOME || '\lib\ant-launcher.jar') -'SET CLASSPATH=' || classpath - -/* Setting classpathes, options and arguments */ -envset = _getenv_('envset') -if cp\='' then interpret 'call "' || envset || '"' '"; CLASSPATH"' '"' || cp || '"' -if lcp\='' then interpret 'call "' || envset || '"' '"; LOCALCLASSPATH"' '"' || lcp || '"' -if opts\='' then interpret 'call "' || envset || '"' '"-D ANT_OPTS"' '"' || opts || '"' -if args\='' then interpret 'call "' || envset || '"' '"ANT_ARGS"' '"' || args || '"' - -exit 0 - -addpath: procedure -parse arg path elem -if elem = '' then do - if path\='' & right(path, 1)\=';' then path = path || ';' - return path -end -if substr(path, length(path)) = ';' then glue = '' -else glue = ';' -if pos(translate(elem), translate(path)) = 0 then path = path || glue || elem || ';' -return path - -prepend: procedure -parse arg path elem -if elem = '' then do - if path\='' & right(path, 1)\=';' then path = path || ';' - return path -end -if pos(translate(elem), translate(path)) = 0 then path = elem || ';' || path -return path - -_getenv_: procedure expose env -parse arg envar default -if default = '' then default = envar -var = value(translate(envar),,env) -if var = '' then var = default -return var diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/complete-ant-cmd.pl b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/complete-ant-cmd.pl deleted file mode 100644 index b58c26e15c..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/complete-ant-cmd.pl +++ /dev/null @@ -1,114 +0,0 @@ -#!/usr/bin/perl -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# A script to allow Bash or Z-Shell to complete an Ant command-line. -# -# To install for Bash 2.0 or better, add the following to ~/.bashrc: -# -# $ complete -C complete-ant-cmd ant build.sh -# -# To install for Z-Shell 2.5 or better, add the following to ~/.zshrc: -# -# function ant_complete () { -# local args_line args -# read -l args_line -# set -A args $args_line -# set -A reply $(COMP_LINE=$args_line complete-ant-cmd ${args[1]} $1) -# } -# compctl -K ant_complete ant build.sh -# -# @author Mike Williams - -my $cmdLine = $ENV{'COMP_LINE'}; -my $antCmd = $ARGV[0]; -my $word = $ARGV[1]; - -my @completions; -if ($word =~ /^-/) { - list( restrict( $word, getArguments() )); -} elsif ($cmdLine =~ /-(f|buildfile)\s+\S*$/) { - list( getBuildFiles($word) ); -} else { - list( restrict( $word, getTargets() )); -} - -exit(0); - -sub list { - for (@_) { - print "$_\n"; - } -} - -sub restrict { - my ($word, @completions) = @_; - grep( /^\Q$word\E/, @completions ); -} - -sub getArguments { - qw(-buildfile -debug -emacs -f -find -help -listener -logfile - -logger -projecthelp -quiet -verbose -version); -} - - -sub getBuildFiles { - my ($word) = @_; - grep( /\.xml$/, glob( "$word*" )); -} - -sub getTargets { - - # Look for build-file - my $buildFile = 'build.xml'; - if ($cmdLine =~ /-(f|buildfile)\s+(\S+)/) { - $buildFile = $2; - } - return () unless (-f $buildFile); - - # Run "ant -projecthelp" to list targets. Keep a cache of results in a - # cache-file. - my $cacheFile = $buildFile; - $cacheFile =~ s|(.*/)?(.*)|${1}.ant-targets-${2}|; - if ((!-e $cacheFile) || (-M $buildFile) < (-M $cacheFile)) { - open( CACHE, '>'.$cacheFile ) || die "can\'t write $cacheFile: $!\n"; - open( HELP, "$antCmd -projecthelp -f '$buildFile'|" ) || return(); - my %targets; - while( ) { - if (/^\s+(\S+)/) { - $targets{$1}++; - } - } - my @targets = sort keys %targets; - for (@targets) { print CACHE "$_\n"; } - return @targets; - } - - # Read the target-cache - open( CACHE, $cacheFile ) || die "can\'t read $cacheFile: $!\n"; - my @targets; - while () { - chop; - s/\r$//; # for Cygwin - push( @targets, $_ ); - } - close( CACHE ); - @targets; - -} - - - diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/envset.cmd b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/envset.cmd deleted file mode 100644 index 3b074193e9..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/envset.cmd +++ /dev/null @@ -1,131 +0,0 @@ -/* - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -SET environment variables -First optional parameter: - ; parameters are considered parts of a path variable, semicolons are - appended to each element if not already present - -D parameters are properties for Java or Makefile etc., -D will be - prepended and the parameters will be separated by a space - =D the same as above but equal sign is not required - , parameters should be comma separated in the environment variable - - parameters should be separated by the next parameter - Other values mean that the first parameter is missing and the environment - variable will be set to the space separated parameters - -Second parameter: name of the environment variable - -Next parameters: values -; implies that the equal sign is considered a part of the parameter and is -not interpreted - --D requires parameters in the form name=value. If the equal sign is not found, -the parameters are changed to name=expanded_name - -Other options have optional equal sign. If it is found, only the part after -the equal sign will be oprionally expanded. - -If the parameter is the minus sign, the next parameter will not be expanded. -If the parameter is a single dot, it will be replaced with the value of the -environment variable as it existed before envset was invoked. - -For other parameters the batch looks for the environment variable with the -same name (in uppercase). If it is found, it forms the expanded_name. If -the environment variable with such a name does not exist, the expanded_name -will hold the parameter name without case conversion. -*/ - -parse arg mode envar args - -equal = 0 -sep = ' ' - -/* Parse command line parameters */ -select - when mode='-' then do - sep = envar - parse var args envar args - end - when mode=';' then do - sep = '' - equal = -1 - end - when mode='-D' then equal = 1 - when mode='=D' then mode = '-D' - when mode=',' then sep = ',' -otherwise - args = envar args - envar = mode - mode = '' -end - -env = 'OS2ENVIRONMENT' -envar = translate(envar) -orig = value(envar,,env) -newval = '' -expand = 1 - -/* for each parameter... */ -do i = 1 to words(args) - if expand > 0 & word(args, i) = '-' then expand = 0 - else call addval word(args, i) -end - -/* Optionally enclose path variable by quotes */ -if mode = ';' & pos(' ', newval) > 0 then newval = '"' || newval || '"' - -/* Set the new value, 'SET' cannot be used since it does not allow '=' */ -x = value(envar, newval, env) -exit 0 - -addval: procedure expose sep equal orig expand newval mode env -parse arg var - -if var = '.' then expvar = orig -else do - if equal >= 0 then do - parse var var name '=' val - if val = '' then var = name - else var = val - end - if expand = 0 then expvar = var - else expvar = value(translate(var),,env) - if expvar = '' then expvar = var - if equal >= 0 then do - if val = '' then do - parse var expvar key '=' val - if val <> '' then name = key - else do - if equal > 0 then val = key - else name = key - end - end - else val = expvar - if pos(' ', val) > 0 | pos('=', val) > 0 then val = '"' || val || '"' - if val = '' then expvar = name - else expvar = name || '=' || val - end - if mode = '-D' then expvar = '-D' || expvar - if mode = ';' then do - if right(expvar, 1) <> ';' then expvar = expvar || ';' - end -end - -if newval = '' then newval = expvar -else newval = newval || sep || expvar -expand = 1 -return diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/lcp.bat b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/lcp.bat deleted file mode 100644 index 4bf2e7ce1c..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/lcp.bat +++ /dev/null @@ -1,31 +0,0 @@ -REM -REM Licensed to the Apache Software Foundation (ASF) under one or more -REM contributor license agreements. See the NOTICE file distributed with -REM this work for additional information regarding copyright ownership. -REM The ASF licenses this file to You under the Apache License, Version 2.0 -REM (the "License"); you may not use this file except in compliance with -REM the License. You may obtain a copy of the License at -REM -REM http://www.apache.org/licenses/LICENSE-2.0 -REM -REM Unless required by applicable law or agreed to in writing, software -REM distributed under the License is distributed on an "AS IS" BASIS, -REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -REM See the License for the specific language governing permissions and -REM limitations under the License. -REM -REM - -set _CLASSPATHCOMPONENT=%1 -if ""%1""=="""" goto gotAllArgs -shift - -:argCheck -if ""%1""=="""" goto gotAllArgs -set _CLASSPATHCOMPONENT=%_CLASSPATHCOMPONENT% %1 -shift -goto argCheck - -:gotAllArgs -set LOCALCLASSPATH=%LOCALCLASSPATH%;%_CLASSPATHCOMPONENT% - diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/runant.pl b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/runant.pl deleted file mode 100644 index 5f8307ac33..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/runant.pl +++ /dev/null @@ -1,153 +0,0 @@ -#!/usr/bin/perl -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -####################################################################### -# -# runant.pl -# -# wrapper script for invoking ant in a platform with Perl installed -# this may include cgi-bin invocation, which is considered somewhat daft. -# (slo: that should be a separate file which can be derived from this -# and returns the XML formatted output) -# -# the code is not totally portable due to classpath and directory splitting -# issues. oops. (NB, use File::Spec::Functions will help and the code is -# structured for the catfile() call, but because of perl version funnies -# the code is not included. -# -# created: 2000-8-24 -# author: Steve Loughran steve_l@sourceforge.net -####################################################################### -# -# Assumptions: -# -# - the "java" executable/script is on the command path -# - ANT_HOME has been set -# - target platform uses ":" as classpath separator or perl indicates it is dos/win32 -# - target platform uses "/" as directory separator. - -#be fussy about variables -use strict; - -#platform specifics (disabled) -#use File::Spec::Functions; - -#turn warnings on during dev; generates a few spurious uninitialised var access warnings -#use warnings; - -#and set $debug to 1 to turn on trace info -my $debug=1; - -####################################################################### -# -# check to make sure environment is setup -# - -my $HOME = $ENV{ANT_HOME}; -if ($HOME eq "") - { - die "\n\nANT_HOME *MUST* be set!\n\n"; - } - -my $JAVACMD = $ENV{JAVACMD}; -$JAVACMD = "java" if $JAVACMD eq ""; - -my $onnetware = 0; -if ($^O eq "NetWare") -{ - $onnetware = 1; -} - -my $oncygwin = ($^O eq "cygwin"); - -#ISSUE: what java wants to split up classpath varies from platform to platform -#and perl is not too hot at hinting which box it is on. -#here I assume ":" 'cept on win32, dos, and netware. Add extra tests here as needed. -my $s=":"; -if(($^O eq "MSWin32") || ($^O eq "dos") || ($^O eq "cygwin") || - ($onnetware == 1)) - { - $s=";"; - } - -#build up standard classpath -my $localpath = "$HOME/lib/ant-launcher.jar"; -#set JVM options and Ant arguments, if any -my @ANT_OPTS=split(" ", $ENV{ANT_OPTS}); -my @ANT_ARGS=split(" ", $ENV{ANT_ARGS}); - -#jikes -if($ENV{JIKESPATH} ne "") - { - push @ANT_OPTS, "-Djikes.class.path=$ENV{JIKESPATH}"; - } - -#construct arguments to java -my @ARGS; -push @ARGS, @ANT_OPTS; - -my $CYGHOME = ""; - -my $classpath=$ENV{CLASSPATH}; -if ($oncygwin == 1) { - $localpath = `cygpath --path --windows $localpath`; - chomp ($localpath); - if (! $classpath eq "") - { - $classpath = `cygpath --path --windows "$classpath"`; - chomp ($classpath); - } - $HOME = `cygpath --path --windows $HOME`; - chomp ($HOME); - $CYGHOME = `cygpath --path --windows $ENV{HOME}`; - chomp ($CYGHOME); -} -push @ARGS, "-classpath", "$localpath"; -push @ARGS, "-Dant.home=$HOME"; -if ( ! $CYGHOME eq "" ) -{ - push @ARGS, "-Dcygwin.user.home=\"$CYGHOME\"" -} -push @ARGS, "org.apache.tools.ant.launch.Launcher", @ANT_ARGS; -push @ARGS, @ARGV; -if (! $classpath eq "") -{ - if ($onnetware == 1) - { - # make classpath literally $CLASSPATH - # this is to avoid pushing us over the 512 character limit - # even skip the ; - that is already in $localpath - push @ARGS, "-lib", "\$CLASSPATH"; - } - else - { - push @ARGS, "-lib", "$classpath"; - } -} -print "\n $JAVACMD @ARGS\n\n" if ($debug); - -my $returnValue = system $JAVACMD, @ARGS; -if ($returnValue eq 0) - { - exit 0; - } -else - { - # only 0 and 1 are widely recognized as exit values - # so change the exit value to 1 - exit 1; - } diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/runant.py b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/runant.py deleted file mode 100644 index eec549ebd4..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/runant.py +++ /dev/null @@ -1,102 +0,0 @@ -#!/usr/bin/python -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -""" - - runant.py - - This script is a translation of the runant.pl written by Steve Loughran. - It runs ant with/out arguments, it should be quite portable (thanks to - the python os library) - This script has been tested with Python2.0/Win2K - - created: 2001-04-11 - author: Pierre Dittgen pierre.dittgen@criltelecom.com - - Assumptions: - - - the "java" executable/script is on the command path -""" -import os, os.path, string, sys - -# Change it to 1 to get extra debug information -debug = 0 - -####################################################################### - -# If ANT_HOME is not set default to script's parent directory -if os.environ.has_key('ANT_HOME'): - ANT_HOME = os.environ['ANT_HOME'] -else: - ANT_HOME = os.path.dirname(os.path.dirname(os.path.abspath(sys.argv[0]))) - -# set ANT_LIB location -ANT_LIB = os.path.join(ANT_HOME, 'lib') - -# set JAVACMD (check variables JAVACMD and JAVA_HOME) -JAVACMD = None -if not os.environ.has_key('JAVACMD'): - if os.environ.has_key('JAVA_HOME'): - if not os.path.exists(os.environ['JAVA_HOME']): - print "Warning: JAVA_HOME is not defined correctly." - else: - JAVACMD = os.path.join(os.environ['JAVA_HOME'], 'bin', 'java') - else: - print "Warning: JAVA_HOME not set." -else: - JAVACMD = os.environ['JAVACMD'] -if not JAVACMD: - JAVACMD = 'java' - -launcher_jar = os.path.join(ANT_LIB, 'ant-launcher.jar') -if not os.path.exists(launcher_jar): - print 'Unable to locate ant-launcher.jar. Expected to find it in %s' % \ - ANT_LIB - -# Build up standard classpath (LOCALCLASSPATH) -LOCALCLASSPATH = launcher_jar -if os.environ.has_key('LOCALCLASSPATH'): - LOCALCLASSPATH += os.pathsep + os.environ['LOCALCLASSPATH'] - -ANT_OPTS = "" -if os.environ.has_key('ANT_OPTS'): - ANT_OPTS = os.environ['ANT_OPTS'] - -OPTS = "" -if os.environ.has_key('JIKESPATH'): - OPTS = '-Djikes.class.path=\"%s\"' % os.environ['JIKESPATH'] - -ANT_ARGS = "" -if os.environ.has_key('ANT_ARGS'): - ANT_ARGS = os.environ['ANT_ARGS'] - -CLASSPATH = "" -if os.environ.has_key('CLASSPATH'): - CLASSPATH = os.environ['CLASSPATH'] - -# Builds the commandline -cmdline = ('%s %s -classpath %s -Dant.home=%s %s ' + \ - 'org.apache.tools.ant.launch.Launcher %s -lib %s %s') \ - % (JAVACMD, ANT_OPTS, LOCALCLASSPATH, ANT_HOME, OPTS, ANT_ARGS, \ - CLASSPATH, string.join(sys.argv[1:], ' ')) - -if debug: - print '\n%s\n\n' % (cmdline) -sys.stdout.flush() - -# Run the biniou! -os.system(cmdline) diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/runrc.cmd b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/runrc.cmd deleted file mode 100644 index c68f04d4aa..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/bin/runrc.cmd +++ /dev/null @@ -1,60 +0,0 @@ -/* - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - Run RC file, name is in the first arg, second arg is either PATH - ENV or -r or nothing -*/ - -parse arg name path rest - -if name = '' then do - say 'RC file name is missing' - exit 1 -end - -if rest \= '' then do - say 'Too many parameters' - exit 1 -end - -call runit name path -exit 0 - -runit: procedure -parse arg name path dir - -if path \= '' & path \= '-r' then do - dir = value(translate(path),,'OS2ENVIRONMENT') - if dir = '' then return - dir = translate(dir, '\', '/') /* change UNIX-like path to OS/2 */ -end - -if dir = '' then dir = directory() - -if path = '-r' then do /* recursive call */ - subdir = filespec('path', dir) - if subdir \= '\' then do - subdir = left(subdir, length(subdir)-1) - call runit name path filespec('drive', dir) || subdir - end -end - -/* Look for the file and run it */ -if right(dir, 1) \= '\' then dir = dir || '\' -rcfile = stream(dir || name, 'c', 'query exists') -if rcfile \= '' then interpret 'call "' || rcfile || '"' - -return diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/changelog.xsl b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/changelog.xsl deleted file mode 100644 index c6aef8fde1..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/changelog.xsl +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - <xsl:value-of select="$title"/> - - - -

- -

-

Designed for use with Apache Ant.

-
- - - - - - - -
- - - -
- - - - - - - - - -
-
-
    - -
- - -
- - - - - - - - - - - - - mailto: - - - - - -
  • - - - - /?rev=&content-type=text/x-cvsweb-markup - - - /?r1=&r2= - - - () -
  • -
    - - - - - - -
    diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/checkstyle/checkstyle-frames.xsl b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/checkstyle/checkstyle-frames.xsl deleted file mode 100644 index abaafd6300..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/checkstyle/checkstyle-frames.xsl +++ /dev/null @@ -1,299 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CheckStyle Audit - - - - - - - <h2>Frame Alert</h2> - <p> - This document is designed to be viewed using the frames feature. - If you see this message, you are using a non-frame-capable web client. - </p> - - - - - - - - - - - - -

    CheckStyle Audit

    Designed for use with - CheckStyle and - Ant.
    -
    -
    - - - - - - - - - - - - -
    - - - - - -
    - - - .bannercell { - border: 0px; - padding: 0px; - } - body { - margin-left: 10; - margin-right: 10; - font:normal 80% arial,helvetica,sanserif; - background-color:#FFFFFF; - color:#000000; - } - .oddrow td { - background: #efefef; - } - .evenrow td { - background: #fff; - } - th, td { - text-align: left; - vertical-align: top; - } - th { - font-weight:bold; - background: #ccc; - color: black; - } - table, th, td { - font-size:100%; - border: none - } - table.log tr td, tr th { - - } - h2 { - font-weight:bold; - font-size:140%; - margin-bottom: 5; - } - h3 { - font-size:100%; - font-weight:bold; - background: #525D76; - color: white; - text-decoration: none; - padding: 5px; - margin-right: 2px; - margin-left: 2px; - margin-bottom: 0; - } - - - - - - - - - -

    Files

    -

    - - - - - -
    -

    - - -
    - - -

    Files

    - - - - - - - - -
    NameErrors
    -
    - - - - - - - - files/.html - - - - - - - - - - - - - - files/.html - - - - - - - - - - - - - - - - - ../ - - - - - - ../ - - - - - - - - - stylesheet.css - - - - -

    File

    - - - - - - - - - - - - -
    Error DescriptionLine:Column
    :
    - - -
    -
    - - -

    Summary

    - - - - - - - - - - - - - - - -
    Total FilesFiles With ErrorsErrors
    -
    - - - - oddrow - evenrow - - -
    \ No newline at end of file diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/checkstyle/checkstyle-text.xsl b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/checkstyle/checkstyle-text.xsl deleted file mode 100644 index 7359e41601..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/checkstyle/checkstyle-text.xsl +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - : - - : - - - - - - diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/checkstyle/checkstyle-xdoc.xsl b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/checkstyle/checkstyle-xdoc.xsl deleted file mode 100644 index 5fc6eab380..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/checkstyle/checkstyle-xdoc.xsl +++ /dev/null @@ -1,130 +0,0 @@ - - - - - - - - - - - - - - - Checkstyle Audit - - - - - - - - - - - - -
    - - - - - - - - -
    NameErrors
    -
    -
    - - - - - - - - files.html - - - - - - - - - - - - - Checkstyle Audit - - - -
    - - - - - - - - - - - - -
    Error DescriptionLine
    -
    - -
    -
    -
    - - -
    - - - - - - - - - - - - - - - -
    FilesFiles With ErrorsErrors
    -
    -
    - - - - oddrow - evenrow - - -
    - diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/coverage-frames.xsl b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/coverage-frames.xsl deleted file mode 100644 index a55a52aa8c..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/coverage-frames.xsl +++ /dev/null @@ -1,489 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Coverage Results. - - - - - - - - - <h2>Frame Alert</h2> - <p> - This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. - </p> - - - - - - - - .bannercell { - border: 0px; - padding: 0px; - } - body { - margin-left: 10; - margin-right: 10; - font:normal 80% arial,helvetica,sanserif; - background-color:#FFFFFF; - color:#000000; - } - .a td { - background: #efefef; - } - .b td { - background: #fff; - } - th, td { - text-align: left; - vertical-align: top; - } - th { - font-weight:bold; - background: #ccc; - color: black; - } - table, th, td { - font-size:100%; - border: none - } - table.log tr td, tr th { - - } - h2 { - font-weight:bold; - font-size:140%; - margin-bottom: 5; - } - h3 { - font-size:100%; - font-weight:bold; - background: #525D76; - color: white; - text-decoration: none; - padding: 5px; - margin-right: 2px; - margin-left: 2px; - margin-bottom: 0; - } - - - - - - - - - -

    Classes

    - - - - - - - / - .html - - - - - -
    - -
    - - -
    - - - - - - - - -

    Home

    -

    Packages

    - - - - - - - -
    - - - -
    - - -
    - - - - - - - - - -

    Summary

    - - - - - - - - - - - - - -
    Reported ClassesMethods HitLines Hit
    - - - - -
    - To ensure accurate test runs on Java applications, developers need to know how much of - the code has been tested, and where to find any untested code. Coverage helps you - locate untested code, and measure precisely how much code has been exercised. - The result is a higher quality application in a shorter period of time. -

    -

    - -

    Packages

    - - - - - - - - - - - - -
    - - - -
    - - - - - - . - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -

    -
    - -

    Classes

    - - - - - - - -
    - -
    - - -
    - - - - - - - - - - - - -

    Package

    - - - -
    - - -

    Classes

    - - - - - -
    -
    - - - -
    - - - - - - - - - - - - -

    Class .

    - - - - - -
    - - -

    Methods

    - - - - - -
    - - - - -
    - - - - - - - - - - - - -
    - - http://jakarta.apache.org - -

    Source Code Coverage

    Designed for use with Sitraka JProbe and Ant.
    -
    -
    - - - - - - - - - Name - Methods Hit - Lines Hit - - - - - - Name - Lines Hit - - - - - - - - - - - - - - - Name - Methods Hit - Lines Hit - - - - - - - - - - - - - - - - ../ - - - - - - ../ - - - - - - - - stylesheet.css - - - - - - a - b - - - -
    - - diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/jdepend-frames.xsl b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/jdepend-frames.xsl deleted file mode 100644 index ccc9dcc205..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/jdepend-frames.xsl +++ /dev/null @@ -1,487 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - JDepend Analysis - - - - - - - - - - <h2>Frame Alert</h2> - <p> - This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. - </p> - - - - - - - - - - - - - - - - -

    Summary

    - - [summary] - [packages] - [cycles] - [explanations] -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    PackageTotal ClassesAbstract ClassesConcrete ClassesAfferent CouplingsEfferent CouplingsAbstractnessInstabilityDistance
    - - overview-packages.html#PK - - - -
    - -
    - - -
    - - - - - - - - -

    Packages

    - - [summary] - [packages] - [cycles] - [explanations] -
    - - - -

    PK -

    - - - - - - - -
    Afferent Couplings: Efferent Couplings: Abstractness: Instability: Distance:
    - - - - - - - - - - - - - - -
    Abstract ClassesConcrete ClassesUsed by PackagesUses Packages
    - - None - - -
    -
    -
    - - None - - -
    -
    -
    - - None - - - - overview-packages.html#PK - -
    -
    -
    - - None - - - - overview-packages.html#PK - -
    -
    -
    -
    -
    - -
    - [summary] - [packages] - [cycles] - [explanations] -
    - - -
    - - - - - - - - -

    Cycles

    - - [summary] - [packages] - [cycles] - [explanations] -
    - - - -

    There are no cyclic dependancies.

    -
    - -

    #CY

    - -
    -

    -
    - -
    - [summary] - [packages] - [cycles] - [explanations] -
    - - -
    - - - - - - - - - -

    Explanations

    - - [summary] - [packages] - [cycles] - [explanations] -
    - -

    The following explanations are for quick reference and are lifted directly from the original JDepend documentation.

    - -

    Number of Classes

    -

    The number of concrete and abstract classes (and interfaces) in the package is an indicator of the extensibility of the package.

    -

    Afferent Couplings

    -

    The number of other packages that depend upon classes within the package is an indicator of the package's responsibility.

    -

    Efferent Couplings

    -

    The number of other packages that the classes in the package depend upon is an indicator of the package's independence.

    -

    Abstractness

    -

    The ratio of the number of abstract classes (and interfaces) in the analyzed package to the total number of classes in the analyzed package.

    -

    The range for this metric is 0 to 1, with A=0 indicating a completely concrete package and A=1 indicating a completely abstract package.

    -

    Instability

    -

    The ratio of efferent coupling (Ce) to total coupling (Ce / (Ce + Ca)). This metric is an indicator of the package's resilience to change.

    -

    The range for this metric is 0 to 1, with I=0 indicating a completely stable package and I=1 indicating a completely instable package.

    -

    Distance

    -

    The perpendicular distance of a package from the idealized line A + I = 1. This metric is an indicator of the package's balance between abstractness and stability.

    -

    A package squarely on the main sequence is optimally balanced with respect to its abstractness and stability. Ideal packages are either completely abstract and stable (x=0, y=1) or completely concrete and instable (x=1, y=0).

    -

    The range for this metric is 0 to 1, with D=0 indicating a package that is coincident with the main sequence and D=1 indicating a package that is as far from the main sequence as possible.

    - - - -
    - - - - - - - - - -
    - [summary] - [packages] - [cycles] - [explanations] -
    -

    Packages

    - - - - - - - -
    - - -
    - - - - - - - - - - - - - - - - Not Analyzed: - - - - - - - - - - - -
    - [summary] - [packages] - [cycles] - [explanations] -
    -

    Cycles

    - - - - -
    - - -
    - - - - - - - - - - - -

    JDepend Analysis

    - - - - - -
    Designed for use with JDepend and Ant.
    -
    -
    - -
    diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/jdepend.xsl b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/jdepend.xsl deleted file mode 100644 index f8132975f5..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/jdepend.xsl +++ /dev/null @@ -1,276 +0,0 @@ - - - - - - - - - - - JDepend Analysis - - - - - - - - -

    JDepend Analysis

    -

    Designed for use with JDepend and Ant.

    -
    - -
    -

    Summary

    -
    - [summary] - [packages] - [cycles] - [explanations] -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    PackageTotal ClassesAbstract ClassesConcrete ClassesAfferent CouplingsEfferent CouplingsAbstractnessInstabilityDistance
    - - #PK - - - -
    - -
    - -
    -

    Packages

    -
    - [summary] - [packages] - [cycles] - [explanations] -
    - - - -

    PK -

    - - - - - - - -
    Afferent Couplings: Efferent Couplings: Abstractness: Instability: Distance:
    - - - - - - - - - - - - - - -
    Abstract ClassesConcrete ClassesUsed by PackagesUses Packages
    - - None - - -
    -
    -
    - - None - - -
    -
    -
    - - None - - - - #PK - -
    -
    -
    - - None - - - - #PK - -
    -
    -
    -
    -
    - -
    -

    Cycles

    -
    - [summary] - [packages] - [cycles] - [explanations] -
    - - -

    There are no cyclic dependancies.

    -
    - -

    - -
    -

    -
    - -
    -

    Explanations

    -
    - [summary] - [packages] - [cycles] - [explanations] -
    - -

    The following explanations are for quick reference and are lifted directly from the original JDepend documentation.

    - -

    Number of Classes

    -

    The number of concrete and abstract classes (and interfaces) in the package is an indicator of the extensibility of the package.

    -

    Afferent Couplings

    -

    The number of other packages that depend upon classes within the package is an indicator of the package's responsibility.

    -

    Efferent Couplings

    -

    The number of other packages that the classes in the package depend upon is an indicator of the package's independence.

    -

    Abstractness

    -

    The ratio of the number of abstract classes (and interfaces) in the analyzed package to the total number of classes in the analyzed package.

    -

    The range for this metric is 0 to 1, with A=0 indicating a completely concrete package and A=1 indicating a completely abstract package.

    -

    Instability

    -

    The ratio of efferent coupling (Ce) to total coupling (Ce / (Ce + Ca)). This metric is an indicator of the package's resilience to change.

    -

    The range for this metric is 0 to 1, with I=0 indicating a completely stable package and I=1 indicating a completely instable package.

    -

    Distance

    -

    The perpendicular distance of a package from the idealized line A + I = 1. This metric is an indicator of the package's balance between abstractness and stability.

    -

    A package squarely on the main sequence is optimally balanced with respect to its abstractness and stability. Ideal packages are either completely abstract and stable (x=0, y=1) or completely concrete and instable (x=1, y=0).

    -

    The range for this metric is 0 to 1, with D=0 indicating a package that is coincident with the main sequence and D=1 indicating a package that is as far from the main sequence as possible.

    - - - -
    - -
    diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/junit-frames-xalan1.xsl b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/junit-frames-xalan1.xsl deleted file mode 100644 index 8cef4cae2f..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/junit-frames-xalan1.xsl +++ /dev/null @@ -1,719 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - . - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Unit Test Results. - - - - - - - - - <h2>Frame Alert</h2> - <p> - This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. - </p> - - - - - - - -body { - font:normal 68% verdana,arial,helvetica; - color:#000000; -} -table tr td, table tr th { - font-size: 68%; -} -table.details tr th{ - font-weight: bold; - text-align:left; - background:#a6caf0; -} -table.details tr td{ - background:#eeeee0; -} - -p { - line-height:1.5em; - margin-top:0.5em; margin-bottom:1.0em; -} -h1 { - margin: 0px 0px 5px; font: 165% verdana,arial,helvetica -} -h2 { - margin-top: 1em; margin-bottom: 0.5em; font: bold 125% verdana,arial,helvetica -} -h3 { - margin-bottom: 0.5em; font: bold 115% verdana,arial,helvetica -} -h4 { - margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica -} -h5 { - margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica -} -h6 { - margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica -} -.Error { - font-weight:bold; color:red; -} -.Failure { - font-weight:bold; color:purple; -} -.Properties { - text-align:right; -} - - - - - - - . - - - Unit Test Results: <xsl:value-of select="$class.name"/> - - - - - - - - -

    Class

    - - - - - -
    - -

    Tests

    - - - - - - - - - -
    - - - - - - - - - -
    - - - - cur = TestCases['.'] = new Array(); - - - cur[''] = ''; - - - - - - - - - - - Unit Test Classes: <xsl:value-of select="$name"/> - - - - - - - - - -
    -

    - - <none> -

    -
    - -

    Classes

    - - - - - - - -
    - -
    - - -
    - - - - - - - All Unit Test Classes - - - - - -

    Classes

    - - - - -
    - - -
    - - - - - - - - - / - .html - - - - - - - - - - - - - All Unit Test Packages - - - - - -

    Home

    -

    Packages

    - - - - -
    - - -
    - - - - - - - <none> - - - - - - - - - - Unit Test Results: Summary - - - - - - open('allclasses-frame.html','classListFrame') - -

    Summary

    - - - - - - - - - - - - - - - - - Error - Failure - Pass - - - - - - - - -
    TestsFailuresErrorsSuccess rateTime
    - - - - - - - -
    - - - - -
    - Note: failures are anticipated and checked for with assertions while errors are unanticipated. -
    - -

    Packages

    - - - - - - - - - - - Error - Failure - Pass - - - - - - - - - - - -
    - - <none> - - - - -
    - - -
    - - - - - - - - - - - - open('package-frame.html','classListFrame') - -

    Package

    - - - - - -

    Classes

    -

    - - - - - -
    -

    -
    - - -
    - - - - - - - ../ - - - - - - ../ - - - - - - - - stylesheet.css - - - - - -

    Unit Test Results

    - - - - - -
    Designed for use with JUnit and Ant.
    -
    -
    - - - - - Name - Tests - Errors - Failures - Time(s) - Time Stamp - Host - - - - - - - Name - Status - Type - Time(s) - - - - - - - - - - Error - Failure - Pass - - - - - - - - - - - - - - - - - - - - Error - Failure - TableRowColor - - - - - - Failure - - - - Error - - - - Success - - - - - - - - - - - - - - - - - - - - - - - - - N/A - - - - - -

    - - - - - - - -
    - - - - - - - - - - - - -
    - -
    - - - - - - - - - - -
    diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/junit-frames.xsl b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/junit-frames.xsl deleted file mode 100644 index 9ea322a6f4..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/junit-frames.xsl +++ /dev/null @@ -1,877 +0,0 @@ - - - - - - - - -Unit Test Results. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - . - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <xsl:value-of select="$TITLE"/> - - - - - - - - - <h2>Frame Alert</h2> - <p> - This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. - </p> - - - - - - - -body { - font:normal 68% verdana,arial,helvetica; - color:#000000; -} -table tr td, table tr th { - font-size: 68%; -} -table.details tr th{ - font-weight: bold; - text-align:left; - background:#a6caf0; -} -table.details tr td{ - background:#eeeee0; -} - -p { - line-height:1.5em; - margin-top:0.5em; margin-bottom:1.0em; -} -h1 { - margin: 0px 0px 5px; font: 165% verdana,arial,helvetica -} -h2 { - margin-top: 1em; margin-bottom: 0.5em; font: bold 125% verdana,arial,helvetica -} -h3 { - margin-bottom: 0.5em; font: bold 115% verdana,arial,helvetica -} -h4 { - margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica -} -h5 { - margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica -} -h6 { - margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica -} -.Error { - font-weight:bold; color:red; -} -.Failure { - font-weight:bold; color:purple; -} -.Properties { - text-align:right; -} - - - - - - - - - - All Failures - - - All Errors - - - All Tests - - - - - Unit Test Results: <xsl:value-of select="$title"/> - - - - - - open('allclasses-frame.html','classListFrame') - -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - -
    - - -
    - - - - - - - . - - - Unit Test Results: <xsl:value-of select="$class.name"/> - - - - - - - - -

    Class

    - - - - - -
    - - - -

    Failures

    -
    - -

    Errors

    -
    - -

    Tests

    -
    -
    - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - -
    - - - - cur = TestCases['.'] = new Array(); - - - cur[''] = ''; - - - - - - - - - - - Unit Test Classes: <xsl:value-of select="$name"/> - - - - - - - - - -
    -

    - - <none> -

    -
    - -

    Classes

    - - - - - - - -
    - -
    - - -
    - - - - - - - All Unit Test Classes - - - - - -

    Classes

    - - - - -
    - - -
    - - - - - - - - - / - _.html - - - - - - - - - - - - - All Unit Test Packages - - - - - -

    Home

    -

    Packages

    - - - - -
    - - -
    - - - - - - - <none> - - - - - - - - - - Unit Test Results: Summary - - - - - - open('allclasses-frame.html','classListFrame') - -

    Summary

    - - - - - - - - - - - - - - - - - Error - Failure - Pass - - - - - - - - -
    TestsFailuresErrorsSuccess rateTime
    - - - - - - - -
    - - - - -
    - Note: failures are anticipated and checked for with assertions while errors are unanticipated. -
    - -

    Packages

    - - - - - - - - - - - Error - Failure - Pass - - - - - - - - - - - -
    - - <none> - - - - -
    - - -
    - - - - - - - - - - - - open('package-frame.html','classListFrame') - -

    Package

    - - - - - -

    Classes

    -

    - - - - - -
    -

    -
    - - -
    - - - - - - - ../ - - - - - - ../ - - - - - - - - stylesheet.css - - - - - -

    - - - - - -
    Designed for use with JUnit and Ant.
    -
    -
    - - - - - Name - Tests - Errors - Failures - Time(s) - Time Stamp - Host - - - - - - - - - Class - - Name - Status - Type - Time(s) - - - - - - - - - - Error - Failure - Pass - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Error - Failure - TableRowColor - - - - - - - - - - - - - - - - - - - - - - Failure - - - - Error - - - - Success - - - - - - - - - - - - - - - - - - - - - - - - - N/A - - - - - -

    - - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/junit-noframes.xsl b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/junit-noframes.xsl deleted file mode 100644 index f0ab96416c..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/junit-noframes.xsl +++ /dev/null @@ -1,467 +0,0 @@ - - - - - - -Unit Test Results. - - - - - - <xsl:value-of select="$TITLE"/> - - - - - - - - - - -
    - - - -
    - - - -
    - - - - - - -
    - - - - - - - - -

    Packages

    - Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers. - - - - - - - - - - - - - - - - - Failure - Error - - - - - - - - - - - -
    - - - -
    -
    - - - - - - - - - - - - -

    Package

    - - - - - - -
    - Back to top -

    -

    - - - - - - - - -

    TestCase

    - - - - - - - - - - -
    - -

    - - Back to top - - - - -

    Summary

    - - - - - - - - - - - - - - - - - Failure - Error - - - - - - - - - -
    TestsFailuresErrorsSuccess rateTime
    - - - - - - - -
    - - - - -
    - Note: failures are anticipated and checked for with assertions while errors are unanticipated. -
    -
    - - - - cur = TestCases['.'] = new Array(); - - - cur[''] = ''; - - - - - -

    - - - - - -
    Designed for use with JUnit and Ant.
    -
    -
    - - - - Name - Tests - Errors - Failures - Time(s) - - - - - - - Name - Tests - Errors - Failures - Time(s) - Time Stamp - Host - - - - - - - Name - Status - Type - Time(s) - - - - - - - - - - - Failure - Error - - - - - - - - - - - - - - - - - - - - - - - Error - - - - - - Failure - - - - Error - - - - Success - - - - - - - - - - - - - - - - - - - - - - - - N/A - - - - - - -

    - - - -
    - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/log.xsl b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/log.xsl deleted file mode 100644 index 5040993b7f..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/log.xsl +++ /dev/null @@ -1,203 +0,0 @@ - - - - - - - - - - - - - - - - - - - - -
    - - http://jakarta.apache.org - - - Apache Ant -
    - - - -

    - - - - - -
    - - - - - - failed - complete - - - - - - - - - - - - - -
    Build FailedBuild CompleteTotal Time:
    - -
    - See the stacktrace. -
    -
    - - - - - -
    ant.file
    ant.version
    java.version
    os.name
    - -

    Build events

    - - - - - - - -
    targettaskmessage
    -

    - - - -

    Error details

    - - -
    -
    -
    - -

    -
    - - - - - - - a - b - - - [ ] - - - - - - -
    diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/maudit-frames.xsl b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/maudit-frames.xsl deleted file mode 100644 index 257c0c8ca6..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/maudit-frames.xsl +++ /dev/null @@ -1,503 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - . - - - - - - - - - - - - - - - - - - - - - - - - - - - - Audit Results. - - - - - - - - - <H2>Frame Alert</H2> - <P> - This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. - </P> - - - - - - - - .bannercell { - border: 0px; - padding: 0px; - } - body { - margin-left: 10; - margin-right: 10; - font:normal 80% arial,helvetica,sanserif; - background-color:#FFFFFF; - color:#000000; - } - .a td { - background: #efefef; - } - .b td { - background: #fff; - } - th, td { - text-align: left; - vertical-align: top; - } - th { - font-weight:bold; - background: #ccc; - color: black; - } - table, th, td { - font-size:100%; - border: none - } - table.log tr td, tr th { - - } - h2 { - font-weight:bold; - font-size:140%; - margin-bottom: 5; - } - h3 { - font-size:100%; - font-weight:bold; - background: #525D76; - color: white; - text-decoration: none; - padding: 5px; - margin-right: 2px; - margin-left: 2px; - margin-bottom: 0; - } - - - - - - - - - - - - - - -

    Class .

    - - - - -
    - -

    Violations

    - - - - - -
    - - - -
    - - - - - - - - - - - - - - - - -
    -

    -
    - -

    Classes

    - - - - -
    - - -
    - - - - - -
    - - - - - - - - - - - - - - -

    Classes

    - - - - -
    - - -
    - - - - - - - - - - / - .html - - - - - - - - - - - - - - - - - -

    Home

    -

    Packages

    - - - - -
    - - -
    - - - - - - - - - - - - - - - - - - - - - -

    Summary

    - - - - - - - - - - - -
    Audited classesReported classesViolations
    - - - - -
    - Note: Rules checked have originated from style guidelines suggested by the language designers, - experience from the Java development community and insite experience. Violations are generally - reported with a reference to the Java Language Specifications (JLS x.x.x) - and Metamata Audit rules (x.x). - Please consult these documents for additional information about violations. -

    - Rules checked also enforce adherence to Sun Java coding guidelines in use at Jakarta. -

    - One should note that these violations do not necessary underline errors but should be used - as an indication for possible errors. As always, use your best judgment and review - them carefully, it might save you hours of debugging. -

    - -

    Packages

    - - - - - - - - - - -
    - - - -
    - - - - - - - - - - - - open('package-frame.html','classListFrame') - -

    Package

    - - - - -

    Classes

    - - - - - -
    -
    - - - -
    - - - - - - - ../ - - - - - - ../ - - - - - - - - stylesheet.css - - - - - - - - - - - - - - -
    - - http://jakarta.apache.org - -

    Source Code Audit

    Designed for use with Webgain QA/Metamata Audit and Ant.
    -
    -
    - - - - - - - - - - Name - Violations - - - - - - - Line - Message - - - - - - - - - - - - - - - - - - - - - - - - - a - b - - - - - diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/mmetrics-frames.xsl b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/mmetrics-frames.xsl deleted file mode 100644 index 8b4643ad20..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/mmetrics-frames.xsl +++ /dev/null @@ -1,1026 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - . - - - - - - - - - - - - - - - - - - - - - - - - - . - - - - - - Metrics Results. - - - - - - - - - <H2>Frame Alert</H2> - <P> - This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. - </P> - - - - - - - - - - - -

    Metrics Reference

    -V(G) | -LOC | -DIT | -NOA | -NRM | -NLM | -WMC | -RFC | -DAC | -FANOUT | -CBO | -LCOM | -NOC - - -

    Cyclomatic Complexity - V(G)

    -This metric was introduced in the 1970s to measure the amount of control -flow complexity or branching complexity in a module such as a -subroutine. It gives the number of paths that may be taken through the -code, and was initially developed to give some measure of the cost of -producing a test case for the module by executing each path. -

    -Methods with a high cyclomatic complexity tend to be more difficult to -understand and maintain. In general the more complex the methods of an -application, the more difficult it will be to test it, and this will adversely -affect its reliability. -

    -V(G) is a measure of the control flow complexity of a method or -constructor. It counts the number of branches in the body of the method, -defined as: -

      -
    • while statements;
    • -
    • if statements;
    • -
    • for statements.
    • -
    - -The metric can also be configured to count each case of a switch -statement as well. - -
    -

    Lines of Code - LOC

    - -This is perhaps the simplest of all the metrics to define and compute. -Counting lines has a long history as a software metric dating from before -the rise of structured programming, and it is still in widespread use today. -The size of a method affects the ease with which it can be understood, its -reusability and its maintainability. There are a variety of ways that the size -can be calculated. These include counting all the lines of code, the number -of statements, the blank lines of code, the lines of commentary, and the -lines consisting only of syntax such as block delimiters. -

    -This metric can also be used for sizing other constructs as well, for -example, the overall size of a Java class or package can be measured by -counting the number of source lines it consists of. -

    -LOC can be used to determine the size of a compilation unit (source file), -class or interface, method, constructor, or field. It can be configured to -ignore: -

      -
    • blank lines;
    • -
    • lines consisting only of comments;
    • -
    • lines consisting only of opening and closing braces.
    • -
    - -
    -

    Depth of Inheritance Hierarchy - DIT

    - -This metric calculates how far down the inheritance hierarchy a class is -declared. In Java all classes have java.lang.Object as their ultimate -superclass, which is defined to have a depth of 1. So a class that -immediately extends java.lang.Object has a metric value of 2; any of its -subclasses will have a value of 3, and so on. -

    -A class that is deep within the tree inherits more methods and state -variables, thereby increasing its complexity and making it difficult to -predict its behavior. It can be harder to understand a system with many -inheritance layers. -

    -DIT is defined for classes and interfaces: -

      -
    • all interface types have a depth of 1;
    • -
    • the class java.lang.Object has a depth of 1;
    • -
    • all other classes have a depth of 1 + the depth of their super class.
    • -
    - -
    -

    Number of Attributes - NOA

    - -The number of distinct state variables in a class serves as one measure of -its complexity. The more state a class represents the more difficult it is to -maintain invariants for it. It also hinders comprehensibility and reuse. -

    -In Java, state can be exposed to subclasses through protected fields, which -entails that the subclass also be aware of and maintain any invariants. This -interference with the class's data encapsulation can be a source of defects -and hidden dependencies between the state variables. -

    -NOA is defined for classes and interfaces. It counts the number of fields -declared in the class or interface. - - -

    Number of Remote Methods - NRM

    - -NRM is defined for classes. A remote method call is defined as an -invocation of a method that is not declared in any of: -
      -
    • the class itself;
    • -
    • a class or interface that the class extends or implements;
    • -
    • a class or method that extends the class.
    • -
    - -The value is the count of all the remote method calls in all of the methods -and constructors of the class. - -
    -

    Number of Local Methods - NLM

    - -NLM is defined for classes and interfaces. A local method is defined as a -method that is declared in the class or interface. NLM can be configured to -include the local methods of all of the class's superclasses. Methods with -public, protected, package and private visibility can be independently -counted by setting configuration parameters. - -
    -

    Weighted Methods per Class - WMC

    - -If the number of methods in a class can be determined during the design -and modeling phase of a project, it can be used as a predictor of how -much time and effort is needed to develop, debug and maintain it. This -metric can be further refined by incorporating a weighting for the -complexity of each method. The usual weighting is given by the cyclomatic -complexity of the method. -

    -The subclasses of a class inherit all of its public and protected methods, -and possibly its package methods as well, so the number of methods a -class has directly impacts the complexity of its subclasses. Classes with -large numbers of methods are often specific to a particular application, -reducing the ability to reuse them. -

    -The definition of WMC is based upon NLM, and it provides the same -configuration parameters for counting inherited methods and of varying -visibility. The main difference is that NLM always counts each method as 1, -whereas WMC will weight each method. There are two weighting schemes: -

      -
    • V(G) the cyclomatic complexity of the method is used as its weight. - Methods from class files are given a V(G) of 1.
    • -
    • the arity, or the number of parameters of the method are used to - determine the weight.
    • -
    - -
    -

    Response For Class - RFC

    - -The response set of a class is the set of all methods that can be invoked as -a result of a message sent to an object of the class. This includes methods -in the class's inheritance hierarchy and methods that can be invoked on -other objects. The Response For Class metric is defined to be size of the -response set for the class. A class which provides a larger response set is -considered to be more complex than one with a smaller response set. -

    -One reason for this is that if a method call on a class can result in a large -number of different method calls on the target and other classes, then it -can be harder to test the behavior of the class and debug problems. It will -typically require a deeper understanding of the potential interactions that -objects of the class can have with the rest of the system. -

    -RFC is defined as the sum of NLM and NRM for the class. The local methods -include all of the public, protected, package and private methods, but not -methods declared only in a superclass. - - -

    Data Abstraction Coupling - DAC

    - -DAC is defined for classes and interfaces. It counts the number of reference -types that are used in the field declarations of the class or interface. The -component types of arrays are also counted. Any field with a type that is -either a supertype or a subtype of the class is not counted. - - -

    Fan Out - FANOUT

    - -FANOUT is defined for classes and interfaces, constructors and methods. It -counts the number of reference types that are used in: -
      -
    • field declarations;
    • -
    • formal parameters and return types;
    • -
    • throws declarations;
    • -
    • local variables.
    • -
    - -The component types of arrays are also counted. Any type that is either a -supertype or a subtype of the class is not counted. - -
    -

    Coupling Between Objects - CBO

    - -When one object or class uses another object or class they are said to be -coupled. One major source of coupling is that between a superclass and a -subclass. A coupling is also introduced when a method or field in another -class is accessed, or when an object of another class is passed into or out -of a method invocation. Coupling Between Objects is a measure of the -non-inheritance coupling between two objects. -

    -A high value of coupling reduces the modularity of the class and makes -reuse more difficult. The more independent a class is the more likely it is -that it will be possible to reuse it in another part of the system. When a -class is coupled to another class it becomes sensitive to changes in that -class, thereby making maintenance for difficult. In addition, a class that is -overly dependent on other classes can be difficult to understand and test in -isolation. -

    -CBO is defined for classes and interfaces, constructors and methods. It -counts the number of reference types that are used in: -

      -
    • field declarations
    • -
    • formal parameters and return types
    • -
    • throws declarations
    • -
    • local variables
    • -
    - -It also counts: -
      -
    • types from which field and method selections are made
    • -
    - -The component types of arrays are also counted. Any type that is either a -supertype or a subtype of the class is not counted. - -
    -

    Lack of Cohesion Of Methods - LCOM

    - -The cohesion of a class is the degree to which its methods are related to -each other. It is determined by examining the pattern of state variable -accesses within the set of methods. If all the methods access the same state -variables then they have high cohesion; if they access disjoint sets of -variables then the cohesion is low. An extreme example of low cohesion -would be if none of the methods accessed any of the state variables. - -If a class exhibits low method cohesion it indicates that the design of the -class has probably been partitioned incorrectly, and could benefit by being -split into more classes with individually higher cohesion. On the other -hand, a high value of cohesion (a low lack of cohesion) implies that the -class is well designed. A cohesive class will tend to provide a high degree -of encapsulation, whereas a lack of cohesion decreases encapsulation and -increases complexity. -

    -Another form of cohesion that is useful for Java programs is cohesion -between nested and enclosing classes. A nested class that has very low -cohesion with its enclosing class would probably better designed as a peer -class rather than a nested class. -

    -LCOM is defined for classes. Operationally, LCOM takes each pair of -methods in the class and determines the set of fields they each access. If -they have disjoint sets of field accesses increase the count P by one. If they -share at least one field access then increase Q by one. After considering -each pair of methods, -LCOM = (P > Q) ? (P - Q) : 0 -

    -Indirect access to fields via local methods can be considered by setting a -metric configuration parameter. - - -

    Number Of Classes - NOC

    - -The overall size of the system can be estimated by calculating the number -of classes it contains. A large system with more classes is more complex -than a smaller one because the number of potential interactions between -objects is higher. This reduces the comprehensibility of the system which -in turn makes it harder to test, debug and maintain. -

    -If the number of classes in the system can be projected during the initial -design phase of the project it can serve as a base for estimating the total -effort and cost of developing, debugging and maintaining the system. -

    -The NOC metric can also usefully be applied at the package and class level -as well as the total system. -

    -NOCL is defined for class and interfaces. It counts the number of classes or -interfaces that are declared. This is usually 1, but nested class declarations -will increase this number. - - - - - - - .bannercell { - border: 0px; - padding: 0px; - } - body { - margin-left: 10; - margin-right: 10; - font:normal 80% arial,helvetica,sanserif; - background-color:#FFFFFF; - color:#000000; - } - .a td { - background: #efefef; - } - .b td { - background: #fff; - } - th, td { - text-align: left; - vertical-align: top; - } - th { - font-weight:bold; - background: #ccc; - color: black; - } - table, th, td { - font-size:100%; - border: none - } - table.log tr td, tr th { - - } - h2 { - font-weight:bold; - font-size:140%; - margin-bottom: 5; - } - h3 { - font-size:100%; - font-weight:bold; - background: #525D76; - color: white; - text-decoration: none; - padding: 5px; - margin-right: 2px; - margin-left: 2px; - margin-bottom: 0; - } - .Error { - font-weight:bold; color:red; - } - - - - - - - - - - - - - - - - -

    Class .

    - - - -
    - -

    Methods

    - - - -
    - - - - -
    - - - - - - - - - - - - - - - -
    -

    -
    - -

    Classes

    - - - - - - - - -
    - -
    - - -
    - - - - - - - - - - - -

    Classes

    - - - - - -
    - - -
    - - - - - - -
    - - - / - - .html - - - - - - - - - - - - - - - - -

    Home

    -

    Packages

    - - - - -
    - - -
    - - - - - - - - - - - - - - - - - - - - - -

    Summary

    - - - - - - - - - - - - - - - - - -
    V(G)LOCDITNOANRMNLMWMCRFCDACFANOUTCBOLCOMNOCL
    - - - - -
    - Note: Metrics evaluate the quality of software by analyzing the program source and quantifying - various kind of complexity. Complexity is a common source of problems and defects in software. - High complexity makes it more difficult to develop, understand, maintain, extend, test and debug - a program. -

    - The primary use of metrics is to focus your attention on those parts of code that potentially are - complexity hot spots. Once the complex areas your program have been uncovered, you can take remedial - actions. - For additional information about metrics and their meaning, please consult - Metamata Metrics manual. -

    - -

    Packages

    - - - - - - -
    - - - - -
    - - - - - - - - - - - -

    Package

    - - - - -
    - - - - - -
    - Note: Metrics evaluate the quality of software by analyzing the program source and quantifying - various kind of complexity. Complexity is a common source of problems and defects in software. - High complexity makes it more difficult to develop, understand, maintain, extend, test and debug - a program. -

    - The primary use of metrics is to focus your attention on those parts of code that potentially are - complexity hot spots. Once the complex areas your program have been uncovered, you can take remedial - actions. - For additional information about metrics and their meaning, please consult - Metamata Metrics manual. -

    - - - -

    Classes

    - - - - - - -
    -
    - - - - -
    - - - - - - - ../ - - - - - - ../ - - - - - - - - stylesheet.css - - - - - - - - - - - - - - - -
    - - http://jakarta.apache.org - -

    Source Code Metrics

    Designed for use with Webgain QA/Metamata Metrics and Ant.
    -
    -
    - - - - - - - - - Name - V(G) - LOC - DIT - NOA - NRM - NLM - WMC - RFC - DAC - FANOUT - CBO - LCOM - NOCL - - - - - - - Name - V(G) - LOC - FANOUT - CBO - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - a - b - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Error - - - - -
    - diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/tagdiff.xsl b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/tagdiff.xsl deleted file mode 100644 index 5d430a79da..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/etc/tagdiff.xsl +++ /dev/null @@ -1,179 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - <xsl:value-of select="$title"/> - - - -

    - -

    - Tagdiff between and - -

    Designed for use with Ant.

    -
    - - - - - -
    - New Files | - Modified Files | - Removed Files -
    - - - New Files - New - - - - - Modified Files - Modified - - - - - - Removed Files - Removed - - -
    - - - -
    - - - - - - - - - - - entries - - (back to top) - - - - - - - -
      - -
    - - - - - - - - - - - - - - - - - - - - mailto: - - - - - - -
  • - - / - - - - - - - - /?rev=&content-type=text/x-cvsweb-markup - - - /?r1=&r2=&diff_format=h - - ( --> ) - - -
  • -
    - - - - - - -
    diff --git a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/plugin.properties b/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/plugin.properties deleted file mode 100644 index 658714d777..0000000000 --- a/equinox-target/plugins/org.apache.ant_1.7.1.v20100518-1145/plugin.properties +++ /dev/null @@ -1,12 +0,0 @@ -############################################################################### -# Copyright (c) 2000, 2010 IBM Corporation and others. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# IBM Corporation - initial API and implementation -############################################################################### -pluginName = Apache Ant -providerName = Eclipse Orbit diff --git a/equinox-target/spring/.directory b/equinox-target/spring/.directory deleted file mode 100644 index a04e2dbbf1..0000000000 --- a/equinox-target/spring/.directory +++ /dev/null @@ -1,7 +0,0 @@ -[Dolphin] -AdditionalInfo=3 -Timestamp=2010,7,9,12,19,24 -ViewMode=1 - -[Settings] -ShowDotFiles=true diff --git a/equinox-target/webapp/configuration/config.ini b/equinox-target/webapp/configuration/config.ini deleted file mode 100644 index edffe00943..0000000000 --- a/equinox-target/webapp/configuration/config.ini +++ /dev/null @@ -1,11 +0,0 @@ -osgi.bundles=org.eclipse.equinox.common@2:start,\ -org.eclipse.update.configurator@3:start,\ -org.eclipse.core.runtime@4:start,\ -plugins/org.eclipse.gemini.web.core@start,\ -plugins/org.eclipse.gemini.web.extender@start,\ -plugins/org.eclipse.gemini.web.tomcat@start,\ -plugins/org.adempiere.webui@start,\ -plugins/org.adempiere.wstore@start,\ -plugins/org.adempiere.serverRoot@start,\ -plugins/org.adempiere.JasperReports.webapp@start - diff --git a/equinox-target/webstart/adempiere-equinox.jnlp b/equinox-target/webstart/adempiere-equinox.jnlp deleted file mode 100644 index 8660f359a1..0000000000 --- a/equinox-target/webstart/adempiere-equinox.jnlp +++ /dev/null @@ -1,57 +0,0 @@ - - - - Adempiere Client 3.5.4a - ADempiere, Inc. - - - Adempiere ERP+CRM ($$context) - Smart Business Solution for Distribution and Service - globally - Adempiere ERP+CRM ($$context) - Adempiere ERP+CRM - Adempiere ERP+CRM ($$context) - - - - - - - - - - - -consoleLog - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/launch/.project b/launch/.project deleted file mode 100644 index bfeec2db9a..0000000000 --- a/launch/.project +++ /dev/null @@ -1,11 +0,0 @@ - - - launch - - - - - - - - diff --git a/launch/Adempiere.ico b/launch/Adempiere.ico deleted file mode 100644 index 14c3ee6ebd599bfc8a5b055443b3114adf0b6b08..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4286 zcmbtWYfP2d75xwgGuE_|n08{u>1g`MOgr^Q)7DIDUx`i3w3*swl6Gn{9Xpv?Q)6PP zrI6I2D8Ax*d?HeLDau1YMYwRe7vwE+fs4HEN_>v`YxjlO~& zKYsisF@E0J*%{p4-tOSjf8)lDJG9Z8H*d=N__wdCt1FupMo#aO%koE$9=$#?G7`jR z;H_J?{s(I5(xo%%LJ@QBhe_Qvg~V zs;{sAa(Q`q*0pQb(9+Uk;*u{LQ+bdt+n8h6W{+u(xJ~8Z_xs`Tc(T|(%UGX*Q#FW< zjSVO$DA-n1R5V5&X8lxLVTl)O5%M?DG$w0lp*8yqM{%)v=*gUpUA=ns5ZBF{iht?S zrEfZ&&VFidFcgE<+nB;)J))tZ0piD;g7q_J>;XLq-5~I zg$v)?xN+k+g;lFo1#&Fb?RG0qll0XZ*08~=t*tfRtE#G`B`PZ`$F0nrhN8>SsHv_t zoWzlRYhn=xJ9kNg<@4FsjKze5Kb!E#!+jKiITs)7NeM%a<>Il9`!ld}+S0rM2{xAK|ht z&G*8>LR`6W1^M~;kY0|I!^k-L7dSJ|q98vHib34OQ#_=nVvvr?hw`NLr%#{$v+#)% zkdcv*P7Y?B@TIr7OJn&_oWd0*Yt+n>?^0(HvLio6e)10F#D~I>5Qgle1ITlvoB84) zJrsk@LHP1@{`~pm;Nai@atTUJP3^Yv6|;@4m=%w3wMID*HL zY+UK6d={l_L2l%SC_W#7ikv7kHF(XqzKdT&Lp|%H)Nr>sC>QcA4H@(Oty{Owr4I9$ zi>DVaUNl(3mFD6i?5ZjcuDKFWkQjoz=rzbs_&cf!&LZdN@8LZ05vs2wF|RGOR$~+Q z2k}ttNI!AV->O~KpYRbL9{$>yGiT;Dx$; zSc>dJzeRD%zlr}l8&u&_P)Xm>Q`quB`!j5Igk6RDdf7T%P*avV$e}dZLRI}e} zf1A2rHv4^OYOFIH6q9tw&dx?!S{m5%kJqhR_eJVH=hUfFeQ|MdNJ>fqdjUC)EM$K6 zKJrih12x5IX!MrBU++OvO(7aQPUJ;>1ZU(Q;XbtnCCUFnYollU4D9OaM0+du;)ZIp z_&@Ju>7cq6c6xd`5)%^<6&2O9bLY-E?2%a~Po6B~yEqwLoH<#j^Hz@U8`4#=wfekh zZK^`?Io3kdhbV|$i=xC$C{Nph8g~rp%QI*f;qw-uy{*OMMY&MDs{dH)20JDu28RwE z%3r^Jy}5ryM@NSqK73f5kdTmIYEONtwc5KsKTo?*5cfCaMXrLs+KHkw8&DX}-b?x? zuBLB6wKEbvj|1Hue)RDCx9l|E^+e)+$aA8$7jDndwnr(_jaSJ*@G^BC3-r2=)2tu-bukbDR{n``*erZIijJk6JO(q6T%-ac{S1j53?VwW#p zKJC4qvCk(5&ygcXbUqk-@t20uKzhozbXUA~>~{Pb*LTfR?5aJpS932_-R<4Gw{pXV z4fE}or+YFFZ?P7-RVUgnbQe$@@@Ln9Fs94D##JYZUGv3Tv2%X|eRhS0hQ2i&=F~Cv z#}d}bb#YMM+EXp6{?z|2mkV51 zxnswU_jt#6X(sto*1~cz$+p4~=BZ@3PKceo_A~ zIxi(9#p3=HL|e!+;~m!YNgnQFmq@>|fg)AS?i|EIhHSpAK8r u8?ph*`cj)^&5^k+D{zVh@Le`(yzSY1t(D1-e2!Vxrv}3v2n@erkpBzBG36`( diff --git a/launch/Adempiere.xml b/launch/Adempiere.xml deleted file mode 100644 index de40a24dea..0000000000 --- a/launch/Adempiere.xml +++ /dev/null @@ -1,44 +0,0 @@ - - true - gui - - Release/Adempiere.exe - - - . - normal - http://java.com/download - - true - false - - Adempiere.ico - - org.compiere.Adempiere - customization.jar - patches.jar - Adempiere.jar - AdempiereCLib.jar - CompiereJasperReqs.jar - - - - 1.6.0 - - preferJre - 48 - 512 - - - 3.6.0.0 - Release 3.6.0LTS - Adempiere ERP & CRM 3.6.0LTS - Adempiere - 3.6.0.0 - Release 3.6.0LTS - Adempier ERP & CRM - Adempiere Bazaar - Adempiere - Adempiere.exe - - \ No newline at end of file diff --git a/launch/Release/Adempiere.exe b/launch/Release/Adempiere.exe deleted file mode 100644 index dc410df1109bb0af8d3b30086eae13eb276d27af..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 31232 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 - - - - - - diff --git a/liberoHR/.project b/liberoHR/.project deleted file mode 100644 index 90618ad07d..0000000000 --- a/liberoHR/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - liberoHR - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/liberoHR/.settings/org.eclipse.jdt.core.prefs b/liberoHR/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index be42cfd5f7..0000000000 --- a/liberoHR/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,8 +0,0 @@ -#Mon Jul 12 13:11:19 MYT 2010 -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 -org.eclipse.jdt.core.compiler.compliance=1.6 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.6 diff --git a/liberoHR/.settings/org.eclipse.pde.core.prefs b/liberoHR/.settings/org.eclipse.pde.core.prefs deleted file mode 100644 index c7a015269a..0000000000 --- a/liberoHR/.settings/org.eclipse.pde.core.prefs +++ /dev/null @@ -1,4 +0,0 @@ -#Mon Jul 12 13:11:19 MYT 2010 -eclipse.preferences.version=1 -pluginProject.extensions=false -resolve.requirebundle=false diff --git a/liberoHR/META-INF/MANIFEST.MF b/liberoHR/META-INF/MANIFEST.MF deleted file mode 100644 index 35d6eb2ba0..0000000000 --- a/liberoHR/META-INF/MANIFEST.MF +++ /dev/null @@ -1,13 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: org.adempiere.libero.hr -Bundle-SymbolicName: org.adempiere.libero.hr -Bundle-Version: 1.0.0 -Bundle-ClassPath: liberoHR.jar -Export-Package: org.compiere.acct, - org.eevolution.form, - org.eevolution.model, - org.eevolution.process -Bundle-RequiredExecutionEnvironment: JavaSE-1.6 -Fragment-Host: org.adempiere.base;bundle-version="0.0.0" -Eclipse-PatchFragment: true diff --git a/liberoHR/build.properties b/liberoHR/build.properties deleted file mode 100644 index e485efee15..0000000000 --- a/liberoHR/build.properties +++ /dev/null @@ -1,2 +0,0 @@ -bin.includes = META-INF/,\ - liberoHR.jar diff --git a/liberoHR/build.xml b/liberoHR/build.xml deleted file mode 100644 index d540cf7119..0000000000 --- a/liberoHR/build.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/liberoMfg/.classpath b/liberoMfg/.classpath deleted file mode 100644 index a488943907..0000000000 --- a/liberoMfg/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/liberoMfg/.project b/liberoMfg/.project deleted file mode 100644 index eb54751dc3..0000000000 --- a/liberoMfg/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - liberoMfg - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/liberoMfg/.settings/org.eclipse.jdt.core.prefs b/liberoMfg/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 16ce53b9d4..0000000000 --- a/liberoMfg/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,8 +0,0 @@ -#Mon Jul 12 13:13:15 MYT 2010 -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 -org.eclipse.jdt.core.compiler.compliance=1.6 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.6 diff --git a/liberoMfg/.settings/org.eclipse.pde.core.prefs b/liberoMfg/.settings/org.eclipse.pde.core.prefs deleted file mode 100644 index c015a111fe..0000000000 --- a/liberoMfg/.settings/org.eclipse.pde.core.prefs +++ /dev/null @@ -1,4 +0,0 @@ -#Mon Jul 12 13:13:15 MYT 2010 -eclipse.preferences.version=1 -pluginProject.extensions=false -resolve.requirebundle=false diff --git a/liberoMfg/META-INF/MANIFEST.MF b/liberoMfg/META-INF/MANIFEST.MF deleted file mode 100644 index 9cd024cc85..0000000000 --- a/liberoMfg/META-INF/MANIFEST.MF +++ /dev/null @@ -1,31 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: org.adempiere.libero.mfg -Bundle-SymbolicName: org.adempiere.libero.mfg -Bundle-Version: 1.0.0 -Bundle-ClassPath: liberoMFG.jar -Export-Package: it.cnr.imaa.essi.lablib.gui.checkboxtree, - org.adempiere.model.engines, - org.compiere.acct, - org.eevolution.exceptions, - org.eevolution.form, - org.eevolution.form.action, - org.eevolution.form.bom, - org.eevolution.form.bom.action, - org.eevolution.form.crp, - org.eevolution.form.tree, - org.eevolution.model, - org.eevolution.model.impl, - org.eevolution.model.reasoner, - org.eevolution.model.wrapper, - org.eevolution.msg, - org.eevolution.process, - org.eevolution.report, - org.eevolution.tools, - org.eevolution.tools.swing, - org.eevolution.tools.worker, - test.functional, - test.functional.mrp -Bundle-RequiredExecutionEnvironment: JavaSE-1.6 -Fragment-Host: org.adempiere.base;bundle-version="0.0.0" -Eclipse-PatchFragment: true diff --git a/liberoMfg/build.properties b/liberoMfg/build.properties deleted file mode 100644 index 1f38498428..0000000000 --- a/liberoMfg/build.properties +++ /dev/null @@ -1,2 +0,0 @@ -bin.includes = META-INF/,\ - liberoMFG.jar diff --git a/liberoMfg/build.xml b/liberoMfg/build.xml deleted file mode 100644 index d540cf7119..0000000000 --- a/liberoMfg/build.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/liberoMfgZk/.classpath b/liberoMfgZk/.classpath deleted file mode 100644 index 4bdb41cc9c..0000000000 --- a/liberoMfgZk/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/liberoMfgZk/.project b/liberoMfgZk/.project deleted file mode 100644 index 34a620b34a..0000000000 --- a/liberoMfgZk/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - liberoMfgZk - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/liberoMfgZk/.settings/org.eclipse.jdt.core.prefs b/liberoMfgZk/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 0e59334fd4..0000000000 --- a/liberoMfgZk/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,8 +0,0 @@ -#Mon Jul 12 13:08:36 MYT 2010 -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 -org.eclipse.jdt.core.compiler.compliance=1.6 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.6 diff --git a/liberoMfgZk/.settings/org.eclipse.pde.core.prefs b/liberoMfgZk/.settings/org.eclipse.pde.core.prefs deleted file mode 100644 index 9c2e701288..0000000000 --- a/liberoMfgZk/.settings/org.eclipse.pde.core.prefs +++ /dev/null @@ -1,4 +0,0 @@ -#Mon Jul 12 13:08:36 MYT 2010 -eclipse.preferences.version=1 -pluginProject.extensions=false -resolve.requirebundle=false diff --git a/liberoMfgZk/META-INF/MANIFEST.MF b/liberoMfgZk/META-INF/MANIFEST.MF deleted file mode 100644 index 76e468e211..0000000000 --- a/liberoMfgZk/META-INF/MANIFEST.MF +++ /dev/null @@ -1,9 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: org.adempiere.libero.mfg.zk -Bundle-SymbolicName: org.adempiere.libero.mfg.zk -Bundle-Version: 1.0.0 -Bundle-ClassPath: liberozkMFG.jar -Bundle-RequiredExecutionEnvironment: JavaSE-1.6 -Fragment-Host: org.adempiere.webui;bundle-version="0.0.0" -Eclipse-PatchFragment: true diff --git a/liberoMfgZk/build.properties b/liberoMfgZk/build.properties deleted file mode 100644 index 811b86e17f..0000000000 --- a/liberoMfgZk/build.properties +++ /dev/null @@ -1,2 +0,0 @@ -bin.includes = META-INF/,\ - liberozkMFG.jar diff --git a/liberoMfgZk/build.xml b/liberoMfgZk/build.xml deleted file mode 100644 index 811ad07d72..0000000000 --- a/liberoMfgZk/build.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/looks/.classpath b/looks/.classpath deleted file mode 100644 index 1d219359cf..0000000000 --- a/looks/.classpath +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/looks/.project b/looks/.project deleted file mode 100644 index 558ab1aa61..0000000000 --- a/looks/.project +++ /dev/null @@ -1,17 +0,0 @@ - - - looks - Adempiere PLAF UI - - - - - org.eclipse.jdt.core.javabuilder - - - - - - org.eclipse.jdt.core.javanature - - diff --git a/looks/PLAF_Test.bat b/looks/PLAF_Test.bat deleted file mode 100644 index eb448f5362..0000000000 --- a/looks/PLAF_Test.bat +++ /dev/null @@ -1,10 +0,0 @@ -@Title PLAF Test - -@Rem $Id: PLAF_Test.bat,v 1.3 2002/03/16 06:00:11 jjanke Exp $ -@Rem Put the swing.properties file in the \rje\lib directory -@set JAVA_HOME=D:\j2sdk1.4.0 - -@Rem -%JAVA_HOME%\jre\bin\java -cp D:\Adempiere\looks\CLooks.jar;%JAVA_HOME%\demo\jfc\SwingSet2\SwingSet2.jar org.compiere.plaf.AdempierePLAF SwingSet2 - -@Pause \ No newline at end of file diff --git a/looks/RUN.bat b/looks/RUN.bat deleted file mode 100644 index be3bc48473..0000000000 --- a/looks/RUN.bat +++ /dev/null @@ -1,2 +0,0 @@ -java -jar CLooks.jar -@pause \ No newline at end of file diff --git a/looks/RUN_build.bat b/looks/RUN_build.bat deleted file mode 100644 index cc086b2279..0000000000 --- a/looks/RUN_build.bat +++ /dev/null @@ -1,25 +0,0 @@ -@Title Build Looks -@Rem $Header: /cvsroot/adempiere/looks/RUN_build.bat,v 1.15 2005/09/16 00:50:55 jjanke Exp $ - -@CALL ..\utils_dev\myDevEnv.bat -@IF NOT %ADEMPIERE_ENV%==Y GOTO NOBUILD - -@echo Cleanup ... -@"%JAVA_HOME%\bin\java" -Dant.home="." %ANT_PROPERTIES% org.apache.tools.ant.Main clean - -@echo Building ... -@"%JAVA_HOME%\bin\java" -Dant.home="." %ANT_PROPERTIES% org.apache.tools.ant.Main looksDistribution - -@echo Documentation ... -@"%JAVA_HOME%\bin\java" -Dant.home="." %ANT_PROPERTIES% org.apache.tools.ant.Main looksDocumentation - -@echo Release ... -@"%JAVA_HOME%\bin\java" -Dant.home="." %ANT_PROPERTIES% org.apache.tools.ant.Main looksRelease - -@Echo Done ... -@sleep 60 -@exit - -:NOBUILD -@Echo Check myDevEnv.bat (copy from myDevEnvTemplate.bat) -@Pause diff --git a/looks/RUN_build.sh b/looks/RUN_build.sh deleted file mode 100644 index 5f80633c60..0000000000 --- a/looks/RUN_build.sh +++ /dev/null @@ -1,18 +0,0 @@ -# Module compiling script -# Ported from Windows script Marek Mosiewicz - - -SAVED_DIR=`pwd` #save current dir -cd `dirname $0`/../utils_dev #change dir to place where script resides - doesn not work with sym links -UTILS_DEV=`pwd` #this is adempiere source -cd $SAVED_DIR #back to the saved directory - -. $UTILS_DEV/myDevEnv.sh #call environment -echo done -if [ ! $ADEMPIERE_ENV==Y ] ; then - echo "Can't set developemeent environemnt - check myDevEnv.sh" - exit 1 -fi - -echo running Ant -$JAVA_HOME/bin/java -Dant.home="." $ANT_PROPERTIES org.apache.tools.ant.Main diff --git a/looks/Swingset.bat b/looks/Swingset.bat deleted file mode 100644 index 1bc80a928c..0000000000 --- a/looks/Swingset.bat +++ /dev/null @@ -1,11 +0,0 @@ -@Title Swingset - -@Rem $Id: Swingset.bat,v 1.1 2002/03/17 02:29:49 jjanke Exp $ -@Rem Put the swing.properties file in the \rje\lib directory -@set JAVA_HOME=D:\j2sdk1.4.0 - -@Rem -%JAVA_HOME%\jre\bin\java -jar %JAVA_HOME%\demo\jfc\SwingSet2\SwingSet2.jar - -@Echo done ... -@Sleep 10 \ No newline at end of file diff --git a/looks/adempiereLooks.jnlp b/looks/adempiereLooks.jnlp deleted file mode 100644 index 2ed0c253f8..0000000000 --- a/looks/adempiereLooks.jnlp +++ /dev/null @@ -1,26 +0,0 @@ - - - - - Adempiere Looks - ADempiere, Inc. - - - Adempiere Looks - Pluggable Look and Feel for Java - Adempiere Looks - Adempiere Looks - Adempiere Looks (Current Release from SorceForge) - - - - - - - - - - - \ No newline at end of file diff --git a/looks/adempiereLooks_local.jnlp b/looks/adempiereLooks_local.jnlp deleted file mode 100644 index af8f4b1add..0000000000 --- a/looks/adempiereLooks_local.jnlp +++ /dev/null @@ -1,26 +0,0 @@ - - - - - Adempiere Looks Local - ADempiere, Inc. - - - Adempiere Looks - Pluggable Look and Feel for Java (Local) - Adempiere Looks (Local) - Adempiere Looks (Local) - Adempiere Looks (Local) - - - - - - - - - - - \ No newline at end of file diff --git a/looks/build.xml b/looks/build.xml deleted file mode 100644 index 548b273ce9..0000000000 --- a/looks/build.xml +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - - - - - Build the UI subproject within the Adempiere project. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - TM Looks API Documentation]]> -
    Adempiere Looks 1.3]]>
    - Copyright (c) 1999-2005 ComPiere, Inc. - Author: Jorg Janke]]> - -
    -
    - - - - - - - - - - - - - - - -
    \ No newline at end of file diff --git a/looks/documentation.bat b/looks/documentation.bat deleted file mode 100644 index 659c934f80..0000000000 --- a/looks/documentation.bat +++ /dev/null @@ -1,5 +0,0 @@ -@Rem API Documentation for Base - -call ..\doc\documentation.bat src doc -private - -@pause \ No newline at end of file diff --git a/looks/javadoc.xml b/looks/javadoc.xml deleted file mode 100644 index f0623d5842..0000000000 --- a/looks/javadoc.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - diff --git a/looks/overview.html b/looks/overview.html deleted file mode 100644 index ec16b5ef70..0000000000 --- a/looks/overview.html +++ /dev/null @@ -1,50 +0,0 @@ - - -Adempiere Looks Overview - - -

    Adempiere Looks - Adempiere Looks is a 3D extension of the Java Metal Look and Feel.

    -

    For updates - check http://www.adempiere.org/looks.

    -

    Overview

    -

    Adempiere Looks was inspired by the Kunststoff - Look and Feel and adds color capabilities as well as texture backgrounds. Adempiere - Looks is free and Open Source.

    -

    Adempiere Looks are based on Java 1.4.0.

    -

    Adempiere Looks Utilities allow you to change the Look and Feel of your application - by the individual user. This is not restricted to the standard and Adempiere - Looks, but also Kunststoff. - You can also define your own Theme.

    -

    Constants

    -

    Start Options

    -

    Change the default Look & Feel

    -

    You can change the default Look & Feel by editing or adding the file swing.properties - in the folder $JAVA_HOME/jre/lib

    -

    Start via AdempierePLAF

    -

    You can change the Look & Feel to the one selected by starting via CompmierePLAF. - Example:

    -
      java -cp AdempiereLooks.jar;SwingSet2.jar 
    -    org.compiere.plaf.AdempierePLAF SwingSet2
    -

    This tries to invoke the main method of the class of if not found the - constructor without parameters.

    -

    Modify main Method

    -

    Just add the line:

    -
      AdempierePLAF.setPLAF();
    -

    Change the Look & Feel

    -

    You set the Look & Feel by invoking the Adempiere PLAF Editor:

    -

    Stand alone:

    -
      java -jar AdempiereLooks.jar
    -  java -cp AdempiereLooks.jar org.compiere.plaf.AdempierePLAF
    -

    or within your program by

    -
      new AdempierePLAFEditor ();
    -

    and from a Dialog or Frame to change the Look and Feel of your current windows - via

    -
      new AdempierePLAFEditor (this);
    -
    -

    You can also set the Adempiere Look directly:

    -
      UIManager.setLookAndFeel
    -    (new org.compiere.plaf.AdempiereLookAndFeel());
    -

     

    - - \ No newline at end of file diff --git a/looks/packages.txt b/looks/packages.txt deleted file mode 100644 index 7b9e734446..0000000000 --- a/looks/packages.txt +++ /dev/null @@ -1,3 +0,0 @@ -org.compiere.plaf -org.compiere.swing -org.compiere.util diff --git a/looks/src/.hgignore b/looks/src/.hgignore deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/looks/swing.properties b/looks/swing.properties deleted file mode 100644 index a3738c106e..0000000000 --- a/looks/swing.properties +++ /dev/null @@ -1,10 +0,0 @@ -swing.defaultlaf=org.adempiere.plaf.AdempiereLookAndFeel -swing.installedlafs=Metal,Motif,Windows,Adempiere -swing.installedlaf.Metal.class=javax.swing.plaf.metal.MetalLookAndFeel -swing.installedlaf.Metal.name=Metal -swing.installedlaf.Motif.class=com.sun.java.swing.plaf.motif.MotifLookAndFeel -swing.installedlaf.Motif.name=CDE/Motif -swing.installedlaf.Windows.class=com.sun.java.swing.plaf.windows.WindowsLookAndFeel -swing.installedlaf.Windows.name=MS Windows -swing.installedlaf.Adempiere.class=org.compiere.plaf.AdempiereLookAndFeel -swing.installedlaf.Adempiere.name=Adempiere diff --git a/org.adempiere.base-feature/feature.xml b/org.adempiere.base-feature/feature.xml index b63238e534..079999879f 100644 --- a/org.adempiere.base-feature/feature.xml +++ b/org.adempiere.base-feature/feature.xml @@ -36,6 +36,18 @@ id="org.adempiere.report.jasper" version="0.0.0"/> + + + + + + - - - - - - - - - - - - - - - - - - - + + diff --git a/org.adempiere.install/META-INF/MANIFEST.MF b/org.adempiere.install/META-INF/MANIFEST.MF index 786e6e043f..ba9cf01f58 100644 --- a/org.adempiere.install/META-INF/MANIFEST.MF +++ b/org.adempiere.install/META-INF/MANIFEST.MF @@ -8,7 +8,7 @@ Bundle-ClassPath: install.jar, Export-Package: org.compiere.install Require-Bundle: org.adempiere.base;bundle-version="1.0.0" Bundle-RequiredExecutionEnvironment: JavaSE-1.6 -Import-Package: javax.mail;version="1.4.1", - javax.mail.internet;version="1.4.1", +Import-Package: javax.mail;version="1.4.0", + javax.mail.internet;version="1.4.0", org.apache.tools.ant, org.eclipse.equinox.app diff --git a/org.adempiere.pipo.handlers/plugin.xml b/org.adempiere.pipo.handlers/plugin.xml index f163e56f08..0286b73627 100644 --- a/org.adempiere.pipo.handlers/plugin.xml +++ b/org.adempiere.pipo.handlers/plugin.xml @@ -29,7 +29,7 @@ id="AD_Form"> + + + + diff --git a/org.adempiere.server-feature/server.product b/org.adempiere.server-feature/server.product index cb86ebae4e..b6de3180ca 100644 --- a/org.adempiere.server-feature/server.product +++ b/org.adempiere.server-feature/server.product @@ -1,20 +1,20 @@ - + -console - -Dosgi.noShutdown=true -Dosgi.framework.activeThreadType=normal -DPropertyFile=/media/W/Workspace/hengsin/trunk-local.properties + -Dosgi.noShutdown=true -Dosgi.framework.activeThreadType=normal -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts - + diff --git a/org.adempiere.server/META-INF/MANIFEST.MF b/org.adempiere.server/META-INF/MANIFEST.MF index 64026c5e60..af3c731e1f 100644 --- a/org.adempiere.server/META-INF/MANIFEST.MF +++ b/org.adempiere.server/META-INF/MANIFEST.MF @@ -6,17 +6,17 @@ Bundle-Version: 1.0.0.qualifier Require-Bundle: org.adempiere.base;bundle-version="1.0.0", org.eclipse.equinox.app;bundle-version="1.3.0" Bundle-RequiredExecutionEnvironment: JavaSE-1.6 -Web-ContextPath: admin +Web-ContextPath: / Bundle-ClassPath: WEB-INF/lib/jardiff.jar, WEB-INF/lib/jnlp-servlet.jar, . Import-Package: javax.jms;version="1.1.0", - javax.mail;version="1.4.1", + javax.mail;version="1.4.0", javax.servlet;version="2.5.0", javax.servlet.http;version="2.5.0", org.apache.activemq;version="5.3.0", - org.apache.commons.codec;version="1.4.0", - org.apache.commons.codec.binary;version="1.4.0", + org.apache.commons.codec;version="1.3.0", + org.apache.commons.codec.binary;version="1.3.0", org.apache.ecs, org.apache.ecs.xhtml, org.restlet, diff --git a/org.adempiere.server/adempiere.html b/org.adempiere.server/adempiere.html index 3e66ea75db..266d8d325e 100644 --- a/org.adempiere.server/adempiere.html +++ b/org.adempiere.server/adempiere.html @@ -153,7 +153,7 @@ If you have trouble starting, try Local Install - ADempiere Client ZipInstall  Java 6 JRE (Runtime); Download and extract the ADempiere Client zip file on your Client;.
    + ADempiere Client ZipInstall  Java 6 JRE (Runtime); Download and extract the ADempiere Client zip file on your Client;.
    Start ADempiere via RUN_Adempiere @@ -188,7 +188,7 @@ Start ADempiere via RUN_Adempiere -

    ADempiere Server Management +

    ADempiere Server Management

    diff --git a/org.apache.ecs/bin/org/apache/ecs/ecs.properties b/org.apache.ecs/bin/org/apache/ecs/ecs.properties deleted file mode 100644 index fdbd8114eb..0000000000 --- a/org.apache.ecs/bin/org/apache/ecs/ecs.properties +++ /dev/null @@ -1,16 +0,0 @@ -filter_state=false -filter_attribute_state=false -attribute_equality_sign="=" -begin_start_modifier=" " -end_start_modifier=" " -begin_end_modifier=" " -end_end_modifier=" " -attribute_quote_char=" -attribute_quote=true -end_element=true -codeset=UTF-8 -position=4 -case_type=3 -start_tag=< -end_tag=> -pretty_print=true diff --git a/org.apache.ecs/bin/org/apache/ecs/filter/package.html b/org.apache.ecs/bin/org/apache/ecs/filter/package.html deleted file mode 100644 index 37af5ac9a8..0000000000 --- a/org.apache.ecs/bin/org/apache/ecs/filter/package.html +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/org.apache.ecs/bin/org/apache/ecs/package.html b/org.apache.ecs/bin/org/apache/ecs/package.html deleted file mode 100644 index 218bd1d0db..0000000000 --- a/org.apache.ecs/bin/org/apache/ecs/package.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - -Provides for.... - -

    Package Specification

    - - - -

    Related Documentation

    - -For overviews, tutorials, examples, guides, and tool documentation, please see: - - - - - - diff --git a/org.apache.ecs/bin/org/apache/ecs/xml/package.html b/org.apache.ecs/bin/org/apache/ecs/xml/package.html deleted file mode 100644 index 37af5ac9a8..0000000000 --- a/org.apache.ecs/bin/org/apache/ecs/xml/package.html +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/plugins/TestPlugin/.classpath b/plugins/TestPlugin/.classpath deleted file mode 100644 index 64c5e31b7a..0000000000 --- a/plugins/TestPlugin/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/plugins/TestPlugin/.project b/plugins/TestPlugin/.project deleted file mode 100644 index c076fb0c19..0000000000 --- a/plugins/TestPlugin/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - TestPlugin - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/plugins/TestPlugin/.settings/org.eclipse.jdt.core.prefs b/plugins/TestPlugin/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 534f9e484d..0000000000 --- a/plugins/TestPlugin/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,8 +0,0 @@ -#Sat Jan 30 21:34:42 CET 2010 -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 -org.eclipse.jdt.core.compiler.compliance=1.5 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.5 diff --git a/plugins/TestPlugin/.settings/org.eclipse.pde.core.prefs b/plugins/TestPlugin/.settings/org.eclipse.pde.core.prefs deleted file mode 100644 index 72573f1b9d..0000000000 --- a/plugins/TestPlugin/.settings/org.eclipse.pde.core.prefs +++ /dev/null @@ -1,4 +0,0 @@ -#Sat Jan 30 21:35:00 CET 2010 -eclipse.preferences.version=1 -pluginProject.extensions=true -resolve.requirebundle=false diff --git a/plugins/TestPlugin/META-INF/MANIFEST.MF b/plugins/TestPlugin/META-INF/MANIFEST.MF deleted file mode 100644 index 36a9037756..0000000000 --- a/plugins/TestPlugin/META-INF/MANIFEST.MF +++ /dev/null @@ -1,11 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: TestPlugin -Bundle-SymbolicName: org.adempiere.base.TestPlugin;singleton:=true -Bundle-Version: 0.0.0.1 -Bundle-Activator: org.adempiere.testplugin.Activator -Bundle-ActivationPolicy: lazy -Bundle-RequiredExecutionEnvironment: J2SE-1.5 -Import-Package: org.adempiere.plugin.utils, - org.osgi.framework;version="1.3.0" -Require-Bundle: org.adempiere.base;bundle-version="0.0.0" diff --git a/plugins/TestPlugin/build.properties b/plugins/TestPlugin/build.properties deleted file mode 100644 index e9863e281e..0000000000 --- a/plugins/TestPlugin/build.properties +++ /dev/null @@ -1,5 +0,0 @@ -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - plugin.xml diff --git a/plugins/TestPlugin/plugin.xml b/plugins/TestPlugin/plugin.xml deleted file mode 100644 index 7d9b37eee3..0000000000 --- a/plugins/TestPlugin/plugin.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - diff --git a/plugins/TestPlugin/src/org/adempiere/testplugin/Activator.java b/plugins/TestPlugin/src/org/adempiere/testplugin/Activator.java deleted file mode 100644 index 17824addd1..0000000000 --- a/plugins/TestPlugin/src/org/adempiere/testplugin/Activator.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.adempiere.testplugin; - -import org.adempiere.base.Service; -import org.adempiere.plugin.utils.AdempiereActivator; -import org.osgi.framework.BundleActivator; -import org.osgi.framework.BundleContext; - -public class Activator extends AdempiereActivator { - - @Override - protected void start() { - System.out.println("Testplugin starting..."); - } - - @Override - protected void stop() { - System.out.println("Testplugin stopping..."); - } -} diff --git a/plugins/TestPlugin/src/org/adempiere/testplugin/MyCallout1.java b/plugins/TestPlugin/src/org/adempiere/testplugin/MyCallout1.java deleted file mode 100644 index 34bc7d1afb..0000000000 --- a/plugins/TestPlugin/src/org/adempiere/testplugin/MyCallout1.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.adempiere.testplugin; - -import java.util.Properties; - -import org.adempiere.base.IColumnCallout; -import org.compiere.model.Callout; -import org.compiere.model.GridField; -import org.compiere.model.GridTab; - -public class MyCallout1 implements IColumnCallout { - - public String start(Properties ctx, int WindowNo, GridTab mTab, - GridField mField, Object value, Object oldValue) { - System.out.println("Callout on C_Order.Description: "+oldValue+"->"+value); - return null; - } - -} diff --git a/serverApps/.classpath b/serverApps/.classpath deleted file mode 100644 index 2786a85f33..0000000000 --- a/serverApps/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/serverApps/.project b/serverApps/.project deleted file mode 100644 index d1dd607aa1..0000000000 --- a/serverApps/.project +++ /dev/null @@ -1,32 +0,0 @@ - - - serverApps - - - base - dbPort - looks - tools - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.jdt.core.javanature - org.eclipse.pde.PluginNature - - diff --git a/serverApps/.settings/com.genuitec.jboss.ide.eclipse.xdoclet.run.prefs b/serverApps/.settings/com.genuitec.jboss.ide.eclipse.xdoclet.run.prefs deleted file mode 100644 index 198a961cc4..0000000000 --- a/serverApps/.settings/com.genuitec.jboss.ide.eclipse.xdoclet.run.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#Thu Sep 15 18:36:13 PDT 2005 -eclipse.preferences.version=1 -xdoclet.build.policy=automatic diff --git a/serverApps/.settings/org.eclipse.jdt.core.prefs b/serverApps/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 6cde564def..0000000000 --- a/serverApps/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,8 +0,0 @@ -#Wed Jul 14 15:53:17 MYT 2010 -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 -org.eclipse.jdt.core.compiler.compliance=1.6 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.6 diff --git a/serverApps/.settings/org.eclipse.jdt.ui.prefs b/serverApps/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 15cfde9aec..0000000000 --- a/serverApps/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#Thu Sep 21 14:16:48 PDT 2006 -eclipse.preferences.version=1 -org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/serverApps/.settings/org.eclipse.ltk.core.refactoring.prefs b/serverApps/.settings/org.eclipse.ltk.core.refactoring.prefs deleted file mode 100644 index 364ca3a238..0000000000 --- a/serverApps/.settings/org.eclipse.ltk.core.refactoring.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#Thu Sep 21 14:16:48 PDT 2006 -eclipse.preferences.version=1 -org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false diff --git a/sqlj/.classpath b/sqlj/.classpath deleted file mode 100644 index db60f60b3f..0000000000 --- a/sqlj/.classpath +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/sqlj/.project b/sqlj/.project deleted file mode 100644 index c49402859a..0000000000 --- a/sqlj/.project +++ /dev/null @@ -1,22 +0,0 @@ - - - sqlj - - - - - - org.eclipse.jdt.core.javabuilder - - - - - com.ibm.etools.validation.validationbuilder - - - - - - org.eclipse.jdt.core.javanature - - diff --git a/sqlj/.settings/com.genuitec.jboss.ide.eclipse.xdoclet.run.prefs b/sqlj/.settings/com.genuitec.jboss.ide.eclipse.xdoclet.run.prefs deleted file mode 100644 index ea6c3a0c61..0000000000 --- a/sqlj/.settings/com.genuitec.jboss.ide.eclipse.xdoclet.run.prefs +++ /dev/null @@ -1,4 +0,0 @@ -#Sat Apr 22 20:31:20 PDT 2006 -eclipse.preferences.version=1 -xdoclet.build.policy=automatic -xdoclet.jdk.support=jdk5 diff --git a/sqlj/.settings/org.eclipse.jdt.core.prefs b/sqlj/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 90f1a01bca..0000000000 --- a/sqlj/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,12 +0,0 @@ -#Fri Feb 04 21:49:30 EST 2005 -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.compliance=1.3 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.1 -org.eclipse.jdt.core.compiler.problem.enumIdentifier=ignore -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled -org.eclipse.jdt.core.compiler.source=1.3 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=ignore diff --git a/sqlj/.settings/org.eclipse.jdt.ui.prefs b/sqlj/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 2d59f77015..0000000000 --- a/sqlj/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#Thu Sep 29 20:01:57 PDT 2005 -eclipse.preferences.version=1 -internal.default.compliance=default diff --git a/sqlj/RUN_build.bat b/sqlj/RUN_build.bat deleted file mode 100644 index 9b2eb11ece..0000000000 --- a/sqlj/RUN_build.bat +++ /dev/null @@ -1,24 +0,0 @@ -@Title Build SQLJ -@Rem $Header: /cvsroot/adempiere/sqlj/RUN_build.bat,v 1.5 2005/09/16 00:50:04 jjanke Exp $ -@Rem -@Rem Note that the SQLJ build is not part of the normal build cycle. -@Rem You need to build the sqlj.jar file either with this script -@Rem or with the 'compile' script for older Java versions -@Rem You then deploy it with the database dependent 'create' script - -@CALL ..\utils_dev\myDevEnv.bat -@IF NOT %ADEMPIERE_ENV%==Y GOTO NOBUILD - -@echo Cleanup ... -@"%JAVA_HOME%\bin\java" -Dant.home="." %ANT_PROPERTIES% org.apache.tools.ant.Main clean - -@echo Building ... -@"%JAVA_HOME%\bin\java" -Dant.home="." %ANT_PROPERTIES% org.apache.tools.ant.Main sqljDist - -@Echo Done ... -@sleep 60 -@exit - -:NOBUILD -@Echo Check myDevEnv.bat (copy from myDevEnvTemplate.bat) -@Pause diff --git a/sqlj/RUN_build.sh b/sqlj/RUN_build.sh deleted file mode 100755 index 8dd9db4b14..0000000000 --- a/sqlj/RUN_build.sh +++ /dev/null @@ -1,26 +0,0 @@ -# Module compiling script -# Ported from Windows script -echo Title Build SQLJ -# $Header: /cvsroot/compiere/sqlj/RUN_build.bat,v 1.4 2005/02/03 07:10:24 jjanke Exp $ -# -# Note that the SQLJ build is not part of the normal build cycle. -# You need to build the sqlj.jar file either with this script -# or with the 'compile' script for older Java versions -# You then deploy it with the database dependent 'create' script - -SAVED_DIR=`pwd` #save current dir -cd `dirname $0`/../utils_dev #change dir to place where script resides - doesn not work with sym links -UTILS_DEV=`pwd` #this is compiere source -cd $SAVED_DIR #back to the saved directory - -. $UTILS_DEV/myDevEnv.sh #call environment -echo done -if [ ! $COMPIERE_ENV==Y ] ; then - echo "Can't set developemeent environemnt - check myDevEnv.sh" - exit 1 -fi - -echo running Ant -$JAVA_HOME/bin/java -Dant.home="." $ANT_PROPERTIES org.apache.tools.ant.Main clean -echo Building ... -$JAVA_HOME/bin/java -Dant.home="." $ANT_PROPERTIES org.apache.tools.ant.Main sqljDist diff --git a/sqlj/SQL J.epj b/sqlj/SQL J.epj deleted file mode 100644 index 77ea818df3..0000000000 --- a/sqlj/SQL J.epj +++ /dev/null @@ -1,29 +0,0 @@ -Begin Project "SQL J", "", VC_PROJECT=, AUXPROJPATH= -DATASOURCE= -DATABASE= - -Begin SubProject "oracle", "", PATH=.\oracle - -Begin File "createSQLJ.sql" -PATH=.\oracle\createSQLJ.sql -DESCRIPTION= -INCLUDE=1 -BUILDINDEX=-1 -OBJECTTYPE=-1 -End File - -End SubProject - -Begin SubProject "sybase", "", PATH=.\sybase - -Begin File "createSQLJ.sql" -PATH=.\sybase\createSQLJ.sql -DESCRIPTION= -INCLUDE=1 -BUILDINDEX=-1 -OBJECTTYPE=-1 -End File - -End SubProject - -End Project diff --git a/sqlj/build.xml b/sqlj/build.xml deleted file mode 100644 index 7b5bc09eec..0000000000 --- a/sqlj/build.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - -
    - -
    -
    -
    - - - - - - - - -
    \ No newline at end of file diff --git a/sqlj/compile.bat b/sqlj/compile.bat deleted file mode 100644 index 6d25b1fbbf..0000000000 --- a/sqlj/compile.bat +++ /dev/null @@ -1,18 +0,0 @@ -@Title Compile + Jar SQLJ -@Rem @version $Id: compile.bat,v 1.5 2005/02/04 17:23:33 jjanke Exp $ -@Rem -@Rem Note that some databases require an older Java version -@Rem and that the Zip is uncompressed -@Rem -@Rem Oracle: 1.4.2 - (you can use RUN_Build) -@Rem Sybase: 1.2.2 - -@Rem -@SET PATH=C:\jdk1.2.2\bin;%PATH% -@SET JAVA_HOME=C:\jdk1.2.2 -@java -version - -javac -sourcepath src -d lib src/org/adempiere/sqlj/Adempiere.java src/org/adempiere/sqlj/Product.java src/org/adempiere/sqlj/Currency.java src/org/adempiere/sqlj/BPartner.java src/org/adempiere/sqlj/Invoice.java src/org/adempiere/sqlj/Payment.java src/org/adempiere/sqlj/PaymentTerm.java src/org/adempiere/sqlj/Account.java - -jar cf0 sqlj.jar -C lib org/adempiere/sqlj - -pause \ No newline at end of file diff --git a/sqlj/oracle/RUN_sqlj.bat b/sqlj/oracle/RUN_sqlj.bat deleted file mode 100644 index 51797afb2b..0000000000 --- a/sqlj/oracle/RUN_sqlj.bat +++ /dev/null @@ -1,10 +0,0 @@ -@if (%ADEMPIERE_HOME%) == () (CALL ..\myEnvironment.bat Server) else (CALL %ADEMPIERE_HOME%\utils\myEnvironment.bat Server) -@Title Create Oracle SQLJ - %ADEMPIERE_HOME% (%ADEMPIERE_DB_NAME%) -@Rem -@Rem Author + Copyright 1999-2005 Jorg Janke -@Rem $Id: RUN_sqlj.bat,v 1.1 2005/04/27 05:21:46 jjanke Exp $ -@Rem - -call create %ADEMPIERE_DB_USER%/%ADEMPIERE_DB_PASSWORD% - -@pause diff --git a/sqlj/oracle/RUN_sqlj.sh b/sqlj/oracle/RUN_sqlj.sh deleted file mode 100644 index f39d059511..0000000000 --- a/sqlj/oracle/RUN_sqlj.sh +++ /dev/null @@ -1,10 +0,0 @@ -# Author + Copyright 1999-2005 Jorg Janke -# $Id: RUN_sqlj.sh,v 1.1 2005/05/31 07:28:21 jjanke Exp $ -if [ $ADEMPIERE_HOME ]; then - cd $ADEMPIERE_HOME/utils -fi -. ./myEnvironment.sh Server -echo Create Oracle SQLJ - $ADEMPIERE_HOME \($ADEMPIERE_DB_NAME\) - -sh $ADEMPIERE_DB_PATH/create.sh $ADEMPIERE_DB_USER/$ADEMPIERE_DB_PASSWORD - diff --git a/sqlj/oracle/create.bat b/sqlj/oracle/create.bat deleted file mode 100644 index 6e8525f055..0000000000 --- a/sqlj/oracle/create.bat +++ /dev/null @@ -1,16 +0,0 @@ -@Rem Create Oracle SQLJ -@Rem Author + Copyright 1999-2005 Jorg Janke -@Rem $Id: create.bat,v 1.8 2005/05/31 07:28:22 jjanke Exp $ -@Rem -@Rem Parameter: / -@Rem - -@Echo . -@Echo Load Oracle SQLJ ... -@SET CLASSPATH= -@call loadjava -user %1@%ADEMPIERE_DB_SERVER%/%ADEMPIERE_DB_NAME% -verbose -force -resolve %ADEMPIERE_HOME%\lib\sqlj.jar - -@Echo . - -@Echo Create Oracle Functions ... -@sqlplus %1@%ADEMPIERE_DB_SERVER%/%ADEMPIERE_DB_NAME% @%ADEMPIERE_HOME%\utils\oracle\createSQLJ.sql diff --git a/sqlj/oracle/create.sh b/sqlj/oracle/create.sh deleted file mode 100644 index 88cad4898a..0000000000 --- a/sqlj/oracle/create.sh +++ /dev/null @@ -1,15 +0,0 @@ -# Create Oracle SQLJ -# Author + Copyright 1999-2005 Jorg Janke -# $Id: create.sh,v 1.3 2005/06/28 18:55:38 jjanke Exp $ -# -# Parameter: / - -# unset CLASSPATH= - -echo . -echo Load Oracle SQLJ ... -loadjava -user $1@$ADEMPIERE_DB_SERVER/$ADEMPIERE_DB_NAME -verbose -force -resolve $ADEMPIERE_HOME/lib/sqlj.jar - -echo . -echo Create Oracle Functions ... -sqlplus $1@$ADEMPIERE_DB_SERVER/$ADEMPIERE_DB_NAME @$ADEMPIERE_HOME/utils/oracle/createSQLJ.sql diff --git a/sqlj/oracle/createSQLJ.sql b/sqlj/oracle/createSQLJ.sql deleted file mode 100644 index 45bab88ff4..0000000000 --- a/sqlj/oracle/createSQLJ.sql +++ /dev/null @@ -1,275 +0,0 @@ -/** - * Create SQL Java Functions (Oracle) - * - * Author + Copyright 1999-2005 Jorg Janke - * $Header: /cvs/adempiere/sqlj/oracle/createSQLJ.sql,v 1.1 2006/04/21 18:04:47 jjanke Exp $ - */ - -CREATE OR REPLACE FUNCTION adempiereVersion - RETURN VARCHAR2 - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Adempiere.getVersion() return java.lang.String'; -/ -CREATE OR REPLACE FUNCTION adempiereProperties - RETURN VARCHAR2 - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Adempiere.getProperties() return java.lang.String'; -/ -CREATE OR REPLACE FUNCTION adempiereProperty(p_key VARCHAR2) - RETURN VARCHAR2 - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Adempiere.getProperty(java.lang.String) return java.lang.String'; -/ -CREATE OR REPLACE FUNCTION get_Sysconfig(Name VARCHAR2, defaultValue VARCHAR2, AD_Client_ID NUMBER, AD_Org_ID NUMBER) - RETURN VARCHAR2 - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Adempiere.get_Sysconfig(java.lang.String,java.lang.String,int,int) return java.lang.String'; -/ - -/** Product **/ -CREATE OR REPLACE FUNCTION productAttribute (M_AttributeSetInstance_ID NUMBER) - RETURN NVARCHAR2 - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Product.attributeName(int) return java.lang.String'; -/ - -CREATE OR REPLACE FUNCTION bomPriceLimit (M_Product_ID NUMBER, M_PriceList_Version_ID NUMBER) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Product.bomPriceLimit(int,int) return java.math.BigDecimal'; -/ -CREATE OR REPLACE FUNCTION bomPriceList (M_Product_ID NUMBER, M_PriceList_Version_ID NUMBER) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Product.bomPriceList(int,int) return java.math.BigDecimal'; -/ -CREATE OR REPLACE FUNCTION bomPriceStd (M_Product_ID NUMBER, M_PriceList_Version_ID NUMBER) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Product.bomPriceStd(int,int) return java.math.BigDecimal'; -/ - -CREATE OR REPLACE FUNCTION bomQtyAvailable (M_Product_ID NUMBER, M_Warehouse_ID NUMBER, - M_Locator_ID NUMBER) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Product.bomQtyAvailable(int,int,int) return java.math.BigDecimal'; -/ -CREATE OR REPLACE FUNCTION bomQtyOnHand (M_Product_ID NUMBER, M_Warehouse_ID NUMBER, - M_Locator_ID NUMBER) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Product.bomQtyOnHand(int,int,int) return java.math.BigDecimal'; -/ -CREATE OR REPLACE FUNCTION bomQtyOrdered (M_Product_ID NUMBER, M_Warehouse_ID NUMBER, - M_Locator_ID NUMBER) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Product.bomQtyOrdered(int,int,int) return java.math.BigDecimal'; -/ -CREATE OR REPLACE FUNCTION bomQtyReserved (M_Product_ID NUMBER, M_Warehouse_ID NUMBER, - M_Locator_ID NUMBER) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Product.bomQtyReserved(int,int,int) return java.math.BigDecimal'; -/ - - -CREATE OR REPLACE FUNCTION bomQtyAvailableASI (M_Product_ID NUMBER, M_AttributeSetInstance_ID NUMBER, M_Warehouse_ID NUMBER, - M_Locator_ID NUMBER) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Product.bomQtyAvailableASI(int,int,int,int) return java.math.BigDecimal'; -/ -CREATE OR REPLACE FUNCTION bomQtyOnHandASI (M_Product_ID NUMBER,M_AttributeSetInstance_ID NUMBER, M_Warehouse_ID NUMBER, - M_Locator_ID NUMBER) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Product.bomQtyOnHandASI(int,int,int,int) return java.math.BigDecimal'; -/ -CREATE OR REPLACE FUNCTION bomQtyOrderedASI (M_Product_ID NUMBER, M_AttributeSetInstance_ID NUMBER, M_Warehouse_ID NUMBER, - M_Locator_ID NUMBER) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Product.bomQtyOrderedASI(int,int,int,int) return java.math.BigDecimal'; -/ -CREATE OR REPLACE FUNCTION bomQtyReservedASI (M_Product_ID NUMBER, M_AttributeSetInstance_ID NUMBER, M_Warehouse_ID NUMBER, - M_Locator_ID NUMBER) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Product.bomQtyReservedASI(int,int,int,int) return java.math.BigDecimal'; -/ - -/** Currency **/ -CREATE OR REPLACE FUNCTION currencyBase (Amount NUMBER, C_CurrencyFrom_ID NUMBER, - ConversionDate DATE, AD_Client_ID NUMBER, AD_Org_ID NUMBER) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Currency.base(java.math.BigDecimal,int,java.sql.Timestamp,int,int) return java.math.BigDecimal'; -/ -CREATE OR REPLACE FUNCTION currencyConvert (Amount NUMBER, C_CurrencyFrom_ID NUMBER, - C_CurrencyTo_ID NUMBER, - ConversionDate DATE, C_ConversionType_ID NUMBER, AD_Client_ID NUMBER, AD_Org_ID NUMBER) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Currency.convert(java.math.BigDecimal,int,int,java.sql.Timestamp,int,int,int) return java.math.BigDecimal'; -/ -CREATE OR REPLACE FUNCTION currencyRate (C_CurrencyFrom_ID NUMBER, C_CurrencyTo_ID NUMBER, - ConversionDate DATE, C_ConversionType_ID NUMBER, AD_Client_ID NUMBER, AD_Org_ID NUMBER) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Currency.rate(int,int,java.sql.Timestamp,int,int,int) return java.math.BigDecimal'; -/ -CREATE OR REPLACE FUNCTION currencyRound (Amt NUMBER, C_CurrencyTo_ID NUMBER, IsCosting VARCHAR2) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Currency.round(java.math.BigDecimal,int,java.lang.String) return java.math.BigDecimal'; -/ - -/** BPartner **/ -CREATE OR REPLACE FUNCTION bpartnerRemitLocation (p_C_BPartner_ID NUMBER) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.BPartner.remitLocation(int) return int'; -/ - -/** Invoice **/ -CREATE OR REPLACE FUNCTION invoiceOpen (p_C_Invoice_ID NUMBER, p_C_InvoicePaySchedule_ID NUMBER) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Invoice.open(int,int) return java.math.BigDecimal'; -/ - -CREATE OR REPLACE FUNCTION invoicePaid (p_C_Invoice_ID NUMBER, p_C_Currency_ID NUMBER, - p_MultiplierAP NUMBER) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Invoice.paid(int,int,int) return java.math.BigDecimal'; -/ - - -CREATE OR REPLACE FUNCTION invoiceOpenToDate (p_C_Invoice_ID NUMBER, p_C_InvoicePaySchedule_ID NUMBER,p_AcctDate DATE) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Invoice.openToDate(int,int,java.sql.Timestamp) return java.math.BigDecimal'; -/ - -CREATE OR REPLACE FUNCTION invoicePaidToDate (p_C_Invoice_ID NUMBER, p_C_Currency_ID NUMBER, p_MultiplierAP NUMBER,p_AcctDate DATE) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Invoice.paidToDate(int,int,int,java.sql.Timestamp) return java.math.BigDecimal'; -/ -CREATE OR REPLACE FUNCTION invoiceDiscount (p_C_Invoice_ID NUMBER, p_PayDate Date, - p_C_InvoicePaySchedule_ID NUMBER) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Invoice.discount(int,java.sql.Timestamp,int) return java.math.BigDecimal'; -/ - -/** Payment Term **/ -CREATE OR REPLACE FUNCTION paymentTermDueDays (p_C_PaymentTerm_ID NUMBER, p_DocDate DATE, - p_PayDate DATE) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.PaymentTerm.dueDays(int,java.sql.Timestamp,java.sql.Timestamp) return int'; -/ -CREATE OR REPLACE FUNCTION paymentTermDiscount (p_Amount NUMBER, p_C_Currency_ID NUMBER, - p_C_PaymentTerm_ID NUMBER, p_DocDate DATE, p_PayDate DATE) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.PaymentTerm.discount(java.math.BigDecimal,int,int,java.sql.Timestamp,java.sql.Timestamp) return java.math.BigDecimal'; -/ -CREATE OR REPLACE FUNCTION paymentTermDueDate (p_C_PaymentTerm_ID NUMBER, p_DocDate DATE) - RETURN DATE - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.PaymentTerm.dueDate(int,java.sql.Timestamp) return java.sql.Timestamp'; -/ - -/** Payment **/ -CREATE OR REPLACE FUNCTION paymentAllocated (p_C_Payment_ID NUMBER, p_C_Currency_ID NUMBER) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Payment.allocated(int,int) return java.math.BigDecimal'; -/ -CREATE OR REPLACE FUNCTION paymentAvailable (p_C_Payment_ID NUMBER) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Payment.available(int) return java.math.BigDecimal'; -/ - -/** Account **/ -CREATE OR REPLACE FUNCTION acctBalance (p_Account_ID NUMBER, p_AmtDr NUMBER, p_AmtCr NUMBER) - RETURN NUMBER - AS LANGUAGE JAVA - NAME 'org.compiere.sqlj.Account.balance(int,java.math.BigDecimal,java.math.BigDecimal) return java.math.BigDecimal'; -/ - -/** General **/ -BEGIN - dbms_java.grant_permission('ADEMPIERE','SYS:java.util.PropertyPermission', '*', 'read,write'); -END; -/ - -/** Get Character at Position */ -CREATE OR REPLACE FUNCTION charAt -( - p_string VARCHAR2, - p_pos NUMBER -) - RETURN VARCHAR2 -AS -BEGIN - RETURN SUBSTR(p_string, p_pos, 1); -END; -/ -/** GetDate */ -CREATE OR REPLACE FUNCTION getdate - RETURN DATE -AS -BEGIN - RETURN SysDate; -END; -/ -/** First Of DD/DY/MM/Q */ -CREATE OR REPLACE FUNCTION firstOf -( - p_date DATE, - p_datePart VARCHAR2 -) - RETURN DATE -AS -BEGIN - RETURN TRUNC(p_date, p_datePart); -END; -/ -/** Add Number of Days */ -CREATE OR REPLACE FUNCTION addDays -( - p_date DATE, - p_days NUMBER -) - RETURN DATE -AS -BEGIN - RETURN TRUNC(p_date) + p_days; -END; -/ -/** Difference in Days */ -CREATE OR REPLACE FUNCTION daysBetween -( - p_date1 DATE, - p_date2 DATE -) - RETURN NUMBER -AS -BEGIN - RETURN TRUNC(p_date1) - TRUNC(p_date2); -END; -/ - - -SELECT --adempiereVersion(), adempiereProperty('java.vendor'), - TRUNC(getdate()) FROM DUAL -/ - -EXIT diff --git a/sqlj/postgresql/sqlj.ddr b/sqlj/postgresql/sqlj.ddr deleted file mode 100755 index d593584c6b..0000000000 --- a/sqlj/postgresql/sqlj.ddr +++ /dev/null @@ -1,237 +0,0 @@ -SQLActions[ ] = { - "BEGIN INSTALL - /** TODO: Functions in oracle/createSQLJ.sql not implemented here: **/ - /** addDays **/ - /** charAt **/ - /** currencyRound **/ - /** daysBetween **/ - /** firstOf **/ - /** getdate **/ - - BEGIN PostgreSQL SET search_path TO adempiere END PostgreSQL; - - CREATE OR REPLACE FUNCTION adempiereVersion() - RETURNS VARCHAR - AS 'org.compiere.sqlj.Adempiere.getVersion()' - LANGUAGE java VOLATILE;; - - CREATE OR REPLACE FUNCTION adempiereProperties() - RETURNS VARCHAR - AS 'org.compiere.sqlj.Adempiere.getProperties()' - LANGUAGE java VOLATILE;; - - CREATE OR REPLACE FUNCTION adempiereProperty(p_key VARCHAR) - RETURNS VARCHAR - AS 'org.compiere.sqlj.Adempiere.getProperty(java.lang.String)' - LANGUAGE java VOLATILE;; - - CREATE OR REPLACE FUNCTION nextID(AD_Sequence_ID INTEGER, System VARCHAR) - RETURNS INTEGER - AS 'org.compiere.sqlj.Adempiere.nextID(int,java.lang.String)' - LANGUAGE java VOLATILE; - - CREATE OR REPLACE FUNCTION nextIDfunc(AD_Sequence_ID INTEGER, System VARCHAR) - RETURNS INTEGER - AS 'org.compiere.sqlj.Adempiere.nextIDfunc(int,java.lang.String)' - LANGUAGE java VOLATILE; - - CREATE OR REPLACE FUNCTION get_Sysconfig(Name VARCHAR, defaultValue VARCHAR, AD_Client_ID INTEGER, AD_Client_ID INTEGER) - RETURNS VARCHAR - AS 'org.compiere.sqlj.Adempiere.get_Sysconfig(java.lang.String,java.lang.String,int,int)' - LANGUAGE java VOLATILE; - - /** Product **/ - CREATE OR REPLACE FUNCTION productAttribute (M_AttributeSetInstance_ID NUMERIC) - RETURNS VARCHAR - AS 'org.compiere.sqlj.Product.attributeName(int)' - LANGUAGE java VOLATILE; - - /************* bomPriceLimit *******************/ - CREATE OR REPLACE FUNCTION bomPriceLimit (M_Product_ID NUMERIC, M_PriceList_Version_ID NUMERIC) - RETURNS NUMERIC - AS 'org.compiere.sqlj.Product.bomPriceLimit(int,int)' - LANGUAGE java VOLATILE; - - /************* bomPriceList *******************/ - CREATE OR REPLACE FUNCTION bomPriceList (M_Product_ID NUMERIC, M_PriceList_Version_ID NUMERIC) - RETURNS NUMERIC - AS 'org.compiere.sqlj.Product.bomPriceList(int,int)' - LANGUAGE java VOLATILE; - - - /************* bomPriceStd *******************/ - CREATE OR REPLACE FUNCTION bomPriceStd (M_Product_ID NUMERIC, M_PriceList_Version_ID NUMERIC) - RETURNS NUMERIC - AS 'org.compiere.sqlj.Product.bomPriceStd(int,int)' - LANGUAGE java VOLATILE; - - /************* bomQtyAvailable *******************/ - CREATE OR REPLACE FUNCTION bomQtyAvailable (M_Product_ID NUMERIC, M_Warehouse_ID NUMERIC, M_Locator_ID NUMERIC) - RETURNS NUMERIC - AS 'org.compiere.sqlj.Product.bomQtyAvailable(int,int,int)' - LANGUAGE java VOLATILE; - - /************* bomQtyAvailable with M_AttributeSetInstance_ID *******************/ - CREATE OR REPLACE FUNCTION bomQtyAvailableASI (M_Product_ID NUMERIC , M_AttributeSetInstance_ID NUMERIC, M_Warehouse_ID NUMERIC, M_Locator_ID NUMERIC) - RETURNS NUMERIC - AS 'org.compiere.sqlj.Product.bomQtyAvailableASI(int,int,int,int)' - LANGUAGE java VOLATILE; - - /************* bomQtyOnHand *******************/ - - CREATE OR REPLACE FUNCTION bomQtyOnHand (M_Product_ID NUMERIC, M_Warehouse_ID NUMERIC, M_Locator_ID NUMERIC) - RETURNS NUMERIC - AS 'org.compiere.sqlj.Product.bomQtyOnHand(int,int,int)' - LANGUAGE java VOLATILE; - - /************* bomQtyOnHand with M_AttributeSetInstance_ID *******************/ - CREATE OR REPLACE FUNCTION bomQtyOnHandASI (M_Product_ID NUMERIC, M_AttributeSetInstance_ID NUMERIC, M_Warehouse_ID NUMERIC, M_Locator_ID NUMERIC) - RETURNS NUMERIC - AS 'org.compiere.sqlj.Product.bomQtyOnHandASI(int,int,int,int)' - LANGUAGE java VOLATILE; - - /************* bomQtyOrdered *******************/ - CREATE OR REPLACE FUNCTION bomQtyOrdered (M_Product_ID NUMERIC, M_Warehouse_ID NUMERIC, M_Locator_ID NUMERIC) - RETURNS NUMERIC - AS 'org.compiere.sqlj.Product.bomQtyOrdered(int,int,int)' - LANGUAGE java VOLATILE; - - /************* bomQtyOrdered with M_AttributeSetInstance_ID *******************/ - CREATE OR REPLACE FUNCTION bomQtyOrderedASI (M_Product_ID NUMERIC, M_AttributeSetInstance_ID NUMERIC, M_Warehouse_ID NUMERIC, M_Locator_ID NUMERIC) - RETURNS NUMERIC - AS 'org.compiere.sqlj.Product.bomQtyOrderedASI(int,int,int,int)' - LANGUAGE java VOLATILE; - - /************* bomQtyReserved *******************/ - CREATE OR REPLACE FUNCTION bomQtyReserved (M_Product_ID NUMERIC, M_Warehouse_ID NUMERIC, M_Locator_ID NUMERIC) - RETURNS NUMERIC - AS 'org.compiere.sqlj.Product.bomQtyReserved(int,int,int)' - LANGUAGE java VOLATILE; - - - /************* bomQtyReserved with M_AttributeSetInstance_ID *******************/ - CREATE OR REPLACE FUNCTION bomQtyReservedASI (M_Product_ID NUMERIC, M_AttributeSetInstance_ID NUMERIC, M_Warehouse_ID NUMERIC, M_Locator_ID NUMERIC) - RETURNS NUMERIC - AS 'org.compiere.sqlj.Product.bomQtyReservedASI(int,int,int,int)' - LANGUAGE java VOLATILE; - - /** Currency **/ - CREATE OR REPLACE FUNCTION currencyBase (Amount NUMERIC, C_CurrencyFrom_ID NUMERIC, - ConversionDate TIMESTAMP WITH TIME ZONE, AD_Client_ID NUMERIC, AD_Org_ID NUMERIC) - RETURNS NUMERIC - AS 'org.compiere.sqlj.Currency.base(java.math.BigDecimal,int,java.sql.Timestamp,int,int)' - LANGUAGE java VOLATILE; - - CREATE OR REPLACE FUNCTION currencyConvert (Amount NUMERIC, C_CurrencyFrom_ID NUMERIC, C_CurrencyTo_ID NUMERIC, - ConversionDate TIMESTAMP WITH TIME ZONE, C_ConversionType_ID NUMERIC, AD_Client_ID NUMERIC, AD_Org_ID NUMERIC) - RETURNS NUMERIC - AS 'org.compiere.sqlj.Currency.convert(java.math.BigDecimal,int,int,java.sql.Timestamp,int,int,int)' - LANGUAGE java VOLATILE; - - CREATE OR REPLACE FUNCTION currencyRate (C_CurrencyFrom_ID NUMERIC, C_CurrencyTo_ID NUMERIC, - ConversionDate TIMESTAMP WITH TIME ZONE, C_ConversionType_ID NUMERIC, AD_Client_ID NUMERIC, AD_Org_ID NUMERIC) - RETURNS NUMERIC - AS 'org.compiere.sqlj.Currency.rate(int,int,java.sql.Timestamp,int,int,int)' - LANGUAGE java VOLATILE; - - /** BPartner **/ - CREATE OR REPLACE FUNCTION bpartnerRemitLocation (p_C_BPartner_ID NUMERIC) - RETURNS NUMERIC - AS 'int org.compiere.sqlj.BPartner.remitLocation(int)' - LANGUAGE java VOLATILE; - - /** Invoice **/ - CREATE OR REPLACE FUNCTION invoiceOpen (p_C_Invoice_ID NUMERIC, p_C_InvoicePaySchedule_ID NUMERIC) - RETURNS NUMERIC - AS 'org.compiere.sqlj.Invoice.open(int,int)' - LANGUAGE java VOLATILE; - - CREATE OR REPLACE FUNCTION invoiceOpenToDate (p_C_Invoice_ID NUMERIC, p_C_InvoicePaySchedule_ID NUMERIC,p_AcctDate DATE) - RETURNS NUMERIC - AS 'org.compiere.sqlj.Invoice.openToDate(int,int,java.sql.Timestamp)' - LANGUAGE java VOLATILE; - - CREATE OR REPLACE FUNCTION invoicePaid (p_C_Invoice_ID NUMERIC, p_C_Currency_ID NUMERIC, p_MultiplierAP NUMERIC) - RETURNS NUMERIC - AS 'org.compiere.sqlj.Invoice.paid(int,int,int)' - LANGUAGE java VOLATILE; - - CREATE OR REPLACE FUNCTION invoicePaidToDate (p_C_Invoice_ID NUMERIC, p_C_Currency_ID NUMERIC, p_MultiplierAP NUMERIC,p_AcctDate DATE) - RETURNS NUMERIC - AS 'org.compiere.sqlj.Invoice.paidToDate(int,int,int,java.sql.Timestamp)' - LANGUAGE java VOLATILE; - - CREATE OR REPLACE FUNCTION invoiceDiscount (p_C_Invoice_ID NUMERIC, p_PayDate TIMESTAMP WITH TIME ZONE, p_C_InvoicePaySchedule_ID NUMERIC) - RETURNS NUMERIC - AS 'org.compiere.sqlj.Invoice.discount(int,java.sql.Timestamp,int)' - LANGUAGE java VOLATILE; - - /** Payment Term **/ - CREATE OR REPLACE FUNCTION paymentTermDueDays (p_C_PaymentTerm_ID NUMERIC, p_DocDate TIMESTAMP WITH TIME ZONE, p_PayDate TIMESTAMP WITH TIME ZONE) - RETURNS INTEGER - AS 'org.compiere.sqlj.PaymentTerm.dueDays(int,java.sql.Timestamp,java.sql.Timestamp)' - LANGUAGE java VOLATILE; - - CREATE OR REPLACE FUNCTION paymentTermDueDate (p_C_PaymentTerm_ID NUMERIC, p_DocDate TIMESTAMP WITH TIME ZONE) - RETURNS TIMESTAMP WITH TIME ZONE - AS 'org.compiere.sqlj.PaymentTerm.dueDate(int,java.sql.Timestamp)' - LANGUAGE java VOLATILE; - - CREATE OR REPLACE FUNCTION paymentTermDiscount (p_Amount NUMERIC,p_C_Currency_ID NUMERIC, p_C_PaymentTerm_ID NUMERIC, p_DocDate TIMESTAMP WITH TIME ZONE, p_PayDate TIMESTAMP WITH TIME ZONE) - RETURNS NUMERIC - AS 'org.compiere.sqlj.PaymentTerm.discount(java.math.BigDecimal,int, int ,java.sql.Timestamp,java.sql.Timestamp)' - LANGUAGE java VOLATILE; - - /** Payment **/ - CREATE OR REPLACE FUNCTION paymentAllocated (p_C_Payment_ID NUMERIC, p_C_Currency_ID NUMERIC) - RETURNS NUMERIC - AS 'org.compiere.sqlj.Payment.allocated(int,int)' - LANGUAGE java VOLATILE; - - CREATE OR REPLACE FUNCTION paymentAvailable (p_C_Payment_ID NUMERIC) - RETURNS NUMERIC - AS 'org.compiere.sqlj.Payment.available(int)' - LANGUAGE java VOLATILE; - - /** Account **/ - CREATE OR REPLACE FUNCTION acctBalance (p_Account_ID NUMERIC, p_AmtDr NUMERIC, p_AmtCr NUMERIC) - RETURNS NUMERIC - AS 'org.compiere.sqlj.Account.balance(int,java.math.BigDecimal,java.math.BigDecimal)' - LANGUAGE java VOLATILE; - - END INSTALL", - - "BEGIN REMOVE - --DROP FUNCTION adempiereVersion(); - --DROP FUNCTION adempiereProperties(); - --DROP FUNCTION adempiereProperty(p_key VARCHAR); - --DROP FUNCTION nextID(AD_Sequence_ID INTEGER, System VARCHAR); - --DROP FUNCTION nextIDfunc(AD_Sequence_ID INTEGER, System VARCHAR); - --DROP FUNCTION productAttribute (M_AttributeSetInstance_ID NUMERIC); - --DROP FUNCTION bomPriceLimit (M_Product_ID NUMERIC, M_PriceList_Version_ID NUMERIC); - --DROP FUNCTION bomPriceList (M_Product_ID NUMERIC, M_PriceList_Version_ID NUMERIC); - --DROP FUNCTION bomPriceStd (M_Product_ID NUMERIC, M_PriceList_Version_ID NUMERIC); - --DROP FUNCTION bomQtyAvailable (M_Product_ID NUMERIC, M_Warehouse_ID NUMERIC, M_Locator_ID NUMERIC); - --DROP FUNCTION bomQtyAvailableASI (M_Product_ID NUMERIC , M_AttributeSetInstance_ID NUMERIC, M_Warehouse_ID NUMERIC, M_Locator_ID NUMERIC); - --DROP FUNCTION bomQtyOnHand (M_Product_ID NUMERIC, M_Warehouse_ID NUMERIC, M_Locator_ID NUMERIC); - --DROP FUNCTION bomQtyOnHandASI (M_Product_ID NUMERIC, M_AttributeSetInstance_ID NUMERIC, M_Warehouse_ID NUMERIC, M_Locator_ID NUMERIC); - --DROP FUNCTION bomQtyOrdered (M_Product_ID NUMERIC, M_Warehouse_ID NUMERIC, M_Locator_ID NUMERIC); - --DROP FUNCTION bomQtyOrderedASI (M_Product_ID NUMERIC, M_AttributeSetInstance_ID NUMERIC, M_Warehouse_ID NUMERIC, M_Locator_ID NUMERIC); - --DROP FUNCTION bomQtyReserved (M_Product_ID NUMERIC, M_Warehouse_ID NUMERIC, M_Locator_ID NUMERIC); - --DROP FUNCTION bomQtyReservedASI (M_Product_ID NUMERIC, M_AttributeSetInstance_ID NUMERIC, M_Warehouse_ID NUMERIC, M_Locator_ID NUMERIC); - --DROP FUNCTION currencyBase (Amount NUMERIC, C_CurrencyFrom_ID NUMERIC,ConversionDate TIMESTAMP WITH TIME ZONE, AD_Client_ID NUMERIC, AD_Org_ID NUMERIC); - --DROP FUNCTION currencyConvert (Amount NUMERIC, C_CurrencyFrom_ID NUMERIC, C_CurrencyTo_ID NUMERIC,ConversionDate TIMESTAMP WITH TIME ZONE, C_ConversionType_ID NUMERIC, AD_Client_ID NUMERIC, AD_Org_ID NUMERIC); - --DROP FUNCTION currencyRate (C_CurrencyFrom_ID NUMERIC, C_CurrencyTo_ID NUMERIC,ConversionDate TIMESTAMP WITH TIME ZONE, C_ConversionType_ID NUMERIC, AD_Client_ID NUMERIC, AD_Org_ID NUMERIC); - --DROP FUNCTION bpartnerRemitLocation (p_C_BPartner_ID NUMERIC); - --DROP FUNCTION invoiceOpen (p_C_Invoice_ID NUMERIC, p_C_InvoicePaySchedule_ID NUMERIC); - --DROP FUNCTION invoicePaid (p_C_Invoice_ID NUMERIC, p_C_Currency_ID NUMERIC, p_MultiplierAP NUMERIC); - --DROP FUNCTION invoiceDiscount (p_C_Invoice_ID NUMERIC, p_PayDate TIMESTAMP WITH TIME ZONE, p_C_InvoicePaySchedule_ID NUMERIC); - --DROP FUNCTION paymentTermDueDays (p_C_PaymentTerm_ID NUMERIC, p_DocDate TIMESTAMP WITH TIME ZONE, p_PayDate TIMESTAMP WITH TIME ZONE); - --DROP FUNCTION paymentTermDueDate (p_C_PaymentTerm_ID NUMERIC, p_DocDate TIMESTAMP WITH TIME ZONE); - --DROP FUNCTION paymentTermDiscount (p_Amount NUMERIC,p_C_Currency_ID NUMERIC, p_C_PaymentTerm_ID NUMERIC, p_DocDate TIMESTAMP WITH TIME ZONE, p_PayDate TIMESTAMP WITH TIME ZONE); - --DROP FUNCTION paymentAllocated (p_C_Payment_ID NUMERIC, p_C_Currency_ID NUMERIC); - --DROP FUNCTION paymentAvailable (p_C_Payment_ID NUMERIC); - --DROP FUNCTION acctBalance (p_Account_ID NUMERIC, p_AmtDr NUMERIC, p_AmtCr NUMERIC); - END REMOVE" - } - diff --git a/sqlj/postgresql/sqlj.manifest b/sqlj/postgresql/sqlj.manifest deleted file mode 100755 index 655a638315..0000000000 --- a/sqlj/postgresql/sqlj.manifest +++ /dev/null @@ -1,4 +0,0 @@ -Manifest-Version: 1.0 - -Name: deployment/sqlj.ddr -SQLJDeploymentDescriptor: TRUE diff --git a/sqlj/src/org/compiere/sqlj/Account.java b/sqlj/src/org/compiere/sqlj/Account.java deleted file mode 100644 index ae5bb8eef9..0000000000 --- a/sqlj/src/org/compiere/sqlj/Account.java +++ /dev/null @@ -1,87 +0,0 @@ -/****************************************************************************** - * Product: Adempiere ERP & CRM Smart Business Solution * - * Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. * - * This program is free software; you can redistribute it and/or modify it * - * under the terms version 2 of the GNU General Public License as published * - * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * - * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License along * - * with this program; if not, write to the Free Software Foundation, Inc., * - * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * - * For the text or an alternative of this public license, you may reach us * - * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * - * or via info@compiere.org or http://www.compiere.org/license.html * - *****************************************************************************/ -package org.compiere.sqlj; - -import java.math.BigDecimal; -import java.sql.PreparedStatement; -import java.sql.ResultSet; -import java.sql.SQLException; - - -/** - * SQLJ Account related Functions - * - * @author Jorg Janke - * @version $Id: Account.java,v 1.3 2006/07/30 00:59:07 jjanke Exp $ - */ -public class Account -{ - - /** - * Get Balance based on Account Sign and Type. - * Acct_Balance - acctBalance - * If an account is specified and found - * - If the account sign is Natural it sets it based on Account Type - * @param p_Account_ID account - * @param p_AmtDr debit - * @param p_AmtCr credit - * @return cr or dr balance - * @throws SQLException - */ - public static BigDecimal balance (int p_Account_ID, BigDecimal p_AmtDr, BigDecimal p_AmtCr) - throws SQLException - { - BigDecimal AmtDr = p_AmtDr; - if (AmtDr == null) - AmtDr = Adempiere.ZERO; - BigDecimal AmtCr = p_AmtCr; - if (AmtCr == null) - AmtCr = Adempiere.ZERO; - BigDecimal balance = AmtDr.subtract(AmtCr); - // - if (p_Account_ID != 0) - { - String sql = "SELECT AccountType, AccountSign " - + "FROM C_ElementValue " - + "WHERE C_ElementValue_ID=?"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_Account_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - { - String AccountType = rs.getString(1); - String AccountSign = rs.getString(2); - // Natural Account Sign -> D/C - if (AccountSign.equals("N")) - { - if (AccountType.equals("A") || AccountType.equals("E")) - AccountSign = "D"; - else - AccountSign = "C"; - } - // Debit Balance - if (AccountSign.equals("C")) - balance = AmtCr.subtract(AmtDr); - } - rs.close(); - pstmt.close(); - } - // - return balance; - } // balance - -} // Account diff --git a/sqlj/src/org/compiere/sqlj/Adempiere.java b/sqlj/src/org/compiere/sqlj/Adempiere.java deleted file mode 100644 index 7eabb07e63..0000000000 --- a/sqlj/src/org/compiere/sqlj/Adempiere.java +++ /dev/null @@ -1,598 +0,0 @@ -/****************************************************************************** - * Product: Adempiere ERP & CRM Smart Business Solution * - * Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. * - * This program is free software; you can redistribute it and/or modify it * - * under the terms version 2 of the GNU General Public License as published * - * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * - * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License along * - * with this program; if not, write to the Free Software Foundation, Inc., * - * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * - * For the text or an alternative of this public license, you may reach us * - * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * - * or via info@compiere.org or http://www.compiere.org/license.html * - *****************************************************************************/ -package org.compiere.sqlj; - -import java.io.Serializable; -import java.math.BigDecimal; -import java.sql.Connection; -import java.sql.DriverManager; -import java.sql.PreparedStatement; -import java.sql.ResultSet; -import java.sql.SQLException; -import java.sql.Timestamp; -import java.util.Calendar; -import java.util.Enumeration; -import java.util.GregorianCalendar; - -/** - * SQLJ Adempiere Control and Utility Class - * - * @author Jorg Janke - * @version $Id: Adempiere.java,v 1.4 2006/10/02 19:49:59 jjanke Exp $ - */ -public class Adempiere implements Serializable -{ - /** - * - */ - private static final long serialVersionUID = -2525829222361926922L; - - /** - * Get Version - * @return version - */ - public static String getVersion() - { - return "Adempiere SQLJ 1.0"; - } // version - - /** - * Get Environment Info - * @return properties - */ - public static String getProperties() - { - StringBuffer sb = new StringBuffer(); - Enumeration en = System.getProperties().keys(); // don't fix warning, for sqlj we need to keep compatibility with java 1.4 - while (en.hasMoreElements()) - { - if (sb.length() != 0) - sb.append(" - "); - String key = (String)en.nextElement(); - String value = System.getProperty(key); - sb.append(key).append("=").append(value); - } - return sb.toString(); - } // environment - - /** - * Get Environment Info - * @param key key - * @return property info - * @throws SQLException - */ - public static String getProperty (String key) throws SQLException - { - if (key == null || key.length() == 0) - return "null"; - return System.getProperty(key, "NotFound"); - } // environment - - /** Oracle Server */ - public static final String TYPE_ORACLE = "oracle"; - /** PostgreSQL **/ - public static final String TYPE_POSTGRESQL = "PostgreSQL"; - /** Server Type */ - public static String s_type = null; - - /** - * Get Server Type - * @return server type - */ - public static String getServerType() - { - if (s_type == null) - { - s_type = "??"; - try { - String name = getConnection().getClass().getName(); - if (name.indexOf("oracle") >= 0) - s_type = TYPE_ORACLE; - else if (name.indexOf("postgresql") >= 0) - s_type = TYPE_POSTGRESQL; - } catch (Exception e) {} - } - return s_type; - } // getServerType - - /** - * Is this Oracle ? - * @return true if Oracle - */ - static boolean isOracle() - { - if (s_type == null) - getServerType(); - if (s_type != null) - return TYPE_ORACLE.equals(s_type); - return false; - } // isOracle - - - //begin vpj-cd e-evolution 02/22/2005 PostgreSQL - /** - * Is this PostgreSQL ? - * @return true if PostgreSQL - */ - static boolean isPostgreSQL() - { - if (s_type == null) - getServerType(); - if (s_type != null) - return TYPE_POSTGRESQL.equals(s_type); - return false; - } - //end vpj-cd e-evolution 02/22/2005 PostgreSQL - - - /** - * Get Connection URL - * @return connection URL - */ - static String getConnectionURL() - { - if (s_url != null) - return s_url; - - if (isOracle()) - s_url = "jdbc:default:connection:"; - else if (isPostgreSQL()) - return "jdbc:default:connection"; - return "jdbc:default:connection"; - // - //return s_url; - //end vpj-cd e-evolution 02/22/2005 PostgreSQL - } // getConnectionURL - - /** Connection URL */ - protected static String s_url = null; - /** Connection User */ - protected static String s_uid = null; - /** Connection Password */ - protected static String s_pwd = null; - - /** - * Get Server side Connection - * @return connection - * @throws SQLException - */ - private static Connection getConnection() throws SQLException - { - if (s_uid != null && s_pwd != null) - return DriverManager.getConnection(getConnectionURL(), s_uid, s_pwd); - return DriverManager.getConnection(getConnectionURL()); - } // getConnection - - /** - * Prepare Statement (Forward, ReadOnly) - * @param sql sql - * @return prepared statement - * @throws SQLException - */ - static PreparedStatement prepareStatement (String sql) throws SQLException - { - return prepareStatement(sql, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); - } // prepareStatement - - /** - * Prepare Statement - * @param sql sql - * @param resultSetType result set type - * @param resultSetCurrency result type currency - * @return prepared statement - * @throws SQLException - */ - static PreparedStatement prepareStatement (String sql, int resultSetType, int resultSetCurrency) - throws SQLException - { - if (s_conn == null) - s_conn = getConnection(); - try - { - return s_conn.prepareStatement(sql, resultSetType, resultSetCurrency); - } - catch (Exception e) // connection not good anymore - { - } - // get new Connection - s_conn = getConnection(); - return s_conn.prepareStatement(sql); - } // - - /** - * Get SQL int Value with param - * @param sql sql command - * @param param1 parameter - * @return value or -1 if not found - * @throws SQLException - */ - static int getSQLValue (String sql, int param1) throws SQLException - { - int retValue = -1; - PreparedStatement pstmt = prepareStatement(sql); - pstmt.setInt(1, param1); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - retValue = rs.getInt(1); - rs.close(); - pstmt.close(); - return retValue; - } // getSQLValue - - /** Permanently open Connection */ - private static Connection s_conn = null; - - /** Zero 0 */ - public static final BigDecimal ZERO = new BigDecimal((double)0.0); - /** One 1 */ - public static final BigDecimal ONE = new BigDecimal((double)1.0); - /** Hundred 100 */ - public static final BigDecimal HUNDRED = new BigDecimal((double)100.0); - - /** - * Truncate Date - * @deprecated - * @param p_dateTime date - * @return day - */ - public static Timestamp trunc (Timestamp p_dateTime) - { - Timestamp time = p_dateTime; - if (time == null) - time = new Timestamp(System.currentTimeMillis()); - // - GregorianCalendar cal = new GregorianCalendar(); - cal.setTimeInMillis(time.getTime()); - cal.set(Calendar.HOUR_OF_DAY, 0); - cal.set(Calendar.MINUTE, 0); - cal.set(Calendar.SECOND, 0); - cal.set(Calendar.MILLISECOND, 0); - // - return new Timestamp (cal.getTimeInMillis()); - } // trunc - - /** - * Truncate Date - * @deprecated - * @param p_dateTime date - * @param XX date part - Supported: DD(default),DY,MM,Q - * @return day (first) - */ - public static Timestamp firstOf (Timestamp p_dateTime, String XX) - { - Timestamp time = p_dateTime; - if (time == null) - time = new Timestamp(System.currentTimeMillis()); - // - GregorianCalendar cal = new GregorianCalendar(); - cal.setTime(time); - cal.set(Calendar.HOUR_OF_DAY, 0); - cal.set(Calendar.MINUTE, 0); - cal.set(Calendar.SECOND, 0); - cal.set(Calendar.MILLISECOND, 0); - // - if ("MM".equals(XX)) // Month - cal.set(Calendar.DAY_OF_MONTH, 1); - else if ("DY".equals(XX)) // Week - cal.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY); - else if ("Q".equals(XX)) // Quarter - { - cal.set(Calendar.DAY_OF_MONTH, 1); - int mm = cal.get(Calendar.MONTH); // January = 0 - if (mm < Calendar.APRIL) - cal.set(Calendar.MONTH, Calendar.JANUARY); - else if (mm < Calendar.JULY) - cal.set(Calendar.MONTH, Calendar.APRIL); - else if (mm < Calendar.OCTOBER) - cal.set(Calendar.MONTH, Calendar.JULY); - else - cal.set(Calendar.MONTH, Calendar.OCTOBER); - } - - return new Timestamp (cal.getTimeInMillis()); - } // trunc - - /** - * Calculate the number of days between start and end. - * @param start start date - * @param end end date - * @return number of days (0 = same) - */ - static public int getDaysBetween (Timestamp start, Timestamp end) - { - boolean negative = false; - if (end.before(start)) - { - negative = true; - Timestamp temp = start; - start = end; - end = temp; - } - // - GregorianCalendar cal = new GregorianCalendar(); - cal.setTime(start); - cal.set(Calendar.HOUR_OF_DAY, 0); - cal.set(Calendar.MINUTE, 0); - cal.set(Calendar.SECOND, 0); - cal.set(Calendar.MILLISECOND, 0); - GregorianCalendar calEnd = new GregorianCalendar(); - calEnd.setTime(end); - calEnd.set(Calendar.HOUR_OF_DAY, 0); - calEnd.set(Calendar.MINUTE, 0); - calEnd.set(Calendar.SECOND, 0); - calEnd.set(Calendar.MILLISECOND, 0); - - // System.out.println("Start=" + start + ", End=" + end + ", dayStart=" + cal.get(Calendar.DAY_OF_YEAR) + ", dayEnd=" + calEnd.get(Calendar.DAY_OF_YEAR)); - - // in same year - if (cal.get(Calendar.YEAR) == calEnd.get(Calendar.YEAR)) - { - if (negative) - return (calEnd.get(Calendar.DAY_OF_YEAR) - cal.get(Calendar.DAY_OF_YEAR)) * -1; - return calEnd.get(Calendar.DAY_OF_YEAR) - cal.get(Calendar.DAY_OF_YEAR); - } - - // not very efficient, but correct - int counter = 0; - while (calEnd.after(cal)) - { - cal.add (Calendar.DAY_OF_YEAR, 1); - counter++; - } - if (negative) - return counter * -1; - return counter; - } // getDaysBetween - - /** - * Return Day + offset (truncates) - * @deprecated - * @param day Day - * @param offset day offset - * @return Day + offset at 00:00 - */ - static public Timestamp addDays (Timestamp day, int offset) - { - if (day == null) - day = new Timestamp(System.currentTimeMillis()); - // - GregorianCalendar cal = new GregorianCalendar(); - cal.setTime(day); - cal.set(Calendar.HOUR_OF_DAY, 0); - cal.set(Calendar.MINUTE, 0); - cal.set(Calendar.SECOND, 0); - cal.set(Calendar.MILLISECOND, 0); - if (offset != 0) - cal.add(Calendar.DAY_OF_YEAR, offset); // may have a problem with negative (before 1/1) - // - return new Timestamp (cal.getTimeInMillis()); - } // addDays - - - /** - * Next Business Day. - * (Only Sa/Su -> Mo) - * @param day day - * @return next business dat if day is "off" - */ - static public Timestamp nextBusinessDay (Timestamp day) throws SQLException - { - if (day == null) - day = new Timestamp(System.currentTimeMillis()); - // - GregorianCalendar cal = new GregorianCalendar(); - cal.setTime(day); - cal.set(Calendar.HOUR_OF_DAY, 0); - cal.set(Calendar.MINUTE, 0); - cal.set(Calendar.SECOND, 0); - cal.set(Calendar.MILLISECOND, 0); - // - //begin Goodwill (www.goodwill.co.id) - // get Holiday - boolean isHoliday = true; - do - { - int dow = cal.get(Calendar.DAY_OF_WEEK); - if (dow == Calendar.SATURDAY) - cal.add(Calendar.DAY_OF_YEAR, 2); - else if (dow == Calendar.SUNDAY) - cal.add(Calendar.DAY_OF_YEAR, 1); - java.util.Date temp = cal.getTime(); - String sql = "SELECT Date1 FROM C_NonBusinessDay WHERE IsActive ='Y' AND Date1=?"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setTimestamp(1,new Timestamp(temp.getTime())); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - { - cal = new GregorianCalendar(); - cal.setTime(temp); - cal.add(Calendar.DAY_OF_YEAR,1); - } - else - isHoliday = false; - - rs.close(); - pstmt.close(); - - } - while (isHoliday); - // end Goodwill - - return new Timestamp (cal.getTimeInMillis()); - } // nextBusinessDay - - - /** - * Character At Position - * @deprecated - * @param source source - * @param posIndex position 1 = first - * @return substring or null - */ - public static String charAt (String source, int posIndex) - { - posIndex = posIndex - 1; - if (source == null || source.length() == 0 || posIndex < 0 || posIndex > source.length()) - return null; - try - { - return String.valueOf(source.charAt(posIndex)); - } - catch (Exception e) - {} - return null; - } // charAt - - /** - * Mext ID - * @param AD_Sequence_ID sequence - * @param System system - * @return ID or -1 - * @throws SQLException - */ - public static int nextID (int AD_Sequence_ID, String System) - throws SQLException - { - boolean isSystem = System != null && "Y".equals(System); - int retValue = -1; - String next = "CurrentNext"; - if (isSystem) - next = next + "Sys"; - //lock the row - StringBuffer sql = new StringBuffer ("UPDATE AD_Sequence SET "); - sql.append(next) - .append(" = ") - .append(next) - .append(" WHERE AD_Sequence_ID=?"); - PreparedStatement pstmt = prepareStatement(sql.toString()); - try - { - pstmt.setInt(1, AD_Sequence_ID); - pstmt.executeUpdate(); - } - finally - { - pstmt.close(); - } - - //get current value - sql = new StringBuffer ("SELECT "); - sql.append(next) - .append(" FROM AD_Sequence WHERE AD_Sequence_ID=?"); - pstmt = prepareStatement(sql.toString(), - ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); - try - { - pstmt.setInt(1, AD_Sequence_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - { - retValue = rs.getInt(1); - } - rs.close(); - } - finally - { - pstmt.close(); - } - - //update and return - sql = new StringBuffer ("UPDATE AD_Sequence SET "); - sql.append(next) - .append(" = ") - .append(next) - .append(" + IncrementNo") - .append(" WHERE AD_Sequence_ID=?"); - pstmt = prepareStatement(sql.toString()); - try - { - pstmt.setInt(1, AD_Sequence_ID); - pstmt.executeUpdate(); - } - finally - { - pstmt.close(); - } - - return retValue; - } // nextID - - /** - * Next ID Function - * @param AD_Sequence_ID sequence - * @param System system - * @return ID or -1 - * @throws SQLException - */ - public static int nextIDfunc (int AD_Sequence_ID, String System) - throws SQLException - { - return nextID(AD_Sequence_ID, System); - } // nextIDfunc - - /** - * get current Date (Timestamp) - * @deprecated - * @return Timestamp - */ - public static Timestamp getDate() - { - return new Timestamp(new java.util.Date().getTime()); - } // getDate - - /** - * get chars from a number - * @deprecated - * @param d double - * @return String - * - */ - public static String getChars(BigDecimal d) - { - return d.toString(); - } // getChars - - /** - * Get client configuration property of type string - * @param Name - * @param defaultValue - * @param Client ID - * @param Organization ID - * @return String - * @throws SQLException - */ - public static String get_Sysconfig(String Name, String defaultValue, int AD_Client_ID, int AD_Org_ID) throws SQLException - { - String value = null; - String sql = "SELECT Value FROM AD_SysConfig WHERE Name=? AND AD_Client_ID IN (0, ?) AND AD_Org_ID IN (0, ?) AND IsActive='Y' ORDER BY AD_Client_ID DESC, AD_Org_ID DESC"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setString(1, Name); - pstmt.setInt(2, AD_Client_ID); - pstmt.setInt(3, AD_Org_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) { - value = rs.getString(1); - } else { - value = defaultValue; - } - rs.close(); - pstmt.close(); - - return value; - } - -} // Adempiere diff --git a/sqlj/src/org/compiere/sqlj/BPartner.java b/sqlj/src/org/compiere/sqlj/BPartner.java deleted file mode 100644 index 0734a0f5ec..0000000000 --- a/sqlj/src/org/compiere/sqlj/BPartner.java +++ /dev/null @@ -1,58 +0,0 @@ -/****************************************************************************** - * Product: Adempiere ERP & CRM Smart Business Solution * - * Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. * - * This program is free software; you can redistribute it and/or modify it * - * under the terms version 2 of the GNU General Public License as published * - * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * - * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License along * - * with this program; if not, write to the Free Software Foundation, Inc., * - * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * - * For the text or an alternative of this public license, you may reach us * - * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * - * or via info@compiere.org or http://www.compiere.org/license.html * - *****************************************************************************/ -package org.compiere.sqlj; - -import java.sql.PreparedStatement; -import java.sql.ResultSet; -import java.sql.SQLException; - - -/** - * SQLJ Business Partner related Functions - * - * @author Jorg Janke - * @version $Id: BPartner.java,v 1.3 2006/07/30 00:59:07 jjanke Exp $ - */ -public class BPartner -{ - /** - * Return first Remit Location of BPartner. - * C_BPartner_RemitLocation - bpartnerRemitLocation - * @param p_C_BPartner_ID business partner - * @return remit to location - * @throws SQLException - */ - public static int remitLocation (int p_C_BPartner_ID) - throws SQLException - { - int C_Location_ID = 0; - String sql = "SELECT IsRemitTo, C_Location_ID " - + "FROM C_BPartner_Location " - + "WHERE C_BPartner_ID=? " - + "ORDER BY IsRemitTo DESC"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_C_BPartner_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - C_Location_ID = rs.getInt(2); - rs.close(); - pstmt.close(); - // - return C_Location_ID; - } // remitLocation - -} // BPartner diff --git a/sqlj/src/org/compiere/sqlj/Compiere.java b/sqlj/src/org/compiere/sqlj/Compiere.java deleted file mode 100755 index b11d6ecdb8..0000000000 --- a/sqlj/src/org/compiere/sqlj/Compiere.java +++ /dev/null @@ -1,503 +0,0 @@ -/****************************************************************************** - * Product: Compiere ERP & CRM Smart Business Solution * - * Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. * - * This program is free software; you can redistribute it and/or modify it * - * under the terms version 2 of the GNU General Public License as published * - * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * - * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License along * - * with this program; if not, write to the Free Software Foundation, Inc., * - * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * - * For the text or an alternative of this public license, you may reach us * - * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * - * or via info@compiere.org or http://www.compiere.org/license.html * - *****************************************************************************/ -package org.compiere.sqlj; - -import java.io.Serializable; -import java.math.BigDecimal; -import java.sql.Connection; -import java.sql.DriverManager; -import java.sql.PreparedStatement; -import java.sql.ResultSet; -import java.sql.SQLException; -import java.sql.Timestamp; -import java.util.Calendar; -import java.util.Enumeration; -import java.util.GregorianCalendar; - - -/** - * SQLJ Compiere Control and Utility Class - * - * @author Jorg Janke - * @version $Id: Compiere.java,v 1.4 2006/10/02 19:49:59 jjanke Exp $ - */ -public class Compiere implements Serializable -{ - /** - * - */ - private static final long serialVersionUID = 8646701476222261073L; - - /** - * Get Version - * @return version - */ - public static String getVersion() - { - return "Compiere SQLJ 1.0"; - } // version - - /** - * Get Environment Info - * @return properties - */ - public static String getProperties() - { - StringBuffer sb = new StringBuffer(); - Enumeration en = System.getProperties().keys(); - while (en.hasMoreElements()) - { - if (sb.length() != 0) - sb.append(" - "); - String key = (String)en.nextElement(); - String value = System.getProperty(key); - sb.append(key).append("=").append(value); - } - return sb.toString(); - } // environment - - /** - * Get Environment Info - * @param key key - * @return property info - * @throws SQLException - */ - public static String getProperty (String key) throws SQLException - { - if (key == null || key.length() == 0) - return "null"; - return System.getProperty(key, "NotFound"); - } // environment - - /** Oracle Server */ - public static final String TYPE_ORACLE = "oracle"; - - //begin e-evolution vpj-cd 02/02/2005 PostgreSQL - /** PostgreSQL **/ - public static final String TYPE_POSTGRESQL = "PostgreSQL"; - //end e-evolution vpj-cd 02/02/2005 PostgreSQL - - /** Server Type */ - public static String s_type = null; - - /** - * Get Server Type - * @return server type - */ - public static String getServerType() - { - if (s_type == null) - { - String vendor = System.getProperty("java.vendor"); - if (vendor.startsWith("Oracle")) - s_type = TYPE_ORACLE; - else - s_type = "??"; - } - return s_type; - } // getServerType - - /** - * Is this Oracle ? - * @return true if Oracle - */ - static boolean isOracle() - { - if (s_type == null) - getServerType(); - if (s_type != null) - return TYPE_ORACLE.equals(s_type); - return false; - } // isOracle - - //begin vpj-cd e-evolution 02/22/2005 PostgreSQL - /** - * Is this PostgreSQL ? - * @return true if PostgreSQL - */ - static boolean isPostgreSQL() - { - if (s_type == null) - getServerType(); - if (s_type != null) - return TYPE_POSTGRESQL.equals(s_type); - return false; - } - //end vpj-cd e-evolution 02/22/2005 PostgreSQL - - /** - * Get Connection URL - * @return connection URL - */ - static String getConnectionURL() - { - if (s_url != null) - return s_url; - - if (isOracle()) - s_url = "jdbc:default:connection:"; - else if (isPostgreSQL()) - return "jdbc:default:connection"; - return "jdbc:default:connection"; - // - //return s_url; - //end vpj-cd e-evolution 02/22/2005 PostgreSQL - } // getConnectionURL - - /** Connection URL */ - protected static String s_url = null; - /** Connection User */ - protected static String s_uid = null; - /** Connection Password */ - protected static String s_pwd = null; - - /** - * Get Server side Connection - * @return connection - * @throws SQLException - */ - private static Connection getConnection() throws SQLException - { - if (s_uid != null && s_pwd != null) - return DriverManager.getConnection(getConnectionURL(), s_uid, s_pwd); - return DriverManager.getConnection(getConnectionURL()); - } // getConnection - - /** - * Prepare Statement (Forward, ReadOnly) - * @param sql sql - * @return prepared statement - * @throws SQLException - */ - static PreparedStatement prepareStatement (String sql) throws SQLException - { - return prepareStatement(sql, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); - } // prepareStatement - - /** - * Prepare Statement - * @param sql sql - * @param resultSetType result set type - * @param resultSetCurrency result type currency - * @return prepared statement - * @throws SQLException - */ - static PreparedStatement prepareStatement (String sql, int resultSetType, int resultSetCurrency) - throws SQLException - { - if (s_conn == null) - s_conn = getConnection(); - try - { - return s_conn.prepareStatement(sql, resultSetType, resultSetCurrency); - } - catch (Exception e) // connection not good anymore - { - } - // get new Connection - s_conn = getConnection(); - return s_conn.prepareStatement(sql); - } // - - /** - * Get SQL int Value with param - * @param sql sql command - * @param param1 parameter - * @return value or -1 if not found - * @throws SQLException - */ - static int getSQLValue (String sql, int param1) throws SQLException - { - int retValue = -1; - PreparedStatement pstmt = prepareStatement(sql); - pstmt.setInt(1, param1); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - retValue = rs.getInt(1); - rs.close(); - pstmt.close(); - return retValue; - } // getSQLValue - - /** Permanently open Connection */ - private static Connection s_conn = null; - - /** Zero 0 */ - public static final BigDecimal ZERO = new BigDecimal((double)0.0); - /** One 1 */ - public static final BigDecimal ONE = new BigDecimal((double)1.0); - /** Hundred 100 */ - public static final BigDecimal HUNDRED = new BigDecimal((double)100.0); - - - /** - * Truncate Date - * @param p_dateTime date - * @return day - */ - public static Timestamp trunc (Timestamp p_dateTime) - { - Timestamp time = p_dateTime; - if (time == null) - time = new Timestamp(System.currentTimeMillis()); - // - GregorianCalendar cal = new GregorianCalendar(); - cal.setTime(time); - cal.set(Calendar.HOUR_OF_DAY, 0); - cal.set(Calendar.MINUTE, 0); - cal.set(Calendar.SECOND, 0); - cal.set(Calendar.MILLISECOND, 0); - // - java.util.Date temp = cal.getTime(); - return new Timestamp (temp.getTime()); - } // trunc - - /** - * Truncate Date - * @param p_dateTime date - * @param XX date part - Supported: DD(default),DY,MM,Q - * @return day (first) - */ - public static Timestamp firstOf (Timestamp p_dateTime, String XX) - { - Timestamp time = p_dateTime; - if (time == null) - time = new Timestamp(System.currentTimeMillis()); - // - GregorianCalendar cal = new GregorianCalendar(); - cal.setTime(time); - cal.set(Calendar.HOUR_OF_DAY, 0); - cal.set(Calendar.MINUTE, 0); - cal.set(Calendar.SECOND, 0); - cal.set(Calendar.MILLISECOND, 0); - // - if ("MM".equals(XX)) // Month - cal.set(Calendar.DAY_OF_MONTH, 1); - else if ("DY".equals(XX)) // Week - cal.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY); - else if ("Q".equals(XX)) // Quarter - { - cal.set(Calendar.DAY_OF_MONTH, 1); - int mm = cal.get(Calendar.MONTH); // January = 0 - if (mm < Calendar.APRIL) - cal.set(Calendar.MONTH, Calendar.JANUARY); - else if (mm < Calendar.JULY) - cal.set(Calendar.MONTH, Calendar.APRIL); - else if (mm < Calendar.OCTOBER) - cal.set(Calendar.MONTH, Calendar.JULY); - else - cal.set(Calendar.MONTH, Calendar.OCTOBER); - } - // - java.util.Date temp = cal.getTime(); - return new Timestamp (temp.getTime()); - } // trunc - - /** - * Calculate the number of days between start and end. - * @param start start date - * @param end end date - * @return number of days (0 = same) - */ - static public int getDaysBetween (Timestamp start, Timestamp end) - { - boolean negative = false; - if (end.before(start)) - { - negative = true; - Timestamp temp = start; - start = end; - end = temp; - } - // - GregorianCalendar cal = new GregorianCalendar(); - cal.setTime(start); - cal.set(Calendar.HOUR_OF_DAY, 0); - cal.set(Calendar.MINUTE, 0); - cal.set(Calendar.SECOND, 0); - cal.set(Calendar.MILLISECOND, 0); - GregorianCalendar calEnd = new GregorianCalendar(); - calEnd.setTime(end); - calEnd.set(Calendar.HOUR_OF_DAY, 0); - calEnd.set(Calendar.MINUTE, 0); - calEnd.set(Calendar.SECOND, 0); - calEnd.set(Calendar.MILLISECOND, 0); - - // System.out.println("Start=" + start + ", End=" + end + ", dayStart=" + cal.get(Calendar.DAY_OF_YEAR) + ", dayEnd=" + calEnd.get(Calendar.DAY_OF_YEAR)); - - // in same year - if (cal.get(Calendar.YEAR) == calEnd.get(Calendar.YEAR)) - { - if (negative) - return (calEnd.get(Calendar.DAY_OF_YEAR) - cal.get(Calendar.DAY_OF_YEAR)) * -1; - return calEnd.get(Calendar.DAY_OF_YEAR) - cal.get(Calendar.DAY_OF_YEAR); - } - - // not very efficient, but correct - int counter = 0; - while (calEnd.after(cal)) - { - cal.add (Calendar.DAY_OF_YEAR, 1); - counter++; - } - if (negative) - return counter * -1; - return counter; - } // getDaysBetween - - /** - * Return Day + offset (truncates) - * @param day Day - * @param offset day offset - * @return Day + offset at 00:00 - */ - static public Timestamp addDays (Timestamp day, int offset) - { - if (day == null) - day = new Timestamp(System.currentTimeMillis()); - // - GregorianCalendar cal = new GregorianCalendar(); - cal.setTime(day); - cal.set(Calendar.HOUR_OF_DAY, 0); - cal.set(Calendar.MINUTE, 0); - cal.set(Calendar.SECOND, 0); - cal.set(Calendar.MILLISECOND, 0); - if (offset != 0) - cal.add(Calendar.DAY_OF_YEAR, offset); // may have a problem with negative (before 1/1) - // - java.util.Date temp = cal.getTime(); - return new Timestamp (temp.getTime()); - } // addDays - - /** - * Next Business Day. - * (Only Sa/Su -> Mo) - * @param day day - * @return next business dat if day is "off" - */ - static public Timestamp nextBusinessDay (Timestamp day) - { - if (day == null) - day = new Timestamp(System.currentTimeMillis()); - // - GregorianCalendar cal = new GregorianCalendar(); - cal.setTime(day); - cal.set(Calendar.HOUR_OF_DAY, 0); - cal.set(Calendar.MINUTE, 0); - cal.set(Calendar.SECOND, 0); - cal.set(Calendar.MILLISECOND, 0); - // - int dow = cal.get(Calendar.DAY_OF_WEEK); - if (dow == Calendar.SATURDAY) - cal.add(Calendar.DAY_OF_YEAR, 2); - else if (dow == Calendar.SUNDAY) - cal.add(Calendar.DAY_OF_YEAR, 1); - // - java.util.Date temp = cal.getTime(); - return new Timestamp (temp.getTime()); - } // nextBusinessDay - - - /** - * Character At Position - * @param source source - * @param posIndex position 1 = first - * @return substring or null - */ - public static String charAt (String source, int posIndex) - { - if (source == null || source.length() == 0 || posIndex < 0 || posIndex >= source.length()) - return null; - try - { - return (source.substring(posIndex+1, posIndex+2)); - } - catch (Exception e) - {} - return null; - } // charAt - - /** - * Mext ID - * @param AD_Sequence_ID sequence - * @param System system - * @return ID or -1 - * @throws SQLException - */ - public static int nextID (int AD_Sequence_ID, String System) - throws SQLException - { - boolean isSystem = System != null && "Y".equals(System); - int retValue = -1; - StringBuffer sql = new StringBuffer ("SELECT CurrentNext"); - if (isSystem) - sql.append("Sys"); - sql.append(",IncrementNo FROM AD_Sequence WHERE AD_Sequence_ID=?"); - PreparedStatement pstmt = prepareStatement(sql.toString(), - ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - { - retValue = rs.getInt(1); - int incrementNo = rs.getInt(2); - rs.updateInt(2, retValue + incrementNo); - pstmt.getConnection().commit(); - } - rs.close(); - pstmt.close(); - // - return retValue; - } // nextID - - - /** - * get current Date (Timestamp) - * @return Timestamp - * - */ - - //jz not found anywhere, add it - public static Timestamp getDate() - { - return new Timestamp(new java.util.Date().getTime()); - } // getDate - - /** - * get chars from a number - * @param n int - * @return String - * - */ - /*jz not found anywhere, add it - public static String getChars(int n) - { - return Integer.toString(n); - } // getDate - - /** - * get chars from a number - * @param d double - * @return String - * - */ - //jz not found anywhere, add it - public static String getChars(BigDecimal d) - { - return d.toString(); - } // getDate - -} // Compiere diff --git a/sqlj/src/org/compiere/sqlj/Currency.java b/sqlj/src/org/compiere/sqlj/Currency.java deleted file mode 100644 index 62272139f3..0000000000 --- a/sqlj/src/org/compiere/sqlj/Currency.java +++ /dev/null @@ -1,299 +0,0 @@ -/****************************************************************************** - * Product: Adempiere ERP & CRM Smart Business Solution * - * Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. * - * This program is free software; you can redistribute it and/or modify it * - * under the terms version 2 of the GNU General Public License as published * - * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * - * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License along * - * with this program; if not, write to the Free Software Foundation, Inc., * - * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * - * For the text or an alternative of this public license, you may reach us * - * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * - * or via info@compiere.org or http://www.compiere.org/license.html * - *****************************************************************************/ -package org.compiere.sqlj; - -import java.math.BigDecimal; -import java.sql.PreparedStatement; -import java.sql.ResultSet; -import java.sql.SQLException; -import java.sql.Timestamp; - - -/** - * SQLJ Currency related Functions - * - * @author Jorg Janke - * @version $Id: Currency.java,v 1.3 2006/07/30 00:59:07 jjanke Exp $ - */ -public class Currency -{ - /** - * Convert Amount to base Currency. - * (default conversion type) - * Previously: C_Base_Convert - Now: currencyBase - * @param p_Amount amount - * @param p_C_CurrencyFrom_ID from currency - * @param p_ConversionDate conversion date - * @param p_AD_Client_ID client - * @param p_AD_Org_ID org - * @return rate or null - * @throws SQLException - */ - public static BigDecimal base (BigDecimal p_Amount, - int p_C_CurrencyFrom_ID, Timestamp p_ConversionDate, - int p_AD_Client_ID, int p_AD_Org_ID) - throws SQLException - { - // Return NULL - if (p_Amount == null || p_C_CurrencyFrom_ID == 0) - return null; - // Return Amount - if (p_Amount.signum() == 0) - return p_Amount; - - // Base Currency - String sql = "SELECT ac.C_Currency_ID " - + "FROM AD_ClientInfo ci" - + " INNER JOIN C_AcctSchema ac ON (ci.C_AcctSchema1_ID=ac.C_AcctSchema_ID) " - + "WHERE ci.AD_Client_ID=?"; - int C_CurrencyTo_ID = Adempiere.getSQLValue(sql, p_AD_Client_ID); - // Return Amount - if (p_C_CurrencyFrom_ID == C_CurrencyTo_ID) - return p_Amount; - // - return convert(p_Amount, p_C_CurrencyFrom_ID, C_CurrencyTo_ID, - p_ConversionDate, 0, p_AD_Client_ID, p_AD_Org_ID); - } // base - - - /** - * Convert Amount to Currency. - * Previously: currencyConvert - Now: currencyConvert - * @param p_Amount amount - * @param p_C_CurrencyFrom_ID from currency - * @param p_C_CurrencyTo_ID to currency - * @param p_ConversionDate conversion date - * @param p_C_ConversionType_ID conversion type - * @param p_AD_Client_ID client - * @param p_AD_Org_ID org - * @return rate or null - * @throws SQLException - */ - public static BigDecimal convert (BigDecimal p_Amount, - int p_C_CurrencyFrom_ID, int p_C_CurrencyTo_ID, - Timestamp p_ConversionDate, int p_C_ConversionType_ID, - int p_AD_Client_ID, int p_AD_Org_ID) - throws SQLException - { - // Return NULL - if (p_Amount == null || p_C_CurrencyFrom_ID == 0 || p_C_CurrencyTo_ID == 0) - return null; - // Return Amount - if (p_Amount.signum() == 0 || p_C_CurrencyFrom_ID == p_C_CurrencyTo_ID) - return p_Amount; - - // Get Rate - BigDecimal rate = rate (p_C_CurrencyFrom_ID, p_C_CurrencyTo_ID, - p_ConversionDate, p_C_ConversionType_ID, p_AD_Client_ID, p_AD_Org_ID); - if (rate == null) - return null; - - // Round - return round(p_Amount.multiply(rate), p_C_CurrencyTo_ID, null); - } // convert - - - /** - * Get Conversion Rate. - * Previously: C_Currency_Rate - Now: currencyRate - * @param p_C_CurrencyFrom_ID from currency - * @param p_C_CurrencyTo_ID to currency - * @param p_ConversionDate conversion date - * @param p_C_ConversionType_ID conversion type - * @param p_AD_Client_ID client - * @param p_AD_Org_ID org - * @return rate or null - * @throws SQLException - */ - public static BigDecimal rate (int p_C_CurrencyFrom_ID, int p_C_CurrencyTo_ID, - Timestamp p_ConversionDate, int p_C_ConversionType_ID, - int p_AD_Client_ID, int p_AD_Org_ID) - throws SQLException - { - // No Conversion - if (p_C_CurrencyFrom_ID == p_C_CurrencyTo_ID) - return Adempiere.ONE; - - // Get Defaults - Timestamp ConversionDate = p_ConversionDate; - if (ConversionDate == null) - ConversionDate = new Timestamp(System.currentTimeMillis()); - ConversionDate = Adempiere.trunc(ConversionDate); - // - int C_ConversionType_ID = p_C_ConversionType_ID; - if (C_ConversionType_ID == 0) - { - String sql = "SELECT C_ConversionType_ID " - + "FROM C_ConversionType " - + "WHERE IsDefault='Y'" - + " AND AD_Client_ID IN (0,?) " - + "ORDER BY AD_Client_ID DESC"; - C_ConversionType_ID = Adempiere.getSQLValue(sql, p_AD_Client_ID); - } - - /** Get Euro Currency Info - String sql = "SELECT IsEuro, IsEMUMember, EMUEntryDate, EMURate " - + "FROM C_Currency " - + "WHERE C_Currency_ID=?"; - -- Fixed - From Euro to EMU - IF (cf_IsEuro = 'Y' AND ct_IsEMUMember ='Y' AND v_ConvDate >= ct_EMUEntryDate) THEN - RETURN ct_EMURate; - END IF; - -- Fixed - From EMU to Euro - IF (ct_IsEuro = 'Y' AND cf_IsEMUMember ='Y' AND v_ConvDate >= cf_EMUEntryDate) THEN - RETURN 1 / cf_EMURate; - END IF; - -- Fixed - From EMU to EMU - IF (cf_IsEMUMember = 'Y' AND cf_IsEMUMember ='Y' - AND v_ConvDate >= cf_EMUEntryDate AND v_ConvDate >= ct_EMUEntryDate) THEN - RETURN ct_EMURate / cf_EMURate; - END IF; - -- Flexible Rates - -- if EMU Member involved, replace From/To Currency - IF ((cf_isEMUMember = 'Y' AND v_ConvDate >= cf_EMUEntryDate) - OR (ct_isEMUMember = 'Y' AND v_ConvDate >= ct_EMUEntryDate)) THEN - SELECT MAX(C_Currency_ID) - INTO v_CurrencyEuro - FROM C_Currency - WHERE IsEuro = 'Y'; - -- Conversion Rate not Found - IF (v_CurrencyEuro IS NULL) THEN - DBMS_OUTPUT.PUT_LINE('Euro Not Found'); - RETURN NULL; - END IF; - IF (cf_isEMUMember = 'Y' AND v_ConvDate >= cf_EMUEntryDate) THEN - v_CurrencyFrom := v_CurrencyEuro; - ELSE - v_CurrencyTo := v_CurrencyEuro; - END IF; - END IF; - **/ - - // Get Rate - BigDecimal rate = null; - String sql = "SELECT MultiplyRate " - + "FROM C_Conversion_Rate " - + "WHERE C_Currency_ID=? AND C_Currency_ID_To=?" // from/to - + " AND C_ConversionType_ID=?" - + " AND TRUNC(ValidFrom) <= ?" - + " AND TRUNC(ValidTo) >= ?" - + " AND AD_Client_ID IN (0,?) AND AD_Org_ID IN (0,?) " - + "ORDER BY AD_Client_ID DESC, AD_Org_ID DESC, ValidFrom DESC"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_C_CurrencyFrom_ID); - pstmt.setInt(2, p_C_CurrencyTo_ID); - pstmt.setInt(3, C_ConversionType_ID); - pstmt.setTimestamp(4, ConversionDate); - pstmt.setTimestamp(5, ConversionDate); - pstmt.setInt(6, p_AD_Client_ID); - pstmt.setInt(7, p_AD_Org_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - { - rate = rs.getBigDecimal(1); - } - rs.close(); - pstmt.close(); - // Not found - if (rate == null) - return null; - - /** Currency From was EMU - IF (cf_isEMUMember = 'Y' AND v_ConvDate >= cf_EMUEntryDate) THEN - RETURN v_Rate / cf_EMURate; - END IF; - -- Currency To was EMU - IF (ct_isEMUMember = 'Y' AND v_ConvDate >= ct_EMUEntryDate) THEN - RETURN v_Rate * ct_EMURate; - END IF; - **/ - return rate; - } // rate - - - /** - * Round amount to Currency precision. - SELECT ISO_CODE, currencyRound(111.111111, C_Currency_ID, 'N') "Std", currencyRound(111.111111, C_Currency_ID, 'Y') "Cost" FROM C_Currency WHERE C_Currency_ID IN (100,113) - * @param p_Amount amount - * @param p_C_Currency_ID currency - * @param p_Costing Y if costing precision - * @return rounded amount - * @throws SQLException - */ - public static BigDecimal round (BigDecimal p_Amount, int p_C_Currency_ID, - String p_Costing) - throws SQLException - { - if (p_Amount == null) - return null; - if (p_Amount.signum() == 0 || p_C_Currency_ID == 0) - return p_Amount; - // - boolean costing = p_Costing != null && "Y".equals(p_Costing); - // - BigDecimal result = p_Amount; - String sql = "SELECT StdPrecision, CostingPrecision " - + "FROM C_Currency " - + "WHERE C_Currency_ID=?"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_C_Currency_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - { - int index = costing ? 2 : 1; - int prec = rs.getInt(index); - if (result.scale() > prec) - result = result.setScale(prec, BigDecimal.ROUND_HALF_UP); - } - rs.close(); - pstmt.close(); - // - return result; - } // round - - /** - * Test - * @param args ignored - -SELECT p.DateTrx,p.DocumentNo,p.C_Payment_ID,c.ISO_Code,p.PayAmt, -currencyConvert(p.PayAmt,p.C_Currency_ID,100,p.DateTrx,p.C_ConversionType_ID,p.AD_Client_ID,p.AD_Org_ID) xPayAmt, -paymentAvailable(C_Payment_ID) Available, -currencyConvert(paymentAvailable(C_Payment_ID),p.C_Currency_ID,100,p.DateTrx,p.C_ConversionType_ID,p.AD_Client_ID,p.AD_Org_ID) xAvailable, -p.MultiplierAP -FROM C_Payment_v p -INNER JOIN C_Currency c ON (p.C_Currency_ID=c.C_Currency_ID) -ORDER BY p.DateTrx,p.DocumentNo - - * - public static void main (String[] args) - { - try - { - DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); - Adempiere.s_type = Adempiere.TYPE_ORACLE; - Adempiere.s_url = "jdbc:oracle:thin:@//dev1:1521/dev1.adempiere.org"; - Adempiere.s_uid = "adempiere"; - Adempiere.s_pwd = "adempiere"; - System.out.println(Currency.convert(new BigDecimal(102), 102, 100, null, 0, 11, 0)); - } - catch (SQLException e) - { - e.printStackTrace(); - } - } // main /* */ - -} // Currency diff --git a/sqlj/src/org/compiere/sqlj/Invoice.java b/sqlj/src/org/compiere/sqlj/Invoice.java deleted file mode 100644 index f98f24741a..0000000000 --- a/sqlj/src/org/compiere/sqlj/Invoice.java +++ /dev/null @@ -1,602 +0,0 @@ -/****************************************************************************** - * Product: Adempiere ERP & CRM Smart Business Solution * - * Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. * - * This program is free software; you can redistribute it and/or modify it * - * under the terms version 2 of the GNU General Public License as published * - * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * - * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License along * - * with this program; if not, write to the Free Software Foundation, Inc., * - * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * - * For the text or an alternative of this public license, you may reach us * - * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * - * or via info@compiere.org or http://www.compiere.org/license.html * - *****************************************************************************/ -package org.compiere.sqlj; - -import java.math.BigDecimal; -import java.sql.PreparedStatement; -import java.sql.ResultSet; -import java.sql.SQLException; -import java.sql.Timestamp; - - -/** - * SQLJ Invoice related Functions - * - * @author Jorg Janke - * @version $Id: Invoice.java,v 1.3 2006/07/30 00:59:07 jjanke Exp $ - */ -public class Invoice -{ - /** - * Open Invoice Amount. - * - incoiceOpen - * @param p_C_Invoice_ID invoice - * @param p_C_InvoicePaySchedule_ID payment schedule - * @return open amount - * @throws SQLException - */ - public static BigDecimal open (int p_C_Invoice_ID, int p_C_InvoicePaySchedule_ID) - throws SQLException - { - // Invoice info - int C_Currency_ID = 0; - int C_ConversionType_ID = 0; - BigDecimal GrandTotal = null; - BigDecimal MultiplierAP = null; - BigDecimal MultiplierCM = null; - // - String sql = "SELECT MAX(C_Currency_ID),MAX(C_ConversionType_ID)," - + " SUM(GrandTotal), MAX(MultiplierAP), MAX(Multiplier) " - + "FROM C_Invoice_v " // corrected for CM / Split Payment - + "WHERE C_Invoice_ID=?"; - if (p_C_InvoicePaySchedule_ID != 0) - sql += " AND C_InvoicePaySchedule_ID=?"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_C_Invoice_ID); - if (p_C_InvoicePaySchedule_ID != 0) - pstmt.setInt(2, p_C_InvoicePaySchedule_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - { - C_Currency_ID = rs.getInt(1); - C_ConversionType_ID = rs.getInt(2); - GrandTotal = rs.getBigDecimal(3); - MultiplierAP = rs.getBigDecimal(4); - MultiplierCM = rs.getBigDecimal(5); - } - rs.close(); - pstmt.close(); - // No Invoice - if (GrandTotal == null) - return null; - - - BigDecimal paidAmt = allocatedAmt(p_C_Invoice_ID, C_Currency_ID, - C_ConversionType_ID, MultiplierAP); - BigDecimal TotalOpenAmt = GrandTotal.subtract(paidAmt); - - /** - GrandTotal Paid TotalOpen Remaining Due x - 100 0 100 =0 - 1a =50-0 50 x - 1b =0-50 =0 50 - 2a =0-50 =0 50 - 2b =50-0 50 x - -- - 100 10 100 =10 - 1a =50-10 50 x - 1b =10-50 =0 50 - 2a =10-50 =0 50 - 2b =50-0 50 x - -- - 100 60 100 =60 - 1a =50-60 =0 50 x - 1b =60-50 50 - 2a =60-50 =10 50 - 2b =50-10 50 x - -- - **/ - - // Do we have a Payment Schedule ? - if (p_C_InvoicePaySchedule_ID > 0) // if not valid = lists invoice amount - { - TotalOpenAmt = GrandTotal; - BigDecimal remainingAmt = paidAmt; - sql = "SELECT C_InvoicePaySchedule_ID, DueAmt " - + "FROM C_InvoicePaySchedule " - + "WHERE C_Invoice_ID=?" - + " AND IsValid='Y' " - + "ORDER BY DueDate"; - pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_C_Invoice_ID); - rs = pstmt.executeQuery(); - while (rs.next()) - { - int C_InvoicePaySchedule_ID = rs.getInt(1); - BigDecimal DueAmt = rs.getBigDecimal(2); - // - if (C_InvoicePaySchedule_ID == p_C_InvoicePaySchedule_ID) - { - if (DueAmt.signum() > 0) // positive - { - if (DueAmt.compareTo(remainingAmt) < 0) // paid more - TotalOpenAmt = Adempiere.ZERO; - else - TotalOpenAmt = DueAmt.multiply(MultiplierCM) - .subtract(remainingAmt); - } - else - { - if (DueAmt.compareTo(remainingAmt) > 0) // paid more - TotalOpenAmt = Adempiere.ZERO; - else - TotalOpenAmt = DueAmt.multiply(MultiplierCM) - .add(remainingAmt); - } - } - else - { - if (DueAmt.signum() > 0) // positive - { - remainingAmt = remainingAmt.subtract(DueAmt); - if (remainingAmt.signum() < 0) - remainingAmt = Adempiere.ZERO; - } - else - { - remainingAmt = remainingAmt.add(DueAmt); - if (remainingAmt.signum() < 0) - remainingAmt = Adempiere.ZERO; - } - } - } - rs.close(); - pstmt.close(); - } // Invoice Schedule - - // Rounding - TotalOpenAmt = Currency.round(TotalOpenAmt, C_Currency_ID, null); - - // Ignore Penny if there is a payment - if (paidAmt.signum() != 0) - { - double open = TotalOpenAmt.doubleValue(); - if (open >= -0.01 && open <= 0.01) - TotalOpenAmt = Adempiere.ZERO; - } - // - return TotalOpenAmt; - } // open - - // Begin e-Evolution 15/03/2006 - /** - * Open Invoice Amount. - * - incoiceOpen - * @param p_C_Invoice_ID invoice - * @param p_C_InvoicePaySchedule_ID payment schedule - * @param DateAcct Date Account - * @return open amount - * @throws SQLException - */ - public static BigDecimal openToDate (int p_C_Invoice_ID, int p_C_InvoicePaySchedule_ID, Timestamp DateAcct) - throws SQLException - { - // Invoice info - int C_Currency_ID = 0; - int C_ConversionType_ID = 0; - BigDecimal GrandTotal = null; - BigDecimal MultiplierAP = null; - BigDecimal MultiplierCM = null; - // - String sql = "SELECT MAX(C_Currency_ID),MAX(C_ConversionType_ID)," - + " SUM(GrandTotal), MAX(MultiplierAP), MAX(Multiplier) " - + "FROM C_Invoice_v " // corrected for CM / Split Payment - + "WHERE C_Invoice_ID=?" - // Begin - + " AND DateAcct <= ?"; - // End - if (p_C_InvoicePaySchedule_ID != 0) - sql += " AND C_InvoicePaySchedule_ID=?"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_C_Invoice_ID); - pstmt.setTimestamp(2, DateAcct); - if (p_C_InvoicePaySchedule_ID != 0) - pstmt.setInt(3, p_C_InvoicePaySchedule_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - { - C_Currency_ID = rs.getInt(1); - C_ConversionType_ID = rs.getInt(2); - GrandTotal = rs.getBigDecimal(3); - MultiplierAP = rs.getBigDecimal(4); - MultiplierCM = rs.getBigDecimal(5); - } - rs.close(); - pstmt.close(); - pstmt = null; - // No Invoice - if (GrandTotal == null) - return null; - - BigDecimal paidAmt = allocatedAmtToDate(p_C_Invoice_ID, C_Currency_ID, - C_ConversionType_ID, MultiplierAP,DateAcct); - BigDecimal TotalOpenAmt = GrandTotal.subtract(paidAmt); - - /** - GrandTotal Paid TotalOpen Remaining Due x - 100 0 100 =0 - 1a =50-0 50 x - 1b =0-50 =0 50 - 2a =0-50 =0 50 - 2b =50-0 50 x - -- - 100 10 100 =10 - 1a =50-10 50 x - 1b =10-50 =0 50 - 2a =10-50 =0 50 - 2b =50-0 50 x - -- - 100 60 100 =60 - 1a =50-60 =0 50 x - 1b =60-50 50 - 2a =60-50 =10 50 - 2b =50-10 50 x - -- - **/ - - // Do we have a Payment Schedule ? - if (p_C_InvoicePaySchedule_ID > 0) // if not valid = lists invoice amount - { - TotalOpenAmt = GrandTotal; - BigDecimal remainingAmt = paidAmt; - sql = "SELECT C_InvoicePaySchedule_ID, DueAmt " - + "FROM C_InvoicePaySchedule " - + "WHERE C_Invoice_ID=?" - + " AND IsValid='Y' " - + "ORDER BY DueDate"; - pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_C_Invoice_ID); - rs = pstmt.executeQuery(); - while (rs.next()) - { - int C_InvoicePaySchedule_ID = rs.getInt(1); - BigDecimal DueAmt = rs.getBigDecimal(2); - // - if (C_InvoicePaySchedule_ID == p_C_InvoicePaySchedule_ID) - { - if (DueAmt.signum() > 0) // positive - { - if (DueAmt.compareTo(remainingAmt) < 0) // paid more - TotalOpenAmt = Adempiere.ZERO; - else - TotalOpenAmt = DueAmt.multiply(MultiplierCM) - .subtract(remainingAmt); - } - else - { - if (DueAmt.compareTo(remainingAmt) > 0) // paid more - TotalOpenAmt = Adempiere.ZERO; - else - TotalOpenAmt = DueAmt.multiply(MultiplierCM) - .add(remainingAmt); - } - } - else - { - if (DueAmt.signum() > 0) // positive - { - remainingAmt = remainingAmt.subtract(DueAmt); - if (remainingAmt.signum() < 0) - remainingAmt = Adempiere.ZERO; - } - else - { - remainingAmt = remainingAmt.add(DueAmt); - if (remainingAmt.signum() < 0) - remainingAmt = Adempiere.ZERO; - } - } - } - rs.close(); - pstmt.close(); - } // Invoice Schedule - - // Rounding - TotalOpenAmt = Currency.round(TotalOpenAmt, C_Currency_ID, null); - - // Ignore Penny if there is a payment - if (paidAmt.signum() != 0) - { - double open = TotalOpenAmt.doubleValue(); - if (open >= -0.01 && open <= 0.01) - TotalOpenAmt = Adempiere.ZERO; - } - // - return TotalOpenAmt; - } // open - // End e-Evolution 15/03/2006 - - // Begin e-Evolution 15/03/2006 - /** - * Get Invoice paid(allocated) amount. - * - invoicePaid - * @param p_C_Invoice_ID invoice - * @param p_C_Currency_ID currency - * @param p_MultiplierAP multiplier - * @param DateAcct Date Account - * @return paid amount - * @throws SQLException - */ - - public static BigDecimal paidToDate (int p_C_Invoice_ID, int p_C_Currency_ID, int p_MultiplierAP, Timestamp DateAcct) - throws SQLException - { - // Invalid Parameters - if (p_C_Invoice_ID == 0 || p_C_Currency_ID == 0) - return null; - // Parameters - BigDecimal MultiplierAP = new BigDecimal((double)p_MultiplierAP); - if (p_MultiplierAP == 0) - MultiplierAP = Adempiere.ONE; - int C_ConversionType_ID = 0; - - // Calculate Allocated Amount - BigDecimal paymentAmt = allocatedAmtToDate(p_C_Invoice_ID, - p_C_Currency_ID, C_ConversionType_ID, MultiplierAP,DateAcct); - return Currency.round(paymentAmt, p_C_Currency_ID, null); - } // paid - // End e-Evolution 15/03/2006 - - /** - * Get Invoice paid(allocated) amount. - * - invoicePaid - * @param p_C_Invoice_ID invoice - * @param p_C_Currency_ID currency - * @param p_MultiplierAP multiplier - * @return paid amount - * @throws SQLException - */ - public static BigDecimal paid (int p_C_Invoice_ID, int p_C_Currency_ID, int p_MultiplierAP) - throws SQLException - { - // Invalid Parameters - if (p_C_Invoice_ID == 0 || p_C_Currency_ID == 0) - return null; - // Parameters - BigDecimal MultiplierAP = new BigDecimal((double)p_MultiplierAP); - if (p_MultiplierAP == 0) - MultiplierAP = Adempiere.ONE; - int C_ConversionType_ID = 0; - - // Calculate Allocated Amount - BigDecimal paymentAmt = allocatedAmt(p_C_Invoice_ID, - p_C_Currency_ID, C_ConversionType_ID, MultiplierAP); - return Currency.round(paymentAmt, p_C_Currency_ID, null); - } // paid - - - /** - * Get Allocated Amt (not directly used) - * @param C_Invoice_ID invoice - * @param C_Currency_ID currency - * @param C_ConversionType_ID conversion type - * @param MultiplierAP multiplier - * @return allocated amount - * @throws SQLException - */ - public static BigDecimal allocatedAmt(int C_Invoice_ID, - int C_Currency_ID, int C_ConversionType_ID, BigDecimal MultiplierAP) - throws SQLException - { - // Calculate Allocated Amount - BigDecimal paidAmt = Adempiere.ZERO; - String sql = "SELECT a.AD_Client_ID, a.AD_Org_ID," - + " al.Amount, al.DiscountAmt, al.WriteOffAmt," - + " a.C_Currency_ID, a.DateTrx " - + "FROM C_AllocationLine al" - + " INNER JOIN C_AllocationHdr a ON (al.C_AllocationHdr_ID=a.C_AllocationHdr_ID) " - + "WHERE al.C_Invoice_ID=?" - + " AND a.IsActive='Y'"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, C_Invoice_ID); - ResultSet rs = pstmt.executeQuery(); - while (rs.next()) - { - int AD_Client_ID = rs.getInt(1); - int AD_Org_ID = rs.getInt(2); - BigDecimal Amount = rs.getBigDecimal(3); - BigDecimal DiscountAmt = rs.getBigDecimal(4); - BigDecimal WriteOffAmt = rs.getBigDecimal(5); - int C_CurrencyFrom_ID = rs.getInt(6); - Timestamp DateTrx = rs.getTimestamp(7); - // - BigDecimal invAmt = Amount.add(DiscountAmt).add(WriteOffAmt); - BigDecimal allocation = Currency.convert(invAmt.multiply(MultiplierAP), - C_CurrencyFrom_ID, C_Currency_ID, DateTrx, C_ConversionType_ID, - AD_Client_ID, AD_Org_ID); - if (allocation != null) - paidAmt = paidAmt.add(allocation); - } - rs.close(); - pstmt.close(); - pstmt = null; - // - return paidAmt; - } // getAllocatedAmt - - // Begin e-Evolution ogi-cd 15/03/2006 - /** - * Get Allocated Amt (not directly used) - * @param C_Invoice_ID invoice - * @param C_Currency_ID currency - * @param C_ConversionType_ID conversion type - * @param MultiplierAP multiplier - * @param DateAcct Date Account - * @return allocated amount - * @throws SQLException - */ - public static BigDecimal allocatedAmtToDate(int C_Invoice_ID, - int C_Currency_ID, int C_ConversionType_ID, BigDecimal MultiplierAP, Timestamp DateAcct) - throws SQLException - { - // Calculate Allocated Amount - BigDecimal paidAmt = Adempiere.ZERO; - String sql = "SELECT a.AD_Client_ID, a.AD_Org_ID," - + " al.Amount, al.DiscountAmt, al.WriteOffAmt," - + " a.C_Currency_ID, a.DateTrx " - + "FROM C_AllocationLine al" - + " INNER JOIN C_AllocationHdr a ON (al.C_AllocationHdr_ID=a.C_AllocationHdr_ID) " - + "WHERE al.C_Invoice_ID=?" - + " AND a.IsActive='Y' AND a.DateAcct <= ?"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, C_Invoice_ID); - pstmt.setTimestamp(2, DateAcct); - ResultSet rs = pstmt.executeQuery(); - while (rs.next()) - { - int AD_Client_ID = rs.getInt(1); - int AD_Org_ID = rs.getInt(2); - BigDecimal Amount = rs.getBigDecimal(3); - BigDecimal DiscountAmt = rs.getBigDecimal(4); - BigDecimal WriteOffAmt = rs.getBigDecimal(5); - int C_CurrencyFrom_ID = rs.getInt(6); - Timestamp DateTrx = rs.getTimestamp(7); - // - BigDecimal invAmt = Amount.add(DiscountAmt).add(WriteOffAmt); - BigDecimal allocation = Currency.convert(invAmt.multiply(MultiplierAP), - C_CurrencyFrom_ID, C_Currency_ID, DateTrx, C_ConversionType_ID, - AD_Client_ID, AD_Org_ID); - if (allocation != null) - paidAmt = paidAmt.add(allocation); - } - rs.close(); - pstmt.close(); - pstmt = null; - // - return paidAmt; - } // getAllocatedAmt - // End e-Evolution 15/03/2006 - - - /** - * Get Invoice discount. - * C_Invoice_Discount - invoiceDiscount - * @param p_C_Invoice_ID invoice - * @param p_PayDate pay date - * @param p_C_InvoicePaySchedule_ID pay schedule - * @return discount amount or null - * @throws SQLException - */ - public static BigDecimal discount (int p_C_Invoice_ID, - Timestamp p_PayDate, int p_C_InvoicePaySchedule_ID) - throws SQLException - { - // Parameters - if (p_C_Invoice_ID == 0) - return null; - Timestamp PayDate = p_PayDate; - if (PayDate == null) - PayDate = new Timestamp (System.currentTimeMillis()); - PayDate = Adempiere.trunc(PayDate); - - // Invoice Info - boolean IsDiscountLineAmt = false; - BigDecimal GrandTotal = null; - BigDecimal TotalLines = null; - int C_PaymentTerm_ID = 0; - Timestamp DateInvoiced = null; - boolean IsPayScheduleValid = false; - int C_Currency_ID = 0; - String sql = "SELECT ci.IsDiscountLineAmt, i.GrandTotal, i.TotalLines, " - + " i.C_PaymentTerm_ID, i.DateInvoiced, i.IsPayScheduleValid, i.C_Currency_ID " - + "FROM C_Invoice i" - + " INNER JOIN AD_ClientInfo ci ON (ci.AD_Client_ID=i.AD_Client_ID) " - + "WHERE i.C_Invoice_ID=?"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_C_Invoice_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - { - IsDiscountLineAmt = "Y".equals(rs.getString(1)); - GrandTotal = rs.getBigDecimal(2); - TotalLines = rs.getBigDecimal(3); - C_PaymentTerm_ID = rs.getInt(4); - DateInvoiced = rs.getTimestamp(5); - IsPayScheduleValid = "Y".equals(rs.getString(6)); - C_Currency_ID = rs.getInt(7); - } - rs.close(); - pstmt.close(); - // Not found - if (GrandTotal == null) - //vpj-cd return null; - return Adempiere.ZERO; - - // What Amount is the Discount Base? - BigDecimal amount = GrandTotal; - if (IsDiscountLineAmt) - amount = TotalLines; - - // Anything to discount? - if (amount.signum() == 0) - return Adempiere.ZERO; - - // Valid Payment Schedule (has discount) - if (IsPayScheduleValid && p_C_InvoicePaySchedule_ID > 0) - { - BigDecimal discount = Adempiere.ZERO; - sql = "SELECT DiscountAmt " - + "FROM C_InvoicePaySchedule " - + "WHERE C_InvoicePaySchedule_ID=?" - + " AND TRUNC(DiscountDate) <= ?"; - pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_C_InvoicePaySchedule_ID); - pstmt.setTimestamp(2, PayDate); - rs = pstmt.executeQuery(); - if (rs.next()) - discount = rs.getBigDecimal(1); - rs.close(); - pstmt.close(); - // - return discount; - } - - // return discount amount - return PaymentTerm.discount (amount, C_Currency_ID, - C_PaymentTerm_ID, DateInvoiced, PayDate); - } // discount - - /** - * Test - * @param args - * - public static void main (String[] args) - { - - try - { - DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); - Adempiere.s_type = Adempiere.TYPE_ORACLE; - Adempiere.s_url = "jdbc:oracle:thin:@//dev1:1521/dev1.adempiere.org"; - Adempiere.s_uid = "adempiere"; - Adempiere.s_pwd = "adempiere"; - // System.out.println(Invoice.open(1000000, 1000004)); - // System.out.println(Invoice.open(1000000, 1000005)); - // System.out.println(Invoice.open(1000001, 1000006)); - // System.out.println(Invoice.open(1000001, 1000007)); - System.out.println(Invoice.paid(101, 100, 1)); - System.out.println(Invoice.paid(1000000, 100, 1)); - System.out.println(Invoice.paid(1000001, 100, 1)); - System.out.println(Invoice.paid(1000002, 100, 1)); - } - catch (SQLException e) - { - e.printStackTrace(); - } - } // main /* */ - -} // Invoice diff --git a/sqlj/src/org/compiere/sqlj/Manufacturing.java b/sqlj/src/org/compiere/sqlj/Manufacturing.java deleted file mode 100644 index 17070ffe91..0000000000 --- a/sqlj/src/org/compiere/sqlj/Manufacturing.java +++ /dev/null @@ -1,74 +0,0 @@ -/****************************************************************************** - * The contents of this file are subject to the Compiere License Version 1.1 - * ("License"); You may not use this file except in compliance with the License - * You may obtain a copy of the License at http://www.compiere.org/license.html - * Software distributed under the License is distributed on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for - * the specific language governing rights and limitations under the License. - * The Original Code is Compiere ERP & CRM Smart Business Solution. The Initial - * Developer of the Original Code is Jorg Janke. Portions created by Jorg Janke - * are Copyright (C) 1999-2005 Jorg Janke. - * All parts are Copyright (C) 1999-2005 ComPiere, Inc. All Rights Reserved. - * Created by Victor Perez are Copyright (C) e-Evolution,SC. All Rights Reserved. - * Contributor(s): ______________________________________. - *****************************************************************************/ -package org.compiere.sqlj; - -import java.sql.PreparedStatement; -import java.sql.ResultSet; -import java.sql.SQLException; - - -/** - * SQLJ Manufacturing related Functions - * - * @author Victor Perez - * @version $Id: Manufacturing.java,v 1 2005/04/06 10:15:02 vj-cd Exp $ - */ -public class Manufacturing -{ - /** - * Get Order_ID for OrderType. * - * Test: - SELECT CASE WHEN mrp.OrderType = 'FTC' THEN (SELECT f.Name FROM M_Forecast f WHERE f.M_Forecast_ID=mrp.M_Forecast_ID) - WHEN mrp.OrderType = 'POO' THEN (SELECT o.DocumentNo FROM C_Order o WHERE o.C_Order_ID=mrp.C_Order_ID) - WHEN mrp.OrderType = 'DOO' THEN (SELECT o.DocumentNo FROM DD_Order o WHERE o.DD_Order_ID=mrp.DD_Order_ID) - WHEN mrp.OrderType = 'SOO' THEN (SELECT o.DocumentNo FROM C_Order o WHERE o.C_Order_ID=mrp.C_Order_ID) - WHEN mrp.OrderType = 'MOP' THEN (SELECT o.DocumentNo FROM PP_Order o WHERE o.PP_Order_ID=mrp.PP_Order_ID) - WHEN mrp.OrderType = 'POR' THEN (SELECT r.DocumentNo FROM M_Requisition r WHERE r.M_Requisition_ID=mrp.M_Requisition_ID) END AS DocumentNo - FROM PP_MRP mrp WHERE mrp.PP_MRP_ID=PP_MRP.PP_MRP_ID)) - * @param p_PP_MRP_ID - * @return DocumentNo - */ - public static String documentNo (int p_PP_MRP_ID) - throws SQLException - { - if (p_PP_MRP_ID == 0) - return ""; - // - String documentNo = ""; - // Get Base Info - String sql = "SELECT CASE WHEN mrp.OrderType = 'FTC' THEN (SELECT f.Name FROM M_Forecast f WHERE f.M_Forecast_ID=mrp.M_Forecast_ID) " - + "WHEN mrp.OrderType = 'POO' THEN (SELECT o.DocumentNo FROM C_Order o WHERE o.C_Order_ID=mrp.C_Order_ID) " - + "WHEN mrp.OrderType = 'DOO' THEN (SELECT o.DocumentNo FROM DD_Order o WHERE o.DD_Order_ID=mrp.DD_Order_ID) " - + "WHEN mrp.OrderType = 'SOO' THEN (SELECT o.DocumentNo FROM C_Order o WHERE o.C_Order_ID=mrp.C_Order_ID) " - + "WHEN mrp.OrderType = 'MOP' THEN (SELECT o.DocumentNo FROM PP_Order o WHERE o.PP_Order_ID=mrp.PP_Order_ID) " - + "WHEN mrp.OrderType = 'POR' THEN (SELECT r.DocumentNo FROM M_Requisition r WHERE r.M_Requisition_ID=mrp.M_Requisition_ID) " - + "END AS DocumentNo " - + "FROM PP_MRP mrp WHERE mrp.PP_MRP_ID=?"; - - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_PP_MRP_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - { - documentNo = rs.getString(1); - } - rs.close(); - pstmt.close(); - return documentNo; - } // getdocumentNo - - - -} // Manufacturing diff --git a/sqlj/src/org/compiere/sqlj/Payment.java b/sqlj/src/org/compiere/sqlj/Payment.java deleted file mode 100644 index 39654e2445..0000000000 --- a/sqlj/src/org/compiere/sqlj/Payment.java +++ /dev/null @@ -1,167 +0,0 @@ -/****************************************************************************** - * Product: Adempiere ERP & CRM Smart Business Solution * - * Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. * - * This program is free software; you can redistribute it and/or modify it * - * under the terms version 2 of the GNU General Public License as published * - * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * - * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License along * - * with this program; if not, write to the Free Software Foundation, Inc., * - * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * - * For the text or an alternative of this public license, you may reach us * - * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * - * or via info@compiere.org or http://www.compiere.org/license.html * - *****************************************************************************/ -package org.compiere.sqlj; - -import java.math.BigDecimal; -import java.sql.PreparedStatement; -import java.sql.ResultSet; -import java.sql.SQLException; -import java.sql.Timestamp; - - -/** - * SQLJ Payment related Functions - * - * @author Jorg Janke - * @version $Id: Payment.java,v 1.2 2006/07/30 00:59:07 jjanke Exp $ - */ -public class Payment -{ - /** - * Get allocated Payment amount. - * - paymentAllocated - * @param p_C_Payment_ID payment - * @param p_C_Currency_ID currency - * @return allocated amount - * @throws SQLException - */ - public static BigDecimal allocated (int p_C_Payment_ID, int p_C_Currency_ID) - throws SQLException - { - BigDecimal PayAmt = null; - int C_Charge_ID = 0; - // - String sql = "SELECT PayAmt, C_Charge_ID " - + "FROM C_Payment_v " // corrected for AP/AR - + "WHERE C_Payment_ID=?"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_C_Payment_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - { - PayAmt = rs.getBigDecimal(1); - C_Charge_ID = rs.getInt(2); - } - rs.close(); - pstmt.close(); - - if (C_Charge_ID > 0) - return PayAmt; - - int C_ConversionType_ID = 0; - - // Calculate Allocated Amount - BigDecimal allocatedAmt = getAllocatedAmt(p_C_Payment_ID, - p_C_Currency_ID, C_ConversionType_ID); - - // Round - return Currency.round(allocatedAmt, p_C_Currency_ID, null); - } // allocated - - /** - * Get available Payment amount in payment currency - * @param p_C_Payment_ID payment - * @return available amt - * @throws SQLException - */ - public static BigDecimal available (int p_C_Payment_ID) - throws SQLException - { - if (p_C_Payment_ID == 0) - return null; - // - int C_Currency_ID = 0; - int C_ConversionType_ID = 0; - BigDecimal PayAmt = null; - int C_Charge_ID = 0; - // - String sql = "SELECT C_Currency_ID, C_ConversionType_ID, PayAmt, C_Charge_ID " - + "FROM C_Payment_v " // corrected for AP/AR - + "WHERE C_Payment_ID=?"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_C_Payment_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - { - C_Currency_ID = rs.getInt(1); - C_ConversionType_ID = rs.getInt(2); - PayAmt = rs.getBigDecimal(3); - C_Charge_ID = rs.getInt(4); - } - rs.close(); - pstmt.close(); - // Not found - if (PayAmt == null) - return null; - // Charge - nothing available - if (C_Charge_ID != 0) - return Adempiere.ZERO; - - // Calculate Allocated Amount - BigDecimal allocatedAmt = getAllocatedAmt(p_C_Payment_ID, - C_Currency_ID, C_ConversionType_ID); - - BigDecimal available = PayAmt.subtract(allocatedAmt); - - // Round - return Currency.round(available, C_Currency_ID, null); - } // available - - /** - * Get Allocated Amt - * @param p_C_Payment_ID payment - * @param p_C_Currency_ID currency - * @param p_C_ConversionType_ID conversion type - * @return allocated amount in currency - * @throws SQLException - */ - static BigDecimal getAllocatedAmt(int p_C_Payment_ID, - int p_C_Currency_ID, int p_C_ConversionType_ID) - throws SQLException - { - // Calculate Allocated Amount - BigDecimal allocatedAmt = Adempiere.ZERO; - String sql = "SELECT a.AD_Client_ID, a.AD_Org_ID, al.Amount, a.C_Currency_ID, a.DateTrx " - + "FROM C_AllocationLine al " - + " INNER JOIN C_AllocationHdr a ON (al.C_AllocationHdr_ID=a.C_AllocationHdr_ID) " - + "WHERE al.C_Payment_ID=?" - + " AND a.IsActive='Y'"; - // AND al.C_Invoice_ID IS NOT NULL; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_C_Payment_ID); - ResultSet rs = pstmt.executeQuery(); - while (rs.next()) - { - int AD_Client_ID = rs.getInt(1); - int AD_Org_ID = rs.getInt(2); - BigDecimal amount = rs.getBigDecimal(3); - int C_CurrencyFrom_ID = rs.getInt(4); - Timestamp DateTrx = rs.getTimestamp(5); - // - BigDecimal allocation = Currency.convert(amount, //.multiply(MultiplierAP), - C_CurrencyFrom_ID, p_C_Currency_ID, DateTrx,p_C_ConversionType_ID, - AD_Client_ID, AD_Org_ID); - if (allocation != null) - allocatedAmt = allocatedAmt.add(allocation); - } - rs.close(); - pstmt.close(); - // - return allocatedAmt; - } // getAllocatedAmt - -} // Payment diff --git a/sqlj/src/org/compiere/sqlj/PaymentTerm.java b/sqlj/src/org/compiere/sqlj/PaymentTerm.java deleted file mode 100644 index da730628a3..0000000000 --- a/sqlj/src/org/compiere/sqlj/PaymentTerm.java +++ /dev/null @@ -1,352 +0,0 @@ -/****************************************************************************** - * Product: Adempiere ERP & CRM Smart Business Solution * - * Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. * - * This program is free software; you can redistribute it and/or modify it * - * under the terms version 2 of the GNU General Public License as published * - * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * - * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License along * - * with this program; if not, write to the Free Software Foundation, Inc., * - * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * - * For the text or an alternative of this public license, you may reach us * - * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * - * or via info@compiere.org or http://www.compiere.org/license.html * - *****************************************************************************/ -package org.compiere.sqlj; - -import java.math.BigDecimal; -import java.sql.PreparedStatement; -import java.sql.ResultSet; -import java.sql.SQLException; -import java.sql.Timestamp; -import java.util.Calendar; -import java.util.GregorianCalendar; - - -/** - * SQLJ Payment Term related Functions - * - * @author Jorg Janke - * @version $Id: PaymentTerm.java,v 1.3 2006/07/30 00:59:07 jjanke Exp $ - */ -public class PaymentTerm -{ - /** - * Get Due Days. - SELECT Name, paymentTermDueDays(C_PaymentTerm_ID, SysDate, SysDate) "DueDays" FROM C_PaymentTerm - * @param p_C_PaymentTerm_ID payment term - * @param p_DocDate document date - * @param p_PayDate payment date (or today) - * @return days due - * @throws SQLException - */ - public static int dueDays (int p_C_PaymentTerm_ID, - Timestamp p_DocDate, Timestamp p_PayDate) - throws SQLException - { - // Parameter - if (p_C_PaymentTerm_ID == 0 || p_DocDate == null) - return 0; - // Pay Date - Timestamp PayDate = p_PayDate; - if (PayDate == null) - PayDate = new Timestamp(System.currentTimeMillis()); - PayDate = Adempiere.trunc(PayDate); - - // Get Due Date - Timestamp DueDate = null; - String sql = "SELECT * " - + "FROM C_PaymentTerm " - + "WHERE C_PaymentTerm_ID=?"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_C_PaymentTerm_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - { - boolean IsDueFixed = "Y".equals(rs.getString("IsDueFixed")); - // - if (IsDueFixed) - { - int FixMonthDay = rs.getInt("FixMonthDay"); - int FixMonthOffset = rs.getInt("FixMonthOffset"); - int FixMonthCutoff = rs.getInt("FixMonthCutoff"); - // - DueDate = calculateDateDue (p_DocDate, FixMonthDay, FixMonthOffset, FixMonthCutoff); - } - else - { - int NetDays = rs.getInt("NetDays"); - DueDate = Adempiere.addDays(p_DocDate, NetDays); - } - } - rs.close(); - pstmt.close(); - - // - if (DueDate == null) - return 0; - return Adempiere.getDaysBetween(DueDate, PayDate); - } // dueDays - - /** - * Get Due Days of invoice - * @param p_C_Invoice_ID Invoice - * @param p_PayDate paument date (or today) - * @return days due - * @throws SQLException - */ - public static int invoiceDueDays (int p_C_Invoice_ID, Timestamp p_PayDate) - throws SQLException - { - // Parameter - if (p_C_Invoice_ID == 0) - return 0; - int retValue = 0; - - String sql = "SELECT C_PaymentTerm_ID, DateInvoiced " - + "FROM C_Invoice " - + "WHERE C_Invoice_ID=?"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_C_Invoice_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - { - int C_PaymentTerm_ID = rs.getInt(1); - Timestamp DocDate = rs.getTimestamp(2); - retValue = dueDays(C_PaymentTerm_ID, DocDate, p_PayDate); - } - rs.close(); - pstmt.close(); - - return retValue; - } // invoiceDueDays - - /** - * Get Due Date. - SELECT Name, paymentTermDueDate(C_PaymentTerm_ID, SysDate) "DueDate" FROM C_PaymentTerm - * @param p_C_PaymentTerm_ID payment term - * @param p_DocDate document date - * @return due date - * @throws SQLException - */ - public static Timestamp dueDate (int p_C_PaymentTerm_ID, - Timestamp p_DocDate) - throws SQLException - { - // Parameter - if (p_C_PaymentTerm_ID == 0 || p_DocDate == null) - return null; - // Due Date - Timestamp DueDate = Adempiere.trunc(p_DocDate); - - // Get Due Date - String sql = "SELECT * " - + "FROM C_PaymentTerm " - + "WHERE C_PaymentTerm_ID=?"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_C_PaymentTerm_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - { - boolean IsDueFixed = "Y".equals(rs.getString("IsDueFixed")); - // - if (IsDueFixed) - { - int FixMonthDay = rs.getInt("FixMonthDay"); - int FixMonthOffset = rs.getInt("FixMonthOffset"); - int FixMonthCutoff = rs.getInt("FixMonthCutoff"); - // - DueDate = calculateDateDue (p_DocDate, FixMonthDay, FixMonthOffset, FixMonthCutoff); - } - else - { - int NetDays = rs.getInt("NetDays"); - if (NetDays != 0) - DueDate = Adempiere.addDays(DueDate, NetDays); - } - } - rs.close(); - pstmt.close(); - - // - return DueDate; - } // dueDate - - /** - * Get Invoice Due Date - * @param p_C_Invoice_ID payment term - * @return due date - * @throws SQLException - */ - public static Timestamp invoiceDueDate (int p_C_Invoice_ID) - throws SQLException - { - // Parameter - if (p_C_Invoice_ID == 0) - return null; - // Due Date - Timestamp DueDate = null; - - String sql = "SELECT C_PaymentTerm_ID, DateInvoiced " - + "FROM C_Invoice " - + "WHERE C_Invoice_ID=?"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_C_Invoice_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - { - int C_PaymentTerm_ID = rs.getInt(1); - Timestamp DocDate = rs.getTimestamp(2); - DueDate = dueDate(C_PaymentTerm_ID, DocDate); - } - rs.close(); - pstmt.close(); - // - return DueDate; - } // invoiceDueDate - - /** - * Calculate Date - * @param DocDate document date - * @param FixMonthDay day - * @param FixMonthOffset offset - * @param FixMonthCutoff cuttof - * @return date due - */ - private static Timestamp calculateDateDue (Timestamp DocDate, int FixMonthDay, int FixMonthOffset, int FixMonthCutoff) - { - GregorianCalendar cal = new GregorianCalendar(); - cal.setTime(DocDate); - cal.set(Calendar.HOUR_OF_DAY, 0); - cal.set(Calendar.MINUTE, 0); - cal.set(Calendar.SECOND, 0); - cal.set(Calendar.MILLISECOND, 0); - // Cutoff - int maxDayCut = cal.getActualMaximum(Calendar.DAY_OF_MONTH); - if (FixMonthCutoff > maxDayCut) // 28-Feb - cal.set(Calendar.DAY_OF_MONTH, maxDayCut); - else - cal.set(Calendar.DAY_OF_MONTH, FixMonthCutoff); - if (DocDate.after(cal.getTime())) - FixMonthOffset += 1; - cal.add(Calendar.MONTH, FixMonthOffset); - // Due Date - int maxDay = cal.getActualMaximum(Calendar.DAY_OF_MONTH); - if (FixMonthDay > maxDay) // 32 -> 28 - cal.set(Calendar.DAY_OF_MONTH, maxDay); - else if (FixMonthDay >= 30 && maxDay > FixMonthDay) // 30 -> 31 - cal.set(Calendar.DAY_OF_MONTH, maxDay); - else - cal.set(Calendar.DAY_OF_MONTH, FixMonthDay); - // - java.util.Date temp = cal.getTime(); - return new Timestamp(temp.getTime()); - } // calculateDateDue - - - /** - * Get Discount amount. - SELECT C_PaymentTerm_ID, Name, paymentTermDiscount(111.1111, 100, C_PaymentTerm_ID, SysDate, SysDate) "DiscountUSD", paymentTermDiscount(111.1111, 100, C_PaymentTerm_ID, SysDate, SysDate) "DiscountJPY" FROM C_PaymentTerm - * @param p_Amount amount - * @param p_C_Currency_ID currency - * @param p_C_PaymentTerm_ID payment term - * @param p_DocDate document date - * @param p_PayDate payment date - * @return discount amount - * @throws SQLException - */ - public static BigDecimal discount (BigDecimal p_Amount, int p_C_Currency_ID, - int p_C_PaymentTerm_ID, - Timestamp p_DocDate, Timestamp p_PayDate) - throws SQLException - { - // No Data - No Discount - if (p_Amount == null || p_C_PaymentTerm_ID == 0 || p_DocDate == null) - return null; - if (p_Amount.signum() == 0) - return Adempiere.ZERO; - // Parameters - Timestamp PayDate = p_PayDate; - if (PayDate == null) - PayDate = new Timestamp (System.currentTimeMillis()); - PayDate = Adempiere.trunc(PayDate); - // - BigDecimal discount = null; - String sql = "SELECT * " - + "FROM C_PaymentTerm " - + "WHERE C_PaymentTerm_ID=?"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_C_PaymentTerm_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - { - int DiscountDays = rs.getInt("DiscountDays"); - int DiscountDays2 = rs.getInt("DiscountDays2"); - int GraceDays = rs.getInt("GraceDays"); - boolean IsNextBusinessDay = "Y".equals(rs.getString("IsNextBusinessDay")); - BigDecimal Discount = rs.getBigDecimal("Discount"); - BigDecimal Discount2 = rs.getBigDecimal("Discount2"); - // - Timestamp Discount1Date = Adempiere.addDays(p_DocDate, DiscountDays + GraceDays); - Timestamp Discount2Date = Adempiere.addDays(p_DocDate, DiscountDays2 + GraceDays); - // Next Business Day - if (IsNextBusinessDay) - { - Discount1Date = Adempiere.nextBusinessDay(Discount1Date); - Discount2Date = Adempiere.nextBusinessDay(Discount2Date); - } - - // Discount 1 - if (!PayDate.after(Discount1Date)) - discount = p_Amount.multiply(Discount); - // Discount 2 - else if (!PayDate.after(Discount2Date)) - discount = p_Amount.multiply(Discount2); - else - discount = Adempiere.ZERO; - // Divide - if (discount.signum() != 0) - { - discount = discount.divide(Adempiere.HUNDRED, 6, BigDecimal.ROUND_HALF_UP); - discount = Currency.round(discount, p_C_Currency_ID, "N"); - } - } - rs.close(); - pstmt.close(); - // - return discount; - } // discount - - - /** - * Test - * @param args ignored - * - public static void main (String[] args) - { - - try - { - DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); - Adempiere.s_type = Adempiere.TYPE_ORACLE; - Adempiere.s_url = "jdbc:oracle:thin:@//dev:1521/dev.adempiere.org"; - // Adempiere.s_url = "jdbc:oracle:thin:@//dev1:1521/dev1.adempiere.org"; - Adempiere.s_uid = "adempiere"; - Adempiere.s_pwd = "adempiere"; - // - Timestamp today = new Timestamp(System.currentTimeMillis()); - // System.out.println(PaymentTerm.dueDays(1000000, today, today)); - // System.out.println(PaymentTerm.dueDate(1000000, today)); - // System.out.println(PaymentTerm.invoiceDueDate(1000008)); - System.out.println(PaymentTerm.discount(new BigDecimal(111.11111), 100, 106, today, today)); - System.out.println(PaymentTerm.discount(new BigDecimal(111.11111), 113, 106, today, today)); - } - catch (SQLException e) - { - e.printStackTrace(); - } - } // main /* */ - -} // PaymentTerm diff --git a/sqlj/src/org/compiere/sqlj/Product.java b/sqlj/src/org/compiere/sqlj/Product.java deleted file mode 100644 index d8950bfccb..0000000000 --- a/sqlj/src/org/compiere/sqlj/Product.java +++ /dev/null @@ -1,682 +0,0 @@ -/****************************************************************************** - * Product: Adempiere ERP & CRM Smart Business Solution * - * Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. * - * This program is free software; you can redistribute it and/or modify it * - * under the terms version 2 of the GNU General Public License as published * - * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * - * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License along * - * with this program; if not, write to the Free Software Foundation, Inc., * - * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * - * For the text or an alternative of this public license, you may reach us * - * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * - * or via info@compiere.org or http://www.compiere.org/license.html * - *****************************************************************************/ -package org.compiere.sqlj; - -import java.math.BigDecimal; -import java.sql.Date; -import java.sql.PreparedStatement; -import java.sql.ResultSet; -import java.sql.SQLException; -import java.sql.Timestamp; - - -/** - * SQLJ Product related Functions - * - * @author Jorg Janke - * @version $Id: Product.java,v 1.3 2006/07/30 00:59:07 jjanke Exp $ - */ -public class Product -{ - /** - * Get Product Attribute Instance Name. - * Previously: M_Attribute_Name - Now: productAttribute - * Test: - SELECT M_Attribute_Name (M_AttributeSetInstance_ID) - FROM M_InOutLine WHERE M_AttributeSetInstance_ID > 0 - -- - SELECT p.Name - FROM C_InvoiceLine il LEFT OUTER JOIN M_Product p ON (il.M_Product_ID=p.M_Product_ID); - SELECT p.Name || M_Attribute_Name (il.M_AttributeSetInstance_ID) - FROM C_InvoiceLine il LEFT OUTER JOIN M_Product p ON (il.M_Product_ID=p.M_Product_ID); - * @param p_M_AttributeSetInstance_ID instance - * @return Name or "" - * @throws SQLException - */ - public static String attributeName (int p_M_AttributeSetInstance_ID) - throws SQLException - { - if (p_M_AttributeSetInstance_ID == 0) - return ""; - // - StringBuffer sb = new StringBuffer(); - // Get Base Info - String sql = "SELECT asi.Lot, asi.SerNo, asi.GuaranteeDate " - + "FROM M_AttributeSetInstance asi " - + "WHERE asi.M_AttributeSetInstance_ID=?"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_M_AttributeSetInstance_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - { - String lot = rs.getString(1); - if (lot != null && lot.length() > 0) - sb.append(lot).append(" "); - String serNo = rs.getString(2); - if (serNo != null && serNo.length() > 0) - sb.append("#").append(serNo).append(" "); - Date guaranteeDate = null; - //either date or timestamp - Object guarantee = rs.getObject(3); - if (guarantee != null) - { - if (guarantee instanceof Timestamp) - { - Timestamp ts = (Timestamp)guarantee; - guaranteeDate = new Date(ts.getTime()); - } - else - { - guaranteeDate = (Date)guaranteeDate; - } - } - if (guaranteeDate != null) - sb.append(guaranteeDate).append(" "); - } - rs.close(); - pstmt.close(); - - // Get Instance Info - sql = "SELECT ai.Value, a.Name " - + "FROM M_AttributeInstance ai" - + " INNER JOIN M_Attribute a ON (ai.M_Attribute_ID=a.M_Attribute_ID AND a.IsInstanceAttribute='Y') " - + "WHERE ai.M_AttributeSetInstance_ID=?"; - pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_M_AttributeSetInstance_ID); - rs = pstmt.executeQuery(); - while (rs.next()) - { - sb.append(rs.getString(1)) // value - .append(":").append(rs.getString(2)) // name - .append(" "); - } - rs.close(); - pstmt.close(); - - if (sb.length() == 0) - return ""; - sb.insert(0, " ("); - sb.append(")"); - return sb.toString(); - } // getAttributeName - - - /************************************************************************** - * Get BOM Price Limit - * Previously: BOM_PriceLimit - Now: bomPriceLimit - * @param p_M_Product_ID - * @param p_M_PriceList_Version_ID - * @return Price Limit - * @throws SQLException - */ - public static BigDecimal bomPriceLimit (int p_M_Product_ID, int p_M_PriceList_Version_ID) - throws SQLException - { - return bomPrice(p_M_Product_ID, p_M_PriceList_Version_ID, "PriceLimit"); - } // bomPriceLimit - - /** - * Get BOM Price List - * Previously: BOM_PriceList - Now: bomPriceList - * @param p_M_Product_ID - * @param p_M_PriceList_Version_ID - * @return Price List - * @throws SQLException - */ - public static BigDecimal bomPriceList (int p_M_Product_ID, int p_M_PriceList_Version_ID) - throws SQLException - { - return bomPrice(p_M_Product_ID, p_M_PriceList_Version_ID, "PriceList"); - } // bomPriceList - - /** - * Get BOM Price Std - * Previously: BOM_PriceStd - Now: bomPriceStd - * @param p_M_Product_ID - * @param p_M_PriceList_Version_ID - * @return Price Std - * @throws SQLException - */ - public static BigDecimal bomPriceStd (int p_M_Product_ID, int p_M_PriceList_Version_ID) - throws SQLException - { - return bomPrice(p_M_Product_ID, p_M_PriceList_Version_ID, "PriceStd"); - } // bomPriceStd - - /** - * Get BOM Price - * @param p_M_Product_ID - * @param p_M_PriceList_Version_ID - * @param p_what variable name - * @return Price - * @throws SQLException - */ - static BigDecimal bomPrice (int p_M_Product_ID, int p_M_PriceList_Version_ID, String p_what) - throws SQLException - { - BigDecimal price = null; - // Try to get price from PriceList directly - String sql = "SELECT " + p_what - + " FROM M_ProductPrice " - + "WHERE M_PriceList_Version_ID=? AND M_Product_ID=?"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_M_PriceList_Version_ID); - pstmt.setInt(2, p_M_Product_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - price = rs.getBigDecimal(1); - rs.close(); - pstmt.close(); - // Loop through BOM - if (price == null || price.signum() == 0) - { - price = Adempiere.ZERO; - /*sql = "SELECT b.M_ProductBOM_ID, b.BOMQty, p.IsBOM " - + "FROM M_Product_BOM b, M_Product p " - + "WHERE b.M_ProductBOM_ID=p.M_Product_ID" - + " AND b.M_Product_ID=?";*/ - sql = "SELECT bl.M_Product_ID , CASE WHEN bl.IsQtyPercentage = 'N' THEN bl.QtyBOM ELSE bl.QtyBatch / 100 END AS Qty , p.IsBOM FROM PP_Product_BOM b " - + "INNER JOIN M_Product p ON (p.M_Product_ID=b.M_Product_ID) " - + "INNER JOIN PP_Product_BOMLine bl ON (bl.PP_Product_BOM_ID=b.PP_Product_BOM_ID) " - + "WHERE b.M_Product_ID = ?"; - pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_M_Product_ID); - rs = pstmt.executeQuery(); - while (rs.next()) - { - int M_ProductBOM_ID = rs.getInt(1); - BigDecimal qty = rs.getBigDecimal(2); - BigDecimal productPrice = bomPrice(M_ProductBOM_ID, p_M_PriceList_Version_ID, p_what); - productPrice = productPrice.multiply(qty); - price = price.add(productPrice); - } - rs.close(); - pstmt.close(); - } - return price; - } // bomPrice - - - /************************************************************************** - * Get BOM Quantity Available - * Previously: BOM_Qty_Available - Now: bomQtyAvailable - * @param p_M_Product_ID product - * @param p_M_Warehouse_ID warehouse - * @param p_M_Locator_ID locator - * @return Quantity Available - * @throws SQLException - */ - public static BigDecimal bomQtyAvailable (int p_M_Product_ID, - int p_M_Warehouse_ID, int p_M_Locator_ID) - throws SQLException - { - return bomQty(p_M_Product_ID, p_M_Warehouse_ID, p_M_Locator_ID, "QtyOnHand") - .subtract(bomQty(p_M_Product_ID, p_M_Warehouse_ID, p_M_Locator_ID, "QtyReserved")); - } // bomQtyAvailable - - /** - * Get BOM Quantity OnHand - * Previously: BOM_Qty_OnHand - Now: bomQtyOnHand - * @param p_M_Product_ID product - * @param p_M_Warehouse_ID warehouse - * @param p_M_Locator_ID locator - * @return Quantity Available - * @throws SQLException - */ - public static BigDecimal bomQtyOnHand (int p_M_Product_ID, - int p_M_Warehouse_ID, int p_M_Locator_ID) - throws SQLException - { - return bomQty(p_M_Product_ID, p_M_Warehouse_ID, p_M_Locator_ID, "QtyOnHand"); - } // bomQtyOnHand - - /** - * Get BOM Quantity Ordered - * Previously: BOM_Qty_Ordered - Now: bomQtyOrdered - * @param p_M_Product_ID product - * @param p_M_Warehouse_ID warehouse - * @param p_M_Locator_ID locator - * @return Quantity Ordered - * @throws SQLException - */ - public static BigDecimal bomQtyOrdered (int p_M_Product_ID, - int p_M_Warehouse_ID, int p_M_Locator_ID) - throws SQLException - { - return bomQty(p_M_Product_ID, p_M_Warehouse_ID, p_M_Locator_ID, "QtyOrdered"); - } // bomQtyOrdered - - /** - * Get BOM Quantity Reserved - * Previously: BOM_Qty_Reserved - Now: bomQtyReserved - * @param p_M_Product_ID product - * @param p_M_Warehouse_ID warehouse - * @param p_M_Locator_ID locator - * @return Qyantity Reserved - * @throws SQLException - */ - public static BigDecimal bomQtyReserved (int p_M_Product_ID, - int p_M_Warehouse_ID, int p_M_Locator_ID) - throws SQLException - { - return bomQty(p_M_Product_ID, p_M_Warehouse_ID, p_M_Locator_ID, "QtyReserved"); - } // bomQtyReserved - - /** - * Get BOM Quantity - * @param p_M_Product_ID product - * @param p_M_Warehouse_ID warehouse - * @param p_M_Locator_ID locator - * @param p_what variable name - * @return Quantity - * @throws SQLException - */ - static BigDecimal bomQty (int p_M_Product_ID, - int p_M_Warehouse_ID, int p_M_Locator_ID, String p_what) - throws SQLException - { - // Check Parameters - int M_Warehouse_ID = p_M_Warehouse_ID; - if (M_Warehouse_ID == 0) - { - if (p_M_Locator_ID == 0) - return Adempiere.ZERO; - else - { - String sql = "SELECT M_Warehouse_ID " - + "FROM M_Locator " - + "WHERE M_Locator_ID=?"; - M_Warehouse_ID = Adempiere.getSQLValue(sql, p_M_Locator_ID); - } - } - // begin globalqss 2005-10-11 - // if (M_Warehouse_ID == 0) - if (M_Warehouse_ID == 0 || M_Warehouse_ID == -1) - // end globalqss 2005-10-11 - return Adempiere.ZERO; - - // Check, if product exists and if it is stocked - boolean isBOM = false; - String ProductType = null; - boolean isStocked = false; - String sql = "SELECT IsBOM, ProductType, IsStocked " - + "FROM M_Product " - + "WHERE M_Product_ID=?"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_M_Product_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - { - isBOM = "Y".equals(rs.getString(1)); - ProductType = rs.getString(2); - isStocked = "Y".equals(rs.getString(3)); - } - rs.close(); - pstmt.close(); - // No Product - if (ProductType == null) - return Adempiere.ZERO; - // Unlimited capacity if no item - if (!isBOM && (!ProductType.equals("I") || !isStocked)) - return UNLIMITED; - // Get Qty - if (isStocked) - return getStorageQty(p_M_Product_ID, M_Warehouse_ID, p_M_Locator_ID, p_what); - - // Go through BOM - BigDecimal quantity = UNLIMITED; - BigDecimal productQuantity = null; - /*sql = "SELECT b.M_ProductBOM_ID, b.BOMQty, p.IsBOM, p.IsStocked, p.ProductType " - + "FROM M_Product_BOM b, M_Product p " - + "WHERE b.M_ProductBOM_ID=p.M_Product_ID" - + " AND b.M_Product_ID=?";*/ - - sql = "SELECT bl.M_Product_ID , CASE WHEN bl.IsQtyPercentage = 'N' THEN bl.QtyBOM ELSE bl.QtyBatch / 100 END AS Qty , p.IsBOM , p.IsStocked, p.ProductType FROM PP_Product_BOM b " - + "INNER JOIN M_Product p ON (p.M_Product_ID=b.M_Product_ID) " - + "INNER JOIN PP_Product_BOMLine bl ON (bl.PP_Product_BOM_ID=b.PP_Product_BOM_ID) " - + "WHERE b.M_Product_ID = ?"; - - pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_M_Product_ID); - rs = pstmt.executeQuery(); - while (rs.next()) - { - int M_ProductBOM_ID = rs.getInt(1); - BigDecimal bomQty = rs.getBigDecimal(2); - isBOM = "Y".equals(rs.getString(3)); - isStocked = "Y".equals(rs.getString(4)); - ProductType = rs.getString(5); - - // Stocked Items "leaf node" - if (ProductType.equals("I") && isStocked) - { - // Get ProductQty - productQuantity = getStorageQty(M_ProductBOM_ID, M_Warehouse_ID, p_M_Locator_ID, p_what); - // Get Rounding Precision - int uomPrecision = getUOMPrecision(M_ProductBOM_ID); - // How much can we make with this product - //hengsin, [ 1649453 ] bomQtyAvailable sqlj function throw ArithmeticException - //productQuantity = productQuantity.setScale(uomPrecision) - // .divide(bomQty, uomPrecision, BigDecimal.ROUND_HALF_UP); - productQuantity = productQuantity.divide(bomQty, uomPrecision, BigDecimal.ROUND_HALF_UP); - // How much can we make overall - if (productQuantity.compareTo(quantity) < 0) - quantity = productQuantity; - } - else if (isBOM) // Another BOM - { - productQuantity = bomQty (M_ProductBOM_ID, M_Warehouse_ID, p_M_Locator_ID, p_what); - // How much can we make overall - if (productQuantity.compareTo(quantity) < 0) - quantity = productQuantity; - } - } - rs.close(); - pstmt.close(); - - if (quantity.signum() != 0) - { - int uomPrecision = getUOMPrecision(p_M_Product_ID); - return quantity.setScale(uomPrecision, BigDecimal.ROUND_HALF_UP); - } - return Adempiere.ZERO; - } // bomQtyOnHand - - /** Unlimited Quantity */ - private static final BigDecimal UNLIMITED = new BigDecimal((double)99999.0); - - /** - * Get Storage Qty - * @param p_M_Product_ID product - * @param M_Warehouse_ID warehouse - * @param p_M_Locator_ID locator - * @param p_what variable name - * @return quantity or zero - * @throws SQLException - */ - static BigDecimal getStorageQty (int p_M_Product_ID, - int M_Warehouse_ID, int p_M_Locator_ID, String p_what) - throws SQLException - { - BigDecimal quantity = null; - String sql = "SELECT SUM(" + p_what + ") " - + "FROM M_Storage s " - + "WHERE M_Product_ID=?"; - if (p_M_Locator_ID != 0) - sql += " AND s.M_Locator_ID=?"; - else - sql += " AND EXISTS (SELECT * FROM M_Locator l WHERE s.M_Locator_ID=l.M_Locator_ID" - + " AND l.M_Warehouse_ID=?)"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_M_Product_ID); - if (p_M_Locator_ID != 0) - pstmt.setInt(2, p_M_Locator_ID); - else - pstmt.setInt(2, M_Warehouse_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - quantity = rs.getBigDecimal(1); - rs.close(); - pstmt.close(); - // Not found - if (quantity == null) - return Adempiere.ZERO; - return quantity; - } // getStorageQty - - /** - * Get UOM Precision for Product - * @param p_M_Product_ID product - * @return precision or 0 - * @throws SQLException - */ - static int getUOMPrecision (int p_M_Product_ID) throws SQLException - { - int precision = 0; - String sql = "SELECT u.StdPrecision " - + "FROM C_UOM u" - + " INNER JOIN M_Product p ON (u.C_UOM_ID=p.C_UOM_ID) " - + "WHERE p.M_Product_ID=?"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_M_Product_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - precision = rs.getInt(1); - rs.close(); - pstmt.close(); - return precision; - } // getStdPrecision - - /** - * Test - * @param args - * - public static void main (String[] args) - { - - try - { - DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); - Adempiere.s_type = Adempiere.TYPE_ORACLE; - Adempiere.s_url = "jdbc:oracle:thin:@//dev1:1521/dev1.adempiere.org"; - Adempiere.s_uid = "adempiere"; - Adempiere.s_pwd = "adempiere"; - // System.out.println(Product.bomQtyOnHand(p_M_Product_ID, 0, p_M_Locator_ID)); - } - catch (SQLException e) - { - e.printStackTrace(); - } - } // main /* */ - - - public static BigDecimal bomQtyAvailableASI (int p_M_Product_ID, int p_M_AttributeSetInstance_ID, - int p_M_Warehouse_ID, int p_M_Locator_ID) - throws SQLException - { - return bomQtyOnHandASI(p_M_Product_ID, p_M_AttributeSetInstance_ID, p_M_Warehouse_ID, p_M_Locator_ID) - .subtract(bomQtyReservedASI(p_M_Product_ID, p_M_AttributeSetInstance_ID, p_M_Warehouse_ID, p_M_Locator_ID)); - } // bomQtyAvailable - - public static BigDecimal bomQtyOnHandASI (int p_M_Product_ID, int p_M_AttributeSetInstance_ID, - int p_M_Warehouse_ID, int p_M_Locator_ID) - throws SQLException - { - return bomQtyASI(p_M_Product_ID, p_M_AttributeSetInstance_ID, p_M_Warehouse_ID, p_M_Locator_ID, "QtyOnHand"); - } // bomQtyOnHand - - public static BigDecimal bomQtyOrderedASI (int p_M_Product_ID, int p_M_AttributeSetInstance_ID, - int p_M_Warehouse_ID, int p_M_Locator_ID) - throws SQLException - { - return bomQtyASI(p_M_Product_ID, p_M_AttributeSetInstance_ID, p_M_Warehouse_ID, p_M_Locator_ID, "QtyOrdered"); - } // bomQtyOrdered - - public static BigDecimal bomQtyReservedASI (int p_M_Product_ID, int p_M_AttributeSetInstance_ID, - int p_M_Warehouse_ID, int p_M_Locator_ID) - throws SQLException - { - return bomQtyASI(p_M_Product_ID, p_M_AttributeSetInstance_ID, p_M_Warehouse_ID, p_M_Locator_ID, "QtyReserved"); - } // bomQtyReserved - - /** - * Get BOM Quantity - * @param p_M_Product_ID product - * @param p_M_Warehouse_ID warehouse - * @param p_M_Locator_ID locator - * @param p_what variable name - * @return Quantity - */ - static BigDecimal bomQtyASI (int p_M_Product_ID, int p_M_AttributeSetInstance_ID, - int p_M_Warehouse_ID, int p_M_Locator_ID, String p_what) - throws SQLException - { - // Check Parameters - /* - int M_Warehouse_ID = p_M_Warehouse_ID; - if (M_Warehouse_ID == 0) - { - if (p_M_Locator_ID == 0) - return Compiere.ZERO; - else - { - String sql = "SELECT M_Warehouse_ID " - + "FROM M_Locator " - + "WHERE M_Locator_ID=" + p_M_Locator_ID; - M_Warehouse_ID = Compiere.getSQLValue(sql, p_M_Locator_ID); - } - } - if (M_Warehouse_ID == 0) - return Compiere.ZERO; - */ - // Check, if product exists and if it is stocked - boolean isBOM = false; - String ProductType = null; - boolean isStocked = false; - String sql = "SELECT IsBOM, ProductType, IsStocked " - + "FROM M_Product " - + "WHERE M_Product_ID=?"; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_M_Product_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - { - isBOM = "Y".equals(rs.getString(1)); - ProductType = rs.getString(2); - isStocked = "Y".equals(rs.getString(3)); - } - rs.close(); - pstmt.close(); - // No Product - if (ProductType == null) - return Compiere.ZERO; - // Unlimited capacity if no item - if (!isBOM && (!ProductType.equals("I") || !isStocked)) - return UNLIMITED; - // Get Qty - if (isStocked) { - - return getStorageQtyASI(p_M_Product_ID, p_M_AttributeSetInstance_ID, p_M_Warehouse_ID, p_M_Locator_ID, p_what); - } - // Go through BOM - BigDecimal quantity = UNLIMITED; - BigDecimal productQuantity = null; - /*sql = "SELECT b.M_ProductBOM_ID, b.BOMQty, p.IsBOM, p.IsStocked, p.ProductType " - + "FROM M_Product_BOM b, M_Product p " - + "WHERE b.M_ProductBOM_ID=p.M_Product_ID" - + " AND b.M_Product_ID=?";*/ - sql = "SELECT bl.M_Product_ID , CASE WHEN bl.IsQtyPercentage = 'N' THEN bl.QtyBOM ELSE bl.QtyBatch / 100 END AS Qty , p.IsBOM , p.IsStocked, p.ProductType FROM PP_Product_BOM b " - + "INNER JOIN M_Product p ON (p.M_Product_ID=b.M_Product_ID) " - + "INNER JOIN PP_Product_BOMLine bl ON (bl.PP_Product_BOM_ID=b.PP_Product_BOM_ID) " - + "WHERE b.M_Product_ID = ?"; - pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(1, p_M_Product_ID); - rs = pstmt.executeQuery(); - while (rs.next()) - { - int M_ProductBOM_ID = rs.getInt(1); - BigDecimal bomQty = rs.getBigDecimal(2); - isBOM = "Y".equals(rs.getString(3)); - isStocked = "Y".equals(rs.getString(4)); - ProductType = rs.getString(5); - - // Stocked Items "leaf node" - if (ProductType.equals("I") && isStocked) - { - // Get ProductQty - productQuantity = getStorageQtyASI(M_ProductBOM_ID, p_M_AttributeSetInstance_ID, p_M_Warehouse_ID, p_M_Locator_ID, p_what); - // Get Rounding Precision - int StdPrecision = getUOMPrecision(M_ProductBOM_ID); - // How much can we make with this product - productQuantity = productQuantity.setScale(StdPrecision, BigDecimal.ROUND_HALF_UP) - .divide(bomQty, BigDecimal.ROUND_HALF_UP); - // How much can we make overall - if (productQuantity.compareTo(quantity) < 0) - quantity = productQuantity; - } - else if (isBOM) // Another BOM - { - productQuantity = bomQtyASI (M_ProductBOM_ID, p_M_AttributeSetInstance_ID, p_M_Warehouse_ID, p_M_Locator_ID, p_what); - // How much can we make overall - if (productQuantity.compareTo(quantity) < 0) - quantity = productQuantity; - } - } - rs.close(); - pstmt.close(); - - if (quantity.signum() > 0) - { - int StdPrecision = getUOMPrecision(p_M_Product_ID); - return quantity.setScale(StdPrecision, BigDecimal.ROUND_HALF_UP); - } - return Adempiere.ZERO; - } // bomQtyOnHand - - /** - * Get Storage Qty - * @param p_M_Product_ID product - * @param M_Warehouse_ID warehouse - * @param p_M_Locator_ID locator - * @param p_what variable name - * @return quantity or zero - * @throws SQLException - */ - static BigDecimal getStorageQtyASI (int p_M_Product_ID, int p_M_AttributeSetInstance_ID, - int M_Warehouse_ID, int p_M_Locator_ID, String p_what) - throws SQLException - { - BigDecimal quantity = null; - - String sql = "SELECT SUM(" + p_what + ") " - + "FROM M_Storage s " - + "WHERE M_Product_ID=?"; - if(p_M_AttributeSetInstance_ID != 0) { - sql +=" AND s.M_AttributeSetInstance_ID = ?"; - } - if (p_M_Locator_ID != 0) { - sql += " AND s.M_Locator_ID=?"; - } - else if(M_Warehouse_ID != 0) { - sql += " AND EXISTS (SELECT * FROM M_Locator l WHERE s.M_Locator_ID=l.M_Locator_ID" - + " AND l.M_Warehouse_ID=?)"; - } - - int index=1; - PreparedStatement pstmt = Adempiere.prepareStatement(sql); - pstmt.setInt(index++, p_M_Product_ID); - if(p_M_AttributeSetInstance_ID != 0) { - pstmt.setInt(index++, p_M_AttributeSetInstance_ID); - } - if (p_M_Locator_ID != 0) { - pstmt.setInt(index++, p_M_Locator_ID); - } - else if(M_Warehouse_ID != 0) { - pstmt.setInt(index++, M_Warehouse_ID); - } - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - quantity = rs.getBigDecimal(1); - rs.close(); - pstmt.close(); - // Not found - if (quantity == null) - return Adempiere.ZERO; - return quantity; - } // getStorageQty - -} // Product diff --git a/tools/.classpath b/tools/.classpath index e6d43632b6..cb59c8ff6c 100644 --- a/tools/.classpath +++ b/tools/.classpath @@ -1,6 +1,5 @@ - diff --git a/tools/.project b/tools/.project deleted file mode 100644 index abbcd00e45..0000000000 --- a/tools/.project +++ /dev/null @@ -1,36 +0,0 @@ - - - tools - Tools Project - - - - - org.eclipse.wst.common.project.facet.core.builder - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.jem.workbench.JavaEMFNature - org.eclipse.wst.common.modulecore.ModuleCoreNature - org.eclipse.jdt.core.javanature - org.eclipse.wst.common.project.facet.core.nature - org.eclipse.pde.PluginNature - - diff --git a/tools/.settings/com.genuitec.jboss.ide.eclipse.xdoclet.run.prefs b/tools/.settings/com.genuitec.jboss.ide.eclipse.xdoclet.run.prefs deleted file mode 100644 index 16fb6cde7a..0000000000 --- a/tools/.settings/com.genuitec.jboss.ide.eclipse.xdoclet.run.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#Thu Sep 29 20:01:11 PDT 2005 -eclipse.preferences.version=1 -xdoclet.build.policy=automatic diff --git a/tools/.settings/org.eclipse.jdt.core.prefs b/tools/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 9f251758c1..0000000000 --- a/tools/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,7 +0,0 @@ -#Wed Mar 24 23:42:26 CET 2010 -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 -org.eclipse.jdt.core.compiler.compliance=1.6 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.6 diff --git a/tools/.settings/org.eclipse.jdt.ui.prefs b/tools/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index b3edfe072b..0000000000 --- a/tools/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#Thu Sep 29 20:01:11 PDT 2005 -eclipse.preferences.version=1 -org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/tools/.settings/org.eclipse.wst.common.component b/tools/.settings/org.eclipse.wst.common.component deleted file mode 100644 index a71e9c1e6e..0000000000 --- a/tools/.settings/org.eclipse.wst.common.component +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/tools/.settings/org.eclipse.wst.common.project.facet.core.xml b/tools/.settings/org.eclipse.wst.common.project.facet.core.xml deleted file mode 100644 index d0e0b2d1bf..0000000000 --- a/tools/.settings/org.eclipse.wst.common.project.facet.core.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/tools/lib/ant4eclipse/macros/a4e-jdt-macros.xml b/tools/lib/ant4eclipse/macros/a4e-jdt-macros.xml deleted file mode 100644 index cf2fc68462..0000000000 --- a/tools/lib/ant4eclipse/macros/a4e-jdt-macros.xml +++ /dev/null @@ -1,195 +0,0 @@ - - - - - - - - - - - - - eclipse.preferences.version=1${line.separator} - org.eclipse.jdt.core.compiler.codegen.targetPlatform=@{targetlevel}${line.separator} - org.eclipse.jdt.core.compiler.compliance=@{targetlevel}${line.separator} - org.eclipse.jdt.core.compiler.source=@{sourcelevel}${line.separator} - - - - - - - - - - - - - - - - - - - - - - - - - - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * * * Building project @{projectName} - * * * in workspace @{workspaceDirectory} - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - - - - - - - - - - - - - - - - - - - - - - - - - * Cleaning output directory '${buildJdtProject.output.directory}' - - - - - - - - - - - Compiling jdt project '${buildJdtProject.project.name}' - - source directories -> ${buildJdtProject.source.directories} - - output directories -> ${buildJdtProject.default.output.directory} - - bootclasspath -> ${buildJdtProject.boot.classpath} - - classpath -> ${buildJdtProject.classpath.absolute.compiletime} - - - - - - - - - - - - - - - - - - - - - - - - - - - - Copying resources from directory '${buildJdtProject.source.directory}' to '${buildJdtProject.output.directory}' - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/tools/lib/ant4eclipse/macros/a4e-pde-macros.xml b/tools/lib/ant4eclipse/macros/a4e-pde-macros.xml deleted file mode 100644 index 14ce48fa6a..0000000000 --- a/tools/lib/ant4eclipse/macros/a4e-pde-macros.xml +++ /dev/null @@ -1,852 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Compiling pde project '${buildPlugin.project.name}' - - - - - - - - - - - - - - - - - - - - - - - - - - Copying resources from directory '${buildPlugin.source.directory}' to '${buildPlugin.output.directory}' - - - - - - - - - - - - - - - - - - Packing library '${buildPlugin.library.name}' - - - - - - - - - Copying resources from directory '${executePluginLibrary.output.directory}' to '@{destination}/${a4e.temp.directory}/${buildPlugin.library.name}' - - - - - - - Copying resources from directory '${executePluginLibrary.source.directory}' to '@{destination}/${a4e.temp.directory}/${buildPlugin.library.name}' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Packing library '.' - - - - - - - - - Copying resources from directory '${executePluginLibrary.output.directory}' to '${buildPlugin.project.directory}/${a4e.self.directory}' - - - - - - - Copying resources from directory '${executePluginLibrary.source.directory}' to '${buildPlugin.project.directory}/${a4e.self.directory}' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Scrubbing directory '@{dir}' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Building product ${executeProduct.product.name} version ${executeProduct.product.version} - - - - - - - - - Scrubbing directory '@{destination}' - - - - - - - - - - - - - - - - -> Building included feature '${executeProduct.feature.id}' - '${executeProduct.feature.version}' - - - - - - - - - - - -> Building included plugin '${executeProduct.plugin.id}' from project: ${executeProduct.plugin.projectName} - - - - - - - - - - - Copying bundle '${executeProduct.plugin.file} (${executeProduct.plugin.id})' - - - - - - - - - - - - version=1.0.0 - name=${executeProduct.product.name} - id=${executeProduct.product.id} - - - - - - - - - - - - -vmargs - - - @{vmarg} - - - - - - - - - - - - - - - - - - - # Product Runtime Configuration File - eclipse.application=${executeProduct.product.applicationid} - osgi.bundles.defaultStartLevel=4 - eclipse.product=${executeProduct.product.id} - osgi.splashPath=platform:/base/plugins/org.eclipse.platform - osgi.bundles=org.eclipse.core.runtime@start,org.eclipse.osgi@start,org.eclipse.equinox.common@2:start,org.eclipse.update.configurator@3:start - - - - - - - - - - - - - - - - - - - - - - - Building product ${executeProduct.product.name} successfully build. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Building feature '${executeFeature.feature.id}_${executeFeature.feature.version}' - - feature.isSource: '${executeFeature.feature.isSource}' - - - - - Scrubbing directory '@{destination}' - - - - - - - -> Building included feature '${executeFeature.feature.id}' - - - - - - - Building plug-in project '${executeFeature.plugin.filename} (${executeFeature.plugin.id}_${executeFeature.plugin.resolvedversion})' - - - - - - Copying bundle '${executeFeature.plugin.file} (${executeFeature.plugin.id}_${executeFeature.plugin.resolvedversion})' - - - - - - - - - Building feature project '${executeFeature.feature.file.name} (${executeFeature.feature.id}_${executeFeature.feature.resolved.version})' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Copying feature '${executeFeature.feature.file} (${executeFeature.feature.id}_${executeFeature.feature.resolved.version})' - - - - - - - - - Feature '${executeFeature.feature.id}_${executeFeature.feature.version}' successfully built. - - - - - - - - \ No newline at end of file diff --git a/tools/lib/ant4eclipse/macros/a4e-platform-macros.xml b/tools/lib/ant4eclipse/macros/a4e-platform-macros.xml deleted file mode 100644 index d661ac214e..0000000000 --- a/tools/lib/ant4eclipse/macros/a4e-platform-macros.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/webstart/.project b/webstart/.project deleted file mode 100644 index 761dc7d2e3..0000000000 --- a/webstart/.project +++ /dev/null @@ -1,17 +0,0 @@ - - - webstart - - - - - - org.eclipse.pde.FeatureBuilder - - - - - - org.eclipse.pde.FeatureNature - - diff --git a/webstart/build.properties b/webstart/build.properties deleted file mode 100644 index 64f93a9f0b..0000000000 --- a/webstart/build.properties +++ /dev/null @@ -1 +0,0 @@ -bin.includes = feature.xml diff --git a/webstart/compile.org.adempiere.webstart.xml b/webstart/compile.org.adempiere.webstart.xml deleted file mode 100644 index fe7b83ade1..0000000000 --- a/webstart/compile.org.adempiere.webstart.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/webstart/feature.xml b/webstart/feature.xml deleted file mode 100644 index 563022de61..0000000000 --- a/webstart/feature.xml +++ /dev/null @@ -1,202 +0,0 @@ - - - - - [Enter Feature Description here.] - - - - [Enter Copyright Description here.] - - - - [Enter License Description here.] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -