Commit Graph
186 Commits
Author SHA1 Message Date
Jacques Le Roux cbe4b59e90 No functional changes
Adds a word about ant-tests: sometimes you need to clear your data before running 'load-demo'
Removes trailing blanks

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1542261 13f79535-47bb-0310-9956-ffa450edef68
2013-11-15 13:27:16 +00:00
Jacques Le Roux c386f6ab30 Set different ports for testing in a CI environment (e.g. Jenkins) https://issues.apache.org/jira/browse/OFBIZ-4794
*What's for?*
Finally, OOTB the port offset is interesting in 2 cases:
# To eventually run Sonar on OFBiz sources https://issues.apache.org/jira/browse/INFRA-3590
# To simultaneously run the demos without having to change much things, just one parameter (this will need to have the same commited in R13.07... to be discussed...)

Of course, It can be used for other purposes outside of the ASF context...

*How it's done?*
Basically, I just added a portoffset integer parameter to 3 ant targets (of course this JVM param can also be used in a Java call from command line): start, start-pos, start-both,

The portoffset parameter is set to zero by default in ClassLoaderContainer.java. 
If a value is passed, it's then grabed by Config.java and passed to ClassLoaderContainer.java, where it's set to this value.

 The portoffset is then used to change in one shoot all the default ports values defined (in config or hardcoded), and the admin port value
This is done in following classes:
CatalinaContainer
NamingServiceContainer
ServiceEngine through ServiceLocation
RmiServiceContainer
XMLRPCClientEngine
XmlRpcTests

To avoid hardcoding locations in services definitions, I also created 2 service-locations: main-http and main-soap

*To summarize:* these changes will be used to run "ant start" with a portoffset value which will take care of all ports values, including admin port. For running R12.04 demo as stable we will still need to create a patch for the last time. R13.07 could have a similar patch applied since it's not yet released...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1533839 13f79535-47bb-0310-9956-ffa450edef68
2013-10-19 22:07:35 +00:00
Jacques Le Roux 0ef1ff543e Reverts revisions: 1525909 + 1526533 + 1526560, OFBIZ-4794 is not yet ready
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1526583 13f79535-47bb-0310-9956-ffa450edef68
2013-09-26 15:44:40 +00:00
Jacques Le Roux 221ba4c06e Fixes <<Error to run "ant start-debug" >> https://issues.apache.org/jira/browse/OFBIZ-5329
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1526560 13f79535-47bb-0310-9956-ffa450edef68
2013-09-26 15:16:57 +00:00
Jacques Le Roux c86a579cf8 Set different ports for testing in a CI environment (e.g. Jenkins) https://issues.apache.org/jira/browse/OFBIZ-4794
*What's for?*
OOTB the port offset is interesting in at least 3 cases:
# To simultaneously run tests on the same Buildbot machine. This is related to http://mail-archives.apache.org/mod_mbox/www-builds/201209.mbox/%3C002101cd991b$0a16de50$1e449af0$@16degrees.com.au%3E
# To simultaneously run the demos without having to change much things, just one parameter
# To eventually run Sonar on OFBiz sources https://issues.apache.org/jira/browse/INFRA-3590

*How it's done?*
Basically, I just added a portoffset integer parameter to some ant targets (of course this JVM param can also be used in a Java call from command line):
* in trunk and R13.07: start, start-batch, start-debug, start-pos, start-both, run-tests and run-test
* in R12.04 and R11.04: run-tests, run-test. I did not set start targets because anyway it would miss the admin port offset, withouh much changes. So can't be used to demonstrate. We will continue to use the current paches for those.

The portoffset parameter is set to zero by default in ClassLoaderContainer.java. 
If a value is passed, it's then grabed by Config.java and passed to ClassLoaderContainer.java, where it's set to this value.

 The portoffset is then used to change in one shoot all the default ports values defined (in config or hardcoded), and the admin port value in R13.07 and trunk.
This is done in following classes:
CatalinaContainer
NamingServiceContainer
ServiceEngine through ServiceLocation
RmiServiceContainer
XMLRPCClientEngine
XmlRpcTests

To avoid hardcoding locations in services definitions, I also had to create some service-locations: main-local-soap and main-remote-soap 

*What are the constraints?*
* For demos: the offset should not be applied to trunk because <service-location name="main-remote-soap" location="http://demo-trunk.ofbiz.apache.org:8080/webtools/control/SOAPService"/> is used for tests by trunk *and all releases*. It's useless to apply to trunk anyway,  offsetting port in releases is enough.
* I did not take into account the Ideal payment harcoded port values in IdealPaymentServiceTest.java. Weirdly I did not cross error during tests, though it seems there are tests using an harcoded port in url.

