Taher A. Alkhateeb
ca819dda9d
Remove cobertura and sonar completely. Ref OFBIZ-6783
...
After getting consensus from the community in the email thread below
we agreed to remove these two items because they make the startup
logic more complex and also because many things are broken and
unmaintained for years.
It is a good idea to reintroduce cobertura in the future on a cleaner
implementation, hopefully completely away from the start component and
perhaps as a container implementation.
The email thread:
http://ofbiz.markmail.org/message/b4jovfhurczunbam?q=remove+cobertura
The related JIRA:
https://issues.apache.org/jira/browse/OFBIZ-6783
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1746236 13f79535-47bb-0310-9956-ffa450edef68
2016-05-31 06:43:11 +00:00
Adrian Crum
cd4f6cdbb3
Fixed a bug in UtilMisc.java where the List returned by the availableLocales() method included an empty Locale - causing errors in FreeMarker templates.
...
https://issues.apache.org/jira/browse/OFBIZ-6309
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676674 13f79535-47bb-0310-9956-ffa450edef68
2015-04-29 06:10:01 +00:00
Adam Heath
2dd530a51e
Remove uesless exclusion of ofbiz crypto class compilation.
...
This was based on the availabily of javax.crypto.Cipher, which became
standard in java 1.4. We require 1.7. This is very old.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676154 13f79535-47bb-0310-9956-ffa450edef68
2015-04-26 23:30:20 +00:00
Jacopo Cappellato
3552f65800
Merged json-integration-refactoring into trunk:
...
* moved the json-lib jar (json-lib-2.2.3-jdk15.jar) from the framework/webapp to the framework/base component
* removed the SQL select Parser.jj (parser definition) and its unit tests: it was not used (and never used) by any OFBiz code
* removed the JSON.jj (parser definition) and its unit tests: it was not used (and never used) by any OFBiz code apart from the JSON Converters (now migrated to json-lib, see next items in this list) some utility methods in UtilIO.java (that have been removed too because they have never been used in OFBiz)
* removed the JavaCC jar and related ant scripts because no more needed after the removal of Parser.jj and JSON.jj
* converted the JSONConverter code that was based on JSON.jj to Jackson
* added a new class org.ofbiz.base.lang.JSON that have been contributed by Adrian Crum that is a facade for simplifying the client code and for hiding the specific JSON library being used
* removed an unused method: ImageManagementServices.toJsonObject(...)
* added TestBooleanConverters to the list of tests
* new unit tests for the new JSON converters
* refactored Ajax code in applications to use the common request json response rather than a custom method
* OFBIZ-5790 Implemented ability to call a service event by passing its input parameters in the request body as JSON data. These classes provide a simple mechanism, based on the request's content type, that can be extended to support other formats (e.g. XML).
This commit resolves OFBIZ-4572, OFBIZ-3365, OFBIZ-5751, OFBIZ-5790
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635901 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 09:06:42 +00:00
Jacopo Cappellato
f14003d799
Removed a bunch of never used classes from the base/concurrent package.
...
Provided better settings for the thread pools to avoid to keep alive threads that are only needed at startup.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626977 13f79535-47bb-0310-9956-ffa450edef68
2014-09-23 10:52:29 +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
455edd3727
Remove sourcepathref from default-javac; in build.xml that did *not*
...
create a src-dir patternset, the default *empty* src-dir pattern set was
used. Then, when javac would compile src/**/*.jar, it would *also*
compile any *other* java files it happened to find in the folder.
In other words, if there was an unpacked tree, let's say named 'p', and
there was a set of folders in there that eventually had java files, they
would all get compiled.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605223 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 23:21:05 +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
Jacques Le Roux
398aeffd7f
Oops my bad, I forgot that I had downloaded the cobertura-1.9.4.1.jar locally so I had no issues after an ant clean but Buildbot had
...
So finally removes last change in framework/base/build.xml related to Cobertura
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1554018 13f79535-47bb-0310-9956-ffa450edef68
2013-12-29 12:15:47 +00:00
Jacques Le Roux
5b7572d537
Finally commits change in framework/base/build.xml, the Buildbot error was not related to this change (did not make sense, as long this target is not used at least)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1554016 13f79535-47bb-0310-9956-ffa450edef68
2013-12-29 11:52:15 +00:00
Jacques Le Roux
92525ea290
I was too fast with the Cobertura changes in previous commit, I forgotI did not test those yet.
...
So I revert them for now, they are not needed yet for the INFRA-3590 progresses anyway, only the portoffset parameter is needed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1553975 13f79535-47bb-0310-9956-ffa450edef68
2013-12-28 23:43:53 +00:00
Jacques Le Roux
4c0b42b9d2
This completes "set different ports for testing in a CI environment (e.g. Jenkins)" https://issues.apache.org/jira/browse/OFBIZ-4794
...
This was waiting for a moment in my working copy after I found that there was an issue with testSOAPSimpleService when portoffset was used with run-tests target.
I have still no resolved this issue, but since I got a better way to run simultaneous Buildbot instances this is no longer an issue for run-tests target.
So I commit these small pending changes in order to allow to run Sonar on OFBiz https://issues.apache.org/jira/browse/INFRA-3590 .
The cobertura target does not work yet but what's committed here is needed anyway to progress with INFRA-3590.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1553962 13f79535-47bb-0310-9956-ffa450edef68
2013-12-28 23:09:01 +00:00
Erwan de Ferrieres
e42a5f1c85
Reverting 1308301 as the commit could seems as a hack: ./ant can't find the class issue created for this: OFBIZ-4783
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309337 13f79535-47bb-0310-9956-ffa450edef68
2012-04-04 11:38:40 +00:00
Erwan de Ferrieres
c5c75df222
Seems using ./ant for running install and tests is not detecting the class for cobertura. Testing if the jar is present is making it right. Resolves OFBIZ-4757
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308301 13f79535-47bb-0310-9956-ffa450edef68
2012-04-02 11:16:10 +00:00
Adam Heath
ce409cd671
Start adding StringUtil tests.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981530 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 14:46:02 +00:00
Adrian Crum
9c11c2c261
Added Boolean converter tests - copied from Apache Commons Convert.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965843 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 13:39:05 +00:00
Adam Heath
67912df510
Revert wrongly committed 950259
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950276 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 22:00:05 +00:00
Adam Heath
e29d564abb
Only test UtilCache.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950259 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:46:49 +00:00
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