Thanks to Jacques Le Roux for detecting the bug. The fix is extremely
simple with 4 characters, just add the .bat extension to the command
in the windows based version as shown in this commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753823 13f79535-47bb-0310-9956-ffa450edef68
The cleanAnt (previously cleanAntBuild) gradle task is designed to get
rid of old artifacts generated by the previous system (Apache Ant). This
commit applies changes and improvements as follows:
- Shorten the description of the task to make the output
nicer in ./gradlew tasks
- rename the task from cleanAntBuild to cleanAnt because this
task not only gets rid of old build directories but also ofbiz.jar
(or any artifacts generated by ant which might be added)
- Move the task location above the cleanAll task. The location of
declaration is important because it means that it will automatically
run whenever the task cleanAll executes (dependency matched by regex)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753820 13f79535-47bb-0310-9956-ffa450edef68
There are a few OFBiz images left behind in the image folder in the image component.
jleroux: This is certainly not a major issue but I see no reasons to keep these old unused images. I'll put a note in Attic.
While doing so I decided to remove opentravelsystem_logo.jpg and also to hide the bin folder (in OFBiz root) in Windows, it was confusing!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753774 13f79535-47bb-0310-9956-ffa450edef68
Completes r1753424 where I removed (almost) all svn:ignore for concerned components build dirs. Once again I missed to update my svn client (external to Eclipse where I made the change) so I missed the specialpurpose and tools dirs. changes added after
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753499 13f79535-47bb-0310-9956-ffa450edef68
Taher proposed off line a better writing for the cleanAntBuild task, using Groovy rather than copying from the old Ant task. He tested it, so here it is.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753382 13f79535-47bb-0310-9956-ffa450edef68
Fixes the cleanAntBuild target, Taher make me notice that I put 2 whitespaces after /. I then realised that I used build.xml instead of build in the paths. This works (tested, I was abused in my 1st test only looking for "dir /s *ofbiz*.jar" (Windows)
Anyway I'll soon replace it by a proposition from Taher
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753381 13f79535-47bb-0310-9956-ffa450edef68
This adapts the "old" Ant "clean*" targets in order to allow to remove old build dirs. It's not a problem if you have done an Ant clean just before removing Ant whith a "svn up" but I guess most of us did not.
I will then also remove the related svn:ignore (build dirs)... WIP...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753360 13f79535-47bb-0310-9956-ffa450edef68
The two tests were lumped together and if one throws an exception the other
will never throw it. So test coverage was not done properly. This commit
fixes this issue by separating the calls into two different tests.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753348 13f79535-47bb-0310-9956-ffa450edef68
This is the first batch of unit tests for the Start component
which introduces 8 unit tests for parsing the start commands
and also some tests for the AdminClient.
At some point if the tests become numerous we might need to
break it down into multiple files. The tests are implemented
with standard JUnit tests. A minor correction was done to the
StartupCommandUtil class by converting the List of startup
commands to a Set to remove duplicates. This was discovered
thank to the unit tests being introduced.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753274 13f79535-47bb-0310-9956-ffa450edef68
Not sure I'll really use the GUI so this is temporary while testing and will maybe stay, other Windows users could benefit from it
Afterthought: it seems only French Windows users could benefit from it :D (raccourci is French for shortcut and automatically generated by Windows) anyway...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753170 13f79535-47bb-0310-9956-ffa450edef68
With this small commit, OFBiz is now ready for unit tests in the framework.
To create new tests simply create the java classes for testing in each component
inside /src/test/java. For example /src/test/java/org/apache/ofbiz/foo/bar/MyTests.java
This work is based on the discussion we had in the below thread.
http://ofbiz.markmail.org/message/3cebkshhgyzds4e5
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753143 13f79535-47bb-0310-9956-ffa450edef68
It seems someone committed these two files with Windows encoding which might
be a reason why the tests fail on buildbot. Hopefully this will fix the issue
OFBIZ-7534
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753063 13f79535-47bb-0310-9956-ffa450edef68
Upon changing the artifacts in OFBIZ-6274 from org.ofbiz to org.apache.ofbiz
the running class is changed from org.ofbiz.base.start.Start to
org.apache.ofbiz.base.start.Start hence fixing it accordingly in the task
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753051 13f79535-47bb-0310-9956-ffa450edef68
We had already the org.apache logger. IIRW, it's because we use Apache libs (eg Tomcat) and we want to be warned when issues appear at this level.
By adding the org.apache.ofbiz info logger we should keep warnings a the org.apache level and get info at the org.apache.ofbiz level
I'm though unsure why we needed
<logger name="org.apache.ofbiz.base.converter.Converters" level="warn"/>
which seems contradictory. I Googled for an explanation but I'm still short of it. I'll check with http://logging.apache.org/log4j/2.x/manual/configuration.html.
For now it works, so I apply the patch because it's already a relief and will help to resolve the harder problem of instable tests results.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753029 13f79535-47bb-0310-9956-ffa450edef68
jleroux: I updated the patch. I fixed things by hand: tabs in the groovy files, removed the ftl file because of a tree conflicts due to the recent ftl files move and updated org.ofbiz to org.apache.ofbiz in CertKeystore.groovy
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753024 13f79535-47bb-0310-9956-ffa450edef68