*What is the status?*
Locally (on Win XP)  I ran many tests combinations with <<ant load-demo run-tests>>.  
Applying the portoffset on a sole running test instance has no effects. I have still some fails (no errors) but those are not related to my changes, they appear also without.
But when I run a combination of any releases/trunk but with R11.04, I get a time out error with testSOAPSimpleService, that I can't explain so far. 
If I run the trunk alone with the portoffset no errors occur. Same if I run a release with portoffset and only testSOAPSimpleService in trunk (w/ or w/o portoffset)

*To summarize:* these changes will be used to run Buildot tests instances simultaneously . And, for coming releases, to run demos without having to create patches. Simply running ant start with a portoffset value which will take care of all ports values, including admin port. For running R12.04 demo as stable we will still need to create a patch for the last time.

*What I will to do for now:* commit the patches and test if I cross the same issue on Buildbot. If it's the same (99% chances it will) I will revert and will continue to locally try to find the reason . I believe this issue is unrelated to the changes I implemened.  And it's just because it's now possible to simultaneously run tests that it appears. 

BTW I just noticed that when you run R11.04 with R12.04, R12.04 takes almost all the CPU (XP is not very, while when running any combinations w/o R11.04 the CPU load is shared. 
Also there are far less tests in R11.04, which coul be the reason when I run it with another test run instance there are no issues.  Because R11.04 tests finish before the other instance gets to run testSOAPSimpleService.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1525909 13f79535-47bb-0310-9956-ffa450edef68
2013-09-24 14:47:30 +00:00
Christian Geisert 07728e0c67 target 'clean-search-indexes' should not fail when 'runtime/indexes' directory is missing
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1521754 13f79535-47bb-0310-9956-ffa450edef68
2013-09-11 08:03:28 +00:00
Jacopo Cappellato 07934c65d3 Simplified the layout of the main/framework/applications/specialpurpose build files; now the files:
framework/build.xml
applications/build.xml
specialpurpose/build.xml

are only used to define the filelist properties (as before) with the list of components to be built.
The main build file simply refers to these lists to build/doc/clean OFBiz; as before, if applications' or specialpurpose's build.xml files are absent, the folders are ignored.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1520744 13f79535-47bb-0310-9956-ffa450edef68
2013-09-07 09:27:59 +00:00
Jacopo Cappellato 60fdfcbfa8 First pass of the cleanup of Ant's targets defined in main build file and in build files for framework/applications/specialpurpose folders:
* removed redundant targets (e.g. clean-xtras)
* removed unused targets and settings
* moved runtime related targets from framework to main build file
* moved the search index runtime folder from runtime/data/indexes to runtime/indexes to prevent the removal of indexes when clean-data is executed



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1520510 13f79535-47bb-0310-9956-ffa450edef68
2013-09-06 08:32:47 +00:00
Jacopo Cappellato 233645aa89 Moved and renamed (from clean-lucene-index to clean-search-indexes) the ant target to clean runtime data for search indexes from the content build.xml to the main build.xml file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1520326 13f79535-47bb-0310-9956-ffa450edef68
2013-09-05 14:29:34 +00:00
Jacques Le Roux 193b0db281 This pos.memory.max.param property is now useless (I used it long ago and it made some confusion it seems)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1512890 13f79535-47bb-0310-9956-ffa450edef68
2013-08-11 07:31:47 +00:00
Ashish Vijaywargiya 964f58f95e Fixed typo(databaset -> database).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1508794 13f79535-47bb-0310-9956-ffa450edef68
2013-07-31 09:59:52 +00:00
Jacques Le Roux f10c13e5ff Adds a start-both and target to run OFBiz in both Web and POS modes at the same time
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1500403 13f79535-47bb-0310-9956-ffa450edef68
2013-07-07 10:37:14 +00:00
Adam Heath dd6ba6d70b FIX: Oops, hot-deploy/docs building was broken, because I missed 2 lines
when I up-copied the externalsubant/hotdeployant feature tree.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1497897 13f79535-47bb-0310-9956-ffa450edef68
2013-06-28 19:30:09 +00:00
Adam Heath 870f6d8ae7 OPTIMIZE: For all <subant> calls that need to deal with possible
extension compnonents, switch them over to a macro, <externalsubant>.
The reason for this will soon become apparent.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1497887 13f79535-47bb-0310-9956-ffa450edef68
2013-06-28 19:07:57 +00:00
Adam Heath 909b82f487 OPTIMIZE: Make the targets clean and build use a common macro, so that
they both handle the case of hot-deploy/build.xml in the same way.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1497886 13f79535-47bb-0310-9956-ffa450edef68
2013-06-28 19:07:52 +00:00
Jacopo Cappellato 17626eff28 Modified cobertura ant tasks to reuse jars already available in OFBiz rather than downloading them again.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1465582 13f79535-47bb-0310-9956-ffa450edef68
2013-04-08 09:42:26 +00:00
Jacopo Cappellato 906507848a updated cobertura-report task with path to the new jar for log4j
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1465578 13f79535-47bb-0310-9956-ffa450edef68
2013-04-08 09:26:49 +00:00
Jacques Le Roux d2ed43282b This was preventing the build to complete.
I wonder about jetty.properties. Should we move it to specialpurpose also?

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1465362 13f79535-47bb-0310-9956-ffa450edef68
2013-04-07 11:13:21 +00:00
Jacopo Cappellato 27c1c384a4 Moved the appserver component from framework to specialpurpose.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1465276 13f79535-47bb-0310-9956-ffa450edef68
2013-04-06 17:25:01 +00:00
Jacopo Cappellato c91958a09d Fix for typo in comment.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1434656 13f79535-47bb-0310-9956-ffa450edef68
2013-01-17 13:05:20 +00:00
Jacques Le Roux e6ede1ca2e Reverts r1310983 (related to https://issues.apache.org/jira/browse/OFBIZ-4792 )for 2 reasons:
* I missed to put in LICENSE and NOTICE
* It's an issue for Birt, see OFBIZ-5070


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1416358 13f79535-47bb-0310-9956-ffa450edef68
2012-12-03 07:02:38 +00:00
Adrian Crum c50c86f405 Added capability to include visual themes in the build.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1407349 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 03:58:16 +00:00
Hans Bakker 655c38dd6e adapt ant create component target for new security organization
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374160 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 06:45:07 +00:00
Hans Bakker 5734e5c151 memory allocation misspellings
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1361167 13f79535-47bb-0310-9956-ffa450edef68
2012-07-13 11:33:57 +00:00
Jacopo Cappellato 3aa85842f2 Moved the "birt" component out of framework to specialpurpose; moved all the birt reports from the applications to the birt component itself, where the application webapps are overriden to inject the reports; the end result is the same but since all these birt reports are simply a proof of concepts that cannot be used in production (for example they use hardcoded userlogin for authentication) the birt component should be probably disabled by default (but this will be discussed in the dev list).
Now it will be very easy to extract the birt component (for OFBiz Extras) or to disable it when deploying to production or when interested in sparing some hardware resources. I did some cursory tests but since the work has been challenging and rather complex I would appreciate testing help and also reviews to finds chunks of code that I could have missed and that could be moved out as well.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1361130 13f79535-47bb-0310-9956-ffa450edef68
2012-07-13 09:48:32 +00:00
Jacques Le Roux c10088f694 I'm used to use r for release, I put it here also
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1358847 13f79535-47bb-0310-9956-ffa450edef68
2012-07-08 21:55:06 +00:00
Jacques Le Roux 390a8024b0 Removes the s I added in previous commit to be consistent with most other descriptions which uses the imperative.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355901 13f79535-47bb-0310-9956-ffa450edef68
2012-07-01 13:45:09 +00:00
Jacques Le Roux c4ec183406 No functionall changes, just some targets comments improvements
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355863 13f79535-47bb-0310-9956-ffa450edef68
2012-07-01 08:46:59 +00:00
Jacopo Cappellato 6ba24ed4bc As discussed in the dev list a few months ago, this commits removes Seleniumxml from the trunk.
Seleniumxml was a subcomponent of the framework/testtools intended to facilitate the usage of Selenium tests in OFBiz.
However it was never upgraded to the new version of Selenium and it has not been widely adopted by the community; the OFBiz community agreed to remove components/tools like this from the core distribution if they are optional/very specific or not well maintained or if there is (as in the case of Selenium) a valid external alternative to perform the same actions.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1354380 13f79535-47bb-0310-9956-ffa450edef68
2012-06-27 09:19:20 +00:00
Hans Bakker 14f4e5a292 reverted recent security file changes revisions: 1350847,1350843,1350840,1348534,1347908,1347213,1346264, need more investigation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1351206 13f79535-47bb-0310-9956-ffa450edef68
2012-06-18 04:36:20 +00:00
Hans Bakker 3bc59dc7ae corrected misplaced ant echo messages
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1350847 13f79535-47bb-0310-9956-ffa450edef68
2012-06-16 03:02:57 +00:00
Hans Bakker a64d64b80a Some security data is really seed data, added informational messages to indicate security data is not loaded when selected seed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1350840 13f79535-47bb-0310-9956-ffa450edef68
2012-06-16 02:32:04 +00:00
Jacopo Cappellato a610e70049 As discussed in the dev list, removed the experimental jcr component; its development will continue in the proper branch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1347478 13f79535-47bb-0310-9956-ffa450edef68
2012-06-07 08:14:28 +00:00
Hans Bakker 020dd28a4f improved 'load-tenant-data-readers' explanantion and removed confirmation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343458 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 03:11:01 +00:00
Jacques Le Roux 88fb917e8f Adds the default port number in start-debug target description
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343010 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 07:38:28 +00:00
Adam Heath 4af4438cbc FIX: cobertura is now actually usable again, at least with api-tests.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1341086 13f79535-47bb-0310-9956-ffa450edef68
2012-05-21 16:03:28 +00:00
Jacques Le Roux e05dc542da Small formatting for previous commit (r1340398)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340399 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 10:03:28 +00:00
Jacques Le Roux 12d091748c A patch from Markus M. May "ew ant target run-test-debug" https://issues.apache.org/jira/browse/OFBIZ-4887
A new target run-test-debug in the build.xml provides debug functionality for specific tests.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340398 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 10:01:03 +00:00
Jacopo Cappellato 1f12dec9be Removed the dependency on "build" from all the "run-test*" ant targets: In order to run most of the tests successfully you need to run load-data that already depends on "build; however you can still of course use the command: ant build run-tests if you want to build and test with one command.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337484 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 08:58:31 +00:00
Adam Heath 01b4a0370c FEATURE: Add gen-kek ant target.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1336420 13f79535-47bb-0310-9956-ffa450edef68
2012-05-09 21:57:31 +00:00
Jacques Le Roux 661c42a9c2 Revert r1331995. We need rather to pass parameters through ant start* targets : http://ant.apache.org/manual/Tasks/property.html
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1332097 13f79535-47bb-0310-9956-ffa450edef68
2012-04-30 08:17:18 +00:00
Jacques Le Roux 4a37f97b14 -XX:+HeapDumpOnOutOfMemoryError may turn useful sometimes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1331995 13f79535-47bb-0310-9956-ffa450edef68
2012-04-29 20:56:17 +00:00
Jacques Le Roux 24c36ab9a1 Moves guiapp component inside POS component
Closes https://issues.apache.org/jira/browse/OFBIZ-4807



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1328727 13f79535-47bb-0310-9956-ffa450edef68
2012-04-21 19:19:09 +00:00
Jacopo Cappellato 807948f2ea Now start-debug doesn't depend on build to make it consistent with the other start* targets.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1326936 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 05:43:39 +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
Jacopo Cappellato 4e7840006d Fixed wrong variable name rom my last commit; thanks to Pierre Smits for the report.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1324687 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 10:32:28 +00:00
Jacopo Cappellato ddf12c136a Added checks for required input arguments for run-test and run-test-suite targets
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1324630 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 08:32:10 +00:00
Erwan de Ferrieres f43fedbaee Using a parameter for property sonar.jdbc.url
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1311947 13f79535-47bb-0310-9956-ffa450edef68
2012-04-10 19:29:43 +00:00
Jacques Le Roux b29af991ba A patch from Pierre Smits "Including an ant target and ivy solution for downloading the mysql driver" https://issues.apache.org/jira/browse/OFBIZ-4800
Enhancing the OFBiz build solution by including a mechanism to download and install a mySQL driver for users who have (or want to use) that db platform.

jleroux: worked for mysql-connector-java-5.1.6.jar

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1311877 13f79535-47bb-0310-9956-ffa450edef68
2012-04-10 17:32:05 +00:00
Jacques Le Roux bf5a242cf0 Creates an ant task which uses YUICompressor (yuicompressor-2.4.6.jar) to dynamically minify our own (or custom for users) js and css files (most of the biggest external ones are already compressed)
More work is needed, this is just the the minimum with an example.

Related to https://issues.apache.org/jira/browse/OFBIZ-4792


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1310983 13f79535-47bb-0310-9956-ffa450edef68
2012-04-08 12:12:07 +00:00