Commit Graph
63 Commits
Author SHA1 Message Date
Jacopo Cappellato 1c1421887a Added missing property needed to successfully run test cases in platforms with locales different from en.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1215142 13f79535-47bb-0310-9956-ffa450edef68
2011-12-16 14:22:01 +00:00
Jacques Le Roux c8c8c21521 Makes the response to ./stopofbiz.sh a bit more clear
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1203511 13f79535-47bb-0310-9956-ffa450edef68
2011-11-18 07:08:32 +00:00
Hans Bakker d2617ff344 make the response to ./stopofbiz.sh more userfriendly
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1173944 13f79535-47bb-0310-9956-ffa450edef68
2011-09-22 03:15:21 +00:00
Sascha Rodekamp 2dd668708f FIX: IO stream objects are not closed (https://issues.apache.org/jira/browse/OFBIZ-4420) A patch from Dimitri Unruh: Some methods are creating an IO stream object without closing it, so it could result on a descriptor leak.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1171393 13f79535-47bb-0310-9956-ffa450edef68
2011-09-16 06:04:21 +00:00
Hans Bakker 59219ca106 correction on commit 1139866 which caused demo data also loaded when only ./ant run-install-seed was requested
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1142967 13f79535-47bb-0310-9956-ffa450edef68
2011-07-05 10:21:57 +00:00
Adam Heath 829da95986 FEATURE: Refactored to support -help/-? anywhere; also, cmdline parse errors now
send help to System.err, like a normal unix program.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139866 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:08:37 +00:00
Adam Heath a92bcce610 OPTIMIZE: The internal loaderArgs variable is now a list instead of a String
array.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139864 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:08:32 +00:00
Adam Heath 83bdc59a57 OPTIMIZE: All the fullinit code is no longer inside an if; instead, if fullinit is
not wanted, do an early return.  This causes the code to remove one
indent level.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139863 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:08:26 +00:00
Adam Heath 92bf6d030d OPTIMIZE: The help method now takes a PrintStream parameter, to which the help is
sent.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139862 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:08:20 +00:00
Adam Heath 2e30fc08d2 OPTIMIZE: Move help printing to separate method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139861 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:08:15 +00:00
Adam Heath afd1a0a945 FIX: Print an error message when a path component that is added doesn't
actually exist.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139694 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 02:50:11 +00:00
Adam Heath 97ec62675c FIX: Filter out hidden library files(and prevent recursing into hidden
folders).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139692 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 02:49:57 +00:00
Adrian Crum 5cb181e8fa Start.java bug fix: Exception is thrown if a string is entered that doesn't contain a ':'. Patch contributed by Chris Snow - https://issues.apache.org/jira/browse/OFBIZ-4237.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1086701 13f79535-47bb-0310-9956-ffa450edef68
2011-03-29 19:49:26 +00:00
Adrian Crum d04a5d75b0 Final Start class code cleanup - moved remaining Config-specific code to the Config class, simplified some code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1085806 13f79535-47bb-0310-9956-ffa450edef68
2011-03-26 21:37:00 +00:00
Adrian Crum 11578a9872 Misc Start.java code cleanups: eliminated unnecessary methods, renamed some methods, and fixed another potential thread deadlock issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1085802 13f79535-47bb-0310-9956-ffa450edef68
2011-03-26 21:04:34 +00:00
Adrian Crum 38fb5bae80 Moved Config-specific code from Start class to Config class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1085794 13f79535-47bb-0310-9956-ffa450edef68
2011-03-26 19:52:44 +00:00
Adrian Crum df91c022e2 Unraveling Start.java spaghetti code: Moved "admin port" code to a separate class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1085781 13f79535-47bb-0310-9956-ffa450edef68
2011-03-26 18:44:04 +00:00
Adrian Crum 3855697825 Moved nested class in Start.java to its own file - no functional change. This commit changes the StartupLoader API.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1085757 13f79535-47bb-0310-9956-ffa450edef68
2011-03-26 16:29:15 +00:00
Adrian Crum 58a6b3bdeb Reordered methods and fields in Start.java - no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1085745 13f79535-47bb-0310-9956-ffa450edef68
2011-03-26 15:56:19 +00:00
Adrian Crum 50abae04f4 Fixed a bug from one of my previous commits: In Start.java there could be a thread deadlock if one of the loaders failed to load.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1085733 13f79535-47bb-0310-9956-ffa450edef68
2011-03-26 15:08:41 +00:00
Adrian Crum 824a2186db Some work on Start.java - Try to have better control over loading/starting/unloading loaders. The shutdown hook is set before the loaders are loaded, so they can be unloaded if the OFBiz process terminates during loading. Also, thread synchronization was added so that loaders can't be loaded and unloaded simultaneously.
This commit might cause some loaders to throw exceptions during premature shutdown - that's because some loaders are not designed to be unloaded asynchronously.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1084219 13f79535-47bb-0310-9956-ffa450edef68
2011-03-22 15:29:37 +00:00
Adrian Crum 1700cd1371 StartupLoader.java JavaDocs - no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1084211 13f79535-47bb-0310-9956-ffa450edef68
2011-03-22 15:20:23 +00:00
Adrian Crum 1d3c353252 Some bug fixes and improvements to ComponentContainer.java and Classpath.java:
1. <classpath type="dir" .../> did not add jar files to the classpath. That has been fixed.
2. <classpath type="dir" .../> that contained an invalid path was added to the classpath anyway. That has been fixed.
3. Added ability to load native libraries (*.dll, *.so).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1083554 13f79535-47bb-0310-9956-ffa450edef68
2011-03-20 20:02:48 +00:00
Adrian Crum fc0290e297 Fixed a bug in Start.java where the command line arguments were not passed to the loaders if there was only one argument.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1083110 13f79535-47bb-0310-9956-ffa450edef68
2011-03-19 00:12:23 +00:00
Jacques Le Roux 1d9b768b5a Add -Xlint:-path to javac16 target
Closes "Add <compilerarg value="-Xlint"/> to all build targets" (https://issues.apache.org/jira/browse/OFBIZ-4213) - OFBIZ-4213
+ slight formatting in start build

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1081138 13f79535-47bb-0310-9956-ffa450edef68
2011-03-13 15:25:37 +00:00
Marco Risaliti 2ce589d6dd Add a @SuppressWarning("serial") in StartupException (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1069113 13f79535-47bb-0310-9956-ffa450edef68
2011-02-09 21:17:33 +00:00
Marco Risaliti 52345a05f7 Remove an unused variable in Classpath (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1069112 13f79535-47bb-0310-9956-ffa450edef68
2011-02-09 21:17:00 +00:00
Adam Heath 695cc497f2 Fix coverage reports; the coverage for base was reporting 100%, which is
not correct.  With real numbers on base, it shows a lot of missing
lines.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965914 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 17:14:06 +00:00
Adam Heath 7ebbcfc4f1 Parallel execution of instrumentation, segmented by file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958277 13f79535-47bb-0310-9956-ffa450edef68
2010-06-26 19:41:02 +00:00
Adam Heath 7f37d0523a The static helper class now implements Callable<File>.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958276 13f79535-47bb-0310-9956-ffa450edef68
2010-06-26 19:40:57 +00:00
Adam Heath b8b1bd7aba Refactored instrument() so that the main body of work is done by a
static helper class.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958275 13f79535-47bb-0310-9956-ffa450edef68
2010-06-26 19:40:51 +00:00
Adam Heath f2bfef6274 Create a main-jar macro.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935380 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:37 +00:00
Adam Heath f4d16eb03c Fix name property.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935374 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:07 +00:00
Jacopo Cappellato 75a3c9f270 Added a bunch of missing license headers; we'll have to pay more attention on this in the future.
Still some work needs to be done in order to have the codebase inline with the ASF policies as it used to be.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@907413 13f79535-47bb-0310-9956-ffa450edef68
2010-02-07 11:24:45 +00:00
Adam Heath 18d0ceeaf9 Remove most docs targets, they are all the same anyways.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894031 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:28:48 +00:00
Adam Heath 1c269fc012 Convert all javadoc calls to use fileset instead of sourcepath; this
allows excludes to be processed correctly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894030 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:24:20 +00:00
Adam Heath a412eb1898 Normalize javadoc windowtitle.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894026 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:19:10 +00:00
Adam Heath 47b0a876ed Switch all javac15 to javac16.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894022 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:12:04 +00:00
Adam Heath 7286ff8d28 Instrumentation with cobertura. It won't actually do anything, tho,
until cobertura-1.9.3.jar is placed into framework/base/lib.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889839 13f79535-47bb-0310-9956-ffa450edef68
2009-12-11 22:27:18 +00:00
Adam Heath 68e0788392 Generic instrumentation framework. Nothing is configured to use it yet.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889838 13f79535-47bb-0310-9956-ffa450edef68
2009-12-11 22:26:24 +00:00
Jacques Le Roux c10003199d A patch from Harmeet Bedi "update required JDK constant to reflect JDK 1.6 requirement." (https://issues.apache.org/jira/browse/OFBIZ-3323) - OFBIZ-3323
Update gives a nice message instead of ugly stack trace when anyone attempts to run with JDK 1.5


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889124 13f79535-47bb-0310-9956-ffa450edef68
2009-12-10 07:34:03 +00:00
Jacques Le Roux f620e32bf9 A patch from Marc Morin "Resolve java warnings exposed in Eclipse : framework - start" (https://issues.apache.org/jira/browse/OFBIZ-3118) - OFBIZ-3118
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@831807 13f79535-47bb-0310-9956-ffa450edef68
2009-11-02 07:01:41 +00:00
Jacques Le Roux 33ad7b2cc0 A bit of internal documentation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@828804 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 18:10:35 +00:00
Jacques Le Roux e779dea4a9 Oops, forgot this unversioned files in previous commit (about -pos and -both)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@828798 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 17:49:39 +00:00
Scott Gray dec24b29f2 Sorry for the big commit, got a bit carried away.
Added override and deprecated annotations wherever they were missing
Removed the use of any deprecated classes/methods (except OutputFormat in UtilXml)
A few other random generics and misc. cleanups

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@791212 13f79535-47bb-0310-9956-ffa450edef68
2009-07-05 10:01:19 +00:00
David E. Jones 70f8da92bb Moved logo and icon images back to images component and removed from everywhere else; all references to these should be to there only now; fixes issue with logo in ecommerce and other little things
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766426 13f79535-47bb-0310-9956-ffa450edef68
2009-04-19 06:12:55 +00:00
Adam Heath 72802d2011 Move ofbiz.system.props handling from main() to init(); the former
calls the latter, but when this class is run underneath jsvc, main is
never called, only init().  So, the system properties were never
loaded.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766207 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 03:20:32 +00:00
Adam Heath d4e0796ef5 Add a feature for setting any system property by reading from a file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766193 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 01:07:54 +00:00
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
Adam Heath 4310a59989 Fix lines that *only* have whitespace.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@759241 13f79535-47bb-0310-9956-ffa450edef68
2009-03-27 16:58:22 +00:00