Adam Heath
b24617935b
FEATURE: Start supporting commons-daemon explicitly.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327257 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 19:58:09 +00:00
Adam Heath
ba177f3aca
OPTIMIZE: Add a new FAIL Control, and move the processing into a method on the
...
enum.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327256 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 19:58:03 +00:00
Adam Heath
ecefbd3452
OPTIMIZE: Don't use static Strings to hold the commands sent over the
...
socket; instead, use an enum.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327255 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 19:57:57 +00:00
Adam Heath
fffea48b81
FIX: Fix race condition in startup code; it's possible for all loaders to be
...
started, a shutdown command get's issued, stopping is occurring, but
then the server state ends up being set to RUNNING.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327254 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 19:57:50 +00:00
Adam Heath
39db7dfc5a
OPTIMIZE: Remove the 2 boolean variables that encoded the startup/shutdown state,
...
and instead use a single reference, and an enum.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327253 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 19:57:44 +00:00
Adam Heath
940ee4480b
OPTIMIZE: If the specified instrumentation class is not found, don't
...
bother printing the thrown exception; this is a standard situation,
where the required jar may not have been downloaded, and the
instrumenter not compiled.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327252 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 19:57:38 +00:00
Adam Heath
f319440097
OPTIMIZE: Remove some debug prints from Start.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327251 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 19:57:28 +00:00
Jacques Le Roux
1689c99809
Finally revert to previous values, in order to avoid possible confusion with values in properties file
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1325369 13f79535-47bb-0310-9956-ffa450edef68
2012-04-12 16:40:40 +00:00
Jacques Le Roux
c4c9542348
Oops, missed this file in r1324989
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1324990 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 20:35:52 +00:00
Jacques Le Roux
c79283dbfc
A patch from Francis ANDRE "unify admin port and key setting: single point of definition in start.properties" https://issues.apache.org/jira/browse/OFBIZ-4793
...
If someone wants to change the admin password or port, he would have to change currently many files (-- build.xml, various .bat and .sh --). In order to avoid this error-prone pratice, I suggest to centralize the definition of the admin kay and port at 2 single points: the framework/start/src/org/ofbiz/base/start/start.properties and the
framework/start/src/org/ofbiz/base/start/jetty.properties
jleroux: in config.java I also changed
String adminPortStr = getProp(props, "ofbiz.admin.port", "0");
adminKey = getProp(props, "ofbiz.admin.key", "NA");
to
String adminPortStr = getProp(props, "ofbiz.admin.port", "10523");
adminKey = getProp(props, "ofbiz.admin.key", "so3du5kasd5dn");
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1324989 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 20:32:35 +00:00
Jacques Le Roux
6f6f4d8ec9
Reverts r1308078 http://svn.apache.org/viewvc?view=revision&revision=1308078 due to some pressure on this commit http://markmail.org/message/zqguh6ttd2a5jqcb
...
And even if I'm quite sure it's not harmful, I don't see either a great need for it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308792 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 09:48:28 +00:00
Jacques Le Roux
afde12093c
A patch from Francis ANDRE "Avoid exiting ofbiz when running in debug mode,i.e with -DDEBUG=true set on theJVM arguments" https://issues.apache.org/jira/browse/OFBIZ-4776
...
This is a patch for allowing to run OFBiz in debug mode,i.e with -DDEBUG=true on the JVM arguments, and avoid to exit from the process when a Error or a StartupException occurs.
jleroux: replaced tabs by 4 spaces
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308078 13f79535-47bb-0310-9956-ffa450edef68
2012-04-01 11:27:45 +00:00
Erwan de Ferrieres
31a9eaaaa7
tabs to spaces, no functional changes
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1230445 13f79535-47bb-0310-9956-ffa450edef68
2012-01-12 09:09:24 +00:00
Erwan de Ferrieres
337aa79464
OFBIZ-3651 - Minor tweaks to the Cobertura integration - A patch from Bob Morley. I've also changed the cobertura version from 1.9.3 to 1.9.4.1 (latest) as your modifications are allowing it
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1230444 13f79535-47bb-0310-9956-ffa450edef68
2012-01-12 09:01:06 +00:00
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