Adam Heath
95949ff2b7
Add <test-jar> macro.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935381 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:47 +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
Adrian Crum
896222b7fe
Revert unintentional file change.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934211 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 21:54:29 +00:00
Adrian Crum
fa825dd956
Reverting my last commits. I just found out Apache Commons Validate does the same thing.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934179 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 20:22:26 +00:00
Adrian Crum
a05a3dfcab
Added an Assert class. It should make argument checking easier.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934166 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 20:03:46 +00:00
Adam Heath
160e608257
Thread-pool baesd dependency resolution framework. This implementation
...
is also non-blocking.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930739 13f79535-47bb-0310-9956-ffa450edef68
2010-04-04 19:14:04 +00:00
Adam Heath
8f74e23e50
Start UtilCache tests.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929392 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 06:05:05 +00:00
Adam Heath
4577e3afa4
Helper wrapper to protect against objects that have some kind of timestamp
...
checking.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922758 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 03:57:12 +00:00
Adam Heath
b289b45142
Move the test case for ComparableRange to the correct package.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@918724 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 22:10:52 +00:00
Adam Heath
6b9b1156c3
Set src-dirs correctly.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@918721 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 22:09:08 +00:00
Adam Heath
a4b4761af9
ObjectType tests.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@917362 13f79535-47bb-0310-9956-ffa450edef68
2010-03-01 03:11:37 +00:00
Adam Heath
a6cf22123c
Move ComparableRange tests to a separate class.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@915682 13f79535-47bb-0310-9956-ffa450edef68
2010-02-24 05:41:49 +00:00
Adam Heath
052c48555f
Move FMA tests to a separate file.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@915390 13f79535-47bb-0310-9956-ffa450edef68
2010-02-23 15:42:17 +00:00
Adam Heath
f7ec7cb185
Move FlexibleStringExpander tests to a separate file.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912272 13f79535-47bb-0310-9956-ffa450edef68
2010-02-21 01:27:32 +00:00
Adam Heath
e0eb9976f6
Some tests for UtilObject; not full coverage, but very close.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@911092 13f79535-47bb-0310-9956-ffa450edef68
2010-02-17 17:25:09 +00:00
Adam Heath
2feee8bec9
Add TimeDurationTests; full line coverage, almost full branch coverage.
...
There are some bugs not fixed by this commit, those will come shortly.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910827 13f79535-47bb-0310-9956-ffa450edef68
2010-02-17 05:15:59 +00:00
Adam Heath
3e476eedcd
Move DateTime conversion tests to separate class.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910354 13f79535-47bb-0310-9956-ffa450edef68
2010-02-15 22:23:55 +00:00
Adam Heath
852ceb0866
JSON reading/writing. May seem like it is uneeded, but a later commit
...
will add support for this becoming more extensible.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908712 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 22:47:30 +00:00
Adam Heath
d946201a4b
A writer that allows calling code to add non-important spaces, tabs, and
...
new lines, then this extra formatting can easily be turned off.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908711 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 22:46:29 +00:00
Adam Heath
93f5a082d7
UtilIO.readString enhancements.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908702 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 22:42:51 +00:00
Adam Heath
f10280139d
Correct pass thru conversion, to return the correct source/target types.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908691 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 22:32:51 +00:00
Adam Heath
f98ed2d050
Remove embedded tabs added by Adrian.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908673 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 22:09:34 +00:00
Adrian Crum
934712e75f
Revert my change to base component build.xml file.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@905129 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 21:51:38 +00:00
Adrian Crum
c2ec08d31b
Added a unit test for StringUtil.java. I commented out the new webslinger tests which seem to fail every time.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@905114 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 20:25:46 +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
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
05b3ea3230
Make use of the init target, to set excludes based on available
...
libraries, so that the common classes target can be used. This also
sets src.exc.set correctly.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894028 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:20:32 +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
de36a4dfb8
Add the beginnings of a tester for GenericMap. Doesn't really verify
...
anything yet, and is rather stupid, in that it only does printlns. Not
adding this to the existing test infrastructure, until it is ready.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889763 13f79535-47bb-0310-9956-ffa450edef68
2009-12-11 18:45:32 +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
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
Jacques Le Roux
572b7683e0
All tabs to 4 spaces in *.groovy, *.java, *.xml : less problems in future with that aspect...
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@737003 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 11:08:47 +00:00
Adam Heath
23fd64c410
Remove the prepare targets, they are already defined in common.xml.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@711773 13f79535-47bb-0310-9956-ffa450edef68
2008-11-06 06:17:36 +00:00
Adam Heath
e410552cc9
No longer *copy* the extra support files into the classes dir;
...
instead, just add them straight to the final jar.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685934 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 15:08:14 +00:00
Adam Heath
8328cfc565
Don't make base/start subdirs in build/classes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685783 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 06:16:19 +00:00
Adam Heath
90426d4b6d
Split framework/base into framework/start; now all components have
...
exactly the same type of layout.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684377 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 23:38:36 +00:00
Adam Heath
b6a1ae5e5e
Another minor optimization; no longer need to specify classpathref in
...
all the build.xml files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@681935 13f79535-47bb-0310-9956-ffa450edef68
2008-08-02 03:41:46 +00:00
Adam Heath
9852126ed8
Based on what David discovered, made a correct fix; If srcdir and
...
<src> are both specified for <javac>, then they are added together,
instead of the latter overridding the former. So, to override the
global src attribute in the javac macros, either set it explicitly
when called, or set it to empty, then use the nested <src> elements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@672699 13f79535-47bb-0310-9956-ffa450edef68
2008-06-30 04:27:54 +00:00
Adam Heath
124f1ed72d
Revert previous change to just this file; some issue with the version
...
of log4j being compiled against.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@672686 13f79535-47bb-0310-9956-ffa450edef68
2008-06-30 00:52:30 +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
Adam Heath
d73602df56
Add -Xlint:unchecked to several javac calls; they are all clean, so
...
no warnings are produced.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585858 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 04:19:48 +00:00
Adam Heath
201dca4f1e
Update ofbiz.jar at the top-level whenever framework/base is built.
...
Also, clean said file at the same time. Based on patch from
https://issues.apache.org/jira/browse/OFBIZ-1283 .
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585267 13f79535-47bb-0310-9956-ffa450edef68
2007-10-16 21:31:21 +00:00
Andrew Zeneski
5cd5d63cb9
applied patch from Ashish Vijaywargiya making generic use of pulling data from request, session, etc into a combined map; refactored to remain backwards compatible JIRA issue OFBIZ-967
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@536030 13f79535-47bb-0310-9956-ffa450edef68
2007-05-08 00:25:01 +00:00
Jacques Le Roux
dad67935f7
A (large) patch from Scott Gray "Update ASL header" ( https://issues.apache.org/jira/browse/OFBIZ-637 ).
...
I put also some svn:ignore for shark build and lib diretories and assetmaint/build
I did some by hand lately, too much to remember. They were files with old header but without copyright. A 1st attempt I suppose, will have to check this after this commit.
I add some problems to commit this patch in one piece because it's so huge (specially with Eclipse I had to turn to Tortoise) !
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499486 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 17:15:54 +00:00
David E. Jones
fc96cf5ab7
Changed all build files to add NOTICE and LICENSE files to the META-INF directory in each jar file that is created in OFBiz
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@472422 13f79535-47bb-0310-9956-ffa450edef68
2006-11-08 08:23:23 +00:00
Jacopo Cappellato
674ac0aaae
Conversion from MIT to ASL2.0 for the files of the base component.
...
Many thanks to Scott Gray for the patch (Apache OFBIZ-87).
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@422417 13f79535-47bb-0310-9956-ffa450edef68
2006-07-16 09:30:14 +00:00
David E. Jones
94fe6d1cda
Initial OFBiz import from revision 7923 of the old svn.ofbiz.org SVN repository.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@418498 13f79535-47bb-0310-9956-ffa450edef68
2006-07-01 19:05:20 +00:00