Commit Graph
45 Commits
Author SHA1 Message Date
Jacques Le Roux 05376298b4 Implements https://issues.apache.org/jira/browse/OFBIZ-5819 "Improve the build-dev ant target"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632421 13f79535-47bb-0310-9956-ffa450edef68
2014-10-16 19:35:32 +00:00
Adam Heath ccb36f2238 Fix cobertura-report when source has been generated(aka, when javacc or
jjtree has been used).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605838 13f79535-47bb-0310-9956-ffa450edef68
2014-06-26 16:15:15 +00:00
Adrian Crum 714050ef33 Updated build files to use/require Java 7.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605524 13f79535-47bb-0310-9956-ffa450edef68
2014-06-25 17:59:46 +00:00
Adam Heath 6690816b01 Fix detection of cobertura, for compilation of the hook used by the
runtime container; also fixes the classpath used to define the ant
task.  Now, command-line api tests run underneath cobertura work.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605216 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 23:07:39 +00:00
Adam Heath 7f2163054f Update the log4j version reference in the tests-cobertura task.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605120 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 16:01:23 +00:00
Jacques Le Roux a0c05d0df9 Adds new ant targets to handled patching in projects which use different staging areas.
In create-component ant target at r1150560+1571994+r1571996 I added staging, qa and production sub-folders under patches folder.

The reason is to allow to put there patches for different staging areas where URLs and other parameters vary.
Then I did not add related ant targets to allow patching the corresponding OFBiz instances in the different staging areas servers.
Also I wrongly named the "test" area "staging".

Let me explain quickly how it supposed to work. You have:
1) A "dev" environment/area (most of the time on developers own machines) where the development is done, maybe using Derby DB for instance. Anyway an area where all production constraints are not yet taken into account.
2) A "test" area, something like the "dev" area but with a different environment (clustered, not the same DB, etc.) something not yet similar to production but near. Because most of the time you don't have yet a production area ready when you begin to test. This area remains in the hand of developpers. Load tests for instance can be done there.
3) A "QA" area, this comes later and is a duplicate of the production area where all tests are finally done. It's in the hand of QA engineers who qualify/guarantee the development to be production ready.
4) A "production" area, this is the latest stage available when the development is production ready (though it might appears before QA sometimes when the shareholders are in a hurry...). It's in the hand of sysops (or devops if you prefer).

So this patch adds the "build-test", "build-qa" and "build-production" targets in the main build.xml file. For the purpose of adapting the areas when building they calls the main build targets, but the build target does not depend on them, so can still be used w/o them. They complete the "create|apply|reapply|revert-ofbiz-patches" targets which target only the "dev" area or can be used in an early stage of the development, notably on dev machines.

Those targets depends on the "prepare-to-build-dev", "prepare-to-build-test", "prepare-to-build-qa" and "prepare-to-build-production" targets in common.xml. Themselves relying on the macro "apply-patches". 

The "prepare-to-build-qa|production" have something specific. When you maintain URLs and misc. parameters variation inside properties files, it's often easier to directly maintain those files and copy them over in those areas than maintaining/updating patches for them which can be a repetitive and tedious task...

Moreover, sometimes you don't even create any hot-deploy components (eg. some projects might use OFBiz as a web services API). Then currently you don't have an easy way to keep your OFBiz working copy free from modifications (which could else been put in one of your hot-deploy components patches directory, which is anyway not very logical). So I created another ant target "build-dev", it's purposely independent of any other target but relies on the content of a new runtime/patches folder where "core" patches (those which change OFBiz as it's OOTB)are supposed to be.

These changes add new possibilities but don't change the way things were done so far. So you can use them or not depending on your needs. The idea for the new "build-dev" ant target is to keep patches with features separated (ie grouping different files changed in a patch), but you can, or may have to, do it on a file level, notably when 2 or more features impact the same file...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1578621 13f79535-47bb-0310-9956-ffa450edef68
2014-03-17 21:56:45 +00:00
Adam Heath 111655eaa0 FIX: Cobertura's version was changed in 1230444, but it wasn't changed
in common.xml; this fixes it, so that you can now sorta-run
'tests-cobertura' in framework/base.  However, that requires the asm
library, which was recently removed, so it still doesn't completely
function.

This is part of the fix for OFBIZ-4783.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1341021 13f79535-47bb-0310-9956-ffa450edef68
2012-05-21 13:43:39 +00:00
Jacques Le Roux 5b43cd8035 Updates log4j from log4j-1.2.15.jar to log4j-1.2.16.jar.
BTW this remind me Jacopo's question (on user ML) about Selenium in OFBiz usage...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1293808 13f79535-47bb-0310-9956-ffa450edef68
2012-02-26 11:23:13 +00:00
Marco Risaliti 2b548457e0 Made working correctly ant build target docs and docs-all for javadoc documentation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1128049 13f79535-47bb-0310-9956-ffa450edef68
2011-05-26 19:18:36 +00:00
Jacques Le Roux 90842ddfb9 In r1100795 I missed some old <if> OOTB use cases.
Replaces old <if> syntax by ant-contrib's

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1100903 13f79535-47bb-0310-9956-ffa450edef68
2011-05-09 07:19:32 +00:00
Adam Heath 7834f98099 Use a script instead of a class for <if>; no longer have to compile anything.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@997425 13f79535-47bb-0310-9956-ffa450edef68
2010-09-15 17:57:06 +00:00
Adam Heath f6154d65f5 <if> no longer accepts conditions directly; instead, all conditions have to be placed underneath a <condition> element.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@997423 13f79535-47bb-0310-9956-ffa450edef68
2010-09-15 17:56:57 +00:00
Adam Heath 4d87231961 BUG FIX: Fix coverage on $foo-test.jar.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@954957 13f79535-47bb-0310-9956-ffa450edef68
2010-06-15 16:40:18 +00:00
Adam Heath 7ebc344daf Fix stand-alone tests target, broken when separated -test.jar logic was
added.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948327 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 05:52:03 +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 8724fdcba5 Don't define a fileset; instead separately define the extra source
selector, and the dir to scan.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935379 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:30 +00:00
Adam Heath 6e22a55e8b s/_src-extra-set/src-extra-files/
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935378 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:25 +00:00
Adam Heath 8c3916223c In _src-extra-set, convert the implicit patternset list to a nested <or>
selector.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935377 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:21 +00:00
Adam Heath 0cea5e14c1 With <if> always available, _src-extra-set can be defined at the
top-level, without having to wait until some target is run.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935376 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:16 +00:00
Adam Heath e4e3b3a92d Always define the <if> task, not just after init has been called.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935375 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:12 +00:00
Adam Heath 6c27274238 Add sourcepathref to javadoc call.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@918720 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 22:08:42 +00:00
Adam Heath 61a9b4881e It's been a rough ride, little ant and junit, but I'm glad you finally
decided to get along.

Here are the issues that I have discovered with junit forkmode=once.  If
you set showoutput=on, then you get the stdout/stderr from each test, as
it happens.  However, you don't get it nicely delineated.  Only a nested
<formatter> does that.  However, in forkonce mode, <formatter> will only
capture the stdout/stderr of the *first* test that happens to print
something to those streams; subsequent tests have the output stream
closed.  Setting printsummary="on" or "withOutAndErr" never shows test
case failures, so that option is right out.

So, the compromise, is to set showoutput="on", which shows stdout/stderr
output as it happens, then use a <formatter> to get test case result
data, including failures.  This means that the stdout/stderr will get
double printed, but only once.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@915388 13f79535-47bb-0310-9956-ffa450edef68
2010-02-23 15:41:11 +00:00
Adam Heath f4d23fbaca Make tests and tests-cobertura use a macro for junit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912614 13f79535-47bb-0310-9956-ffa450edef68
2010-02-22 15:35:37 +00:00
Adam Heath e4fc814943 Fix both junits to actually always display output for all tests.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912613 13f79535-47bb-0310-9956-ffa450edef68
2010-02-22 15:35:13 +00:00
Adam Heath 09a343c38f Fix handling of stderr/stdout when running multiple tests when
forkmode=once.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912256 13f79535-47bb-0310-9956-ffa450edef68
2010-02-20 23:41:41 +00:00
Adam Heath 9ef56b79aa Delete cobertura.dat for each run, so that different runs don't overlap
each others line numbers.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904985 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 06:26:57 +00:00
Adam Heath 1537d8c471 Fix running of junit on standalone tests, when multiple tests are being
run.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904984 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 06:26:22 +00:00
Adam Heath 276cc7b501 Add a default-javadoc presetdef.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894038 13f79535-47bb-0310-9956-ffa450edef68
2009-12-27 01:01:39 +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 1b580b6746 Add a shared init target, used by prepare anad prepare-docs.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894027 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:19:47 +00:00
Adam Heath 56dac0bf9e Add a classes target to common.xml, and switch most build.xml to use it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894024 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:16:56 +00:00
Adam Heath 312d4bd8d7 Junit errors in the cobertura target now fail the run.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892695 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 05:41:13 +00:00
Adam Heath 170bd71b65 Add support for generated java files to the coverage report.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892172 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 08:04:33 +00:00
Adam Heath c748cad763 Add target for running the short tests underneath cobertura, and then
generating the coverage report.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892170 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 08:03:25 +00:00
Adam Heath 62ed2a3ac1 Use the built jar instead of the classes dir, so that any resources
added to the jar are available for the tests.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892167 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 08:01:03 +00:00
Adam Heath 48a7d8470e Add a target for per-component quick testing. Can only deal with tests
that can run standalone.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@888851 13f79535-47bb-0310-9956-ffa450edef68
2009-12-09 16:05:33 +00:00
Adam Heath 5121722dd0 Add <if> support in build.xml.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835630 13f79535-47bb-0310-9956-ffa450edef68
2009-11-12 23:12:07 +00:00
Andrew Zeneski 86764c01cd now including .groovy files in src set
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770073 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 05:30:16 +00:00
Adam Heath 403bf55548 prepare no longer removes build/lib.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@711774 13f79535-47bb-0310-9956-ffa450edef68
2008-11-06 06:23:14 +00:00
Adam Heath 8389de37ee Handle the case if the src dir doesn't exist.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@711141 13f79535-47bb-0310-9956-ffa450edef68
2008-11-04 00:16:04 +00:00
Adam Heath 830700d737 Remove extra space on jar target tag.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@709449 13f79535-47bb-0310-9956-ffa450edef68
2008-10-31 15:56:13 +00:00
Adam Heath 32601006b7 Fixed the same as 686027.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686034 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 20:48:42 +00:00
Adam Heath 36b0cdafa2 Bah, forgot to save this before checking in.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685935 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 15:10:34 +00:00
Adam Heath 7e3c93862c Slight tweak, so that ofbiz.home.dir is defined by macros.xml, so it
is available in more places.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@681933 13f79535-47bb-0310-9956-ffa450edef68
2008-08-02 03:27:49 +00:00
Adam Heath 18391f98a9 The build.xml files are now much smaller and simpler; they reuse a
few global definitions.  1585 lines removed.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@672657 13f79535-47bb-0310-9956-ffa450edef68
2008-06-29 18:39:36 +00:00