[
https://issues.apache.org/jira/browse/OFBIZ-11161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16915238#comment-16915238
]
Jacques Le Roux commented on OFBIZ-11161:
-----------------------------------------
Actually it did not see it because I used only {{gradlew --continuous}}. Just
after my comment I read [https://blog.gradle.org/introducing-continuous-build]
again and then I used \{{gradlew --continuous build}}. In the meantime I was
focused on INFRA-18926. That's why I missed.
{noformat}
modified: C:\projectsASF\ofbiz\applications\product\config\ProductUiLabels.xml
Change detected, executing build...
{noformat}
Then go to a nap, and as often, all went smoothly with Daniel fixing the demo
issue and your comment leading me to watch the console again, it worked as you
explained :) :
{noformat}
C:\projectsASF\ofbiz>gradlew --continuous
> Configure project :
You are using one or more deprecated Asciidoctor task or plugins. To help with
migration run with --warnings=all
> Task :compileJava UP-TO-DATE
> Task :compileGroovy UP-TO-DATE
> Task :processResources UP-TO-DATE
> Task :classes UP-TO-DATE
> Task :jar
> Task :compileTestJava
> Task :compileTestGroovy
> Task :processTestResources NO-SOURCE
> Task :testClasses
> Task :test
BUILD SUCCESSFUL in 20s
7 actionable tasks: 4 executed, 3 up-to-date
Waiting for changes to input files of tasks... (ctrl-d then enter to exit)
Terminer le programme de commandes (O/N) ? o
C:\projectsASF\ofbiz>gradlew --continuous build
> Configure project :
You are using one or more deprecated Asciidoctor task or plugins. To help with
migration run with --warnings=all
> Task :compileJava UP-TO-DATE
> Task :compileGroovy UP-TO-DATE
> Task :processResources UP-TO-DATE
> Task :classes UP-TO-DATE
> Task :jar UP-TO-DATE
> Task :startScripts
> Task :distTar
> Task :distZip
> Task :assemble
> Task :compileTestJava UP-TO-DATE
> Task :compileTestGroovy UP-TO-DATE
> Task :processTestResources NO-SOURCE
> Task :testClasses UP-TO-DATE
> Task :test UP-TO-DATE
> Task :check UP-TO-DATE
> Task :build
BUILD SUCCESSFUL in 53s
10 actionable tasks: 3 executed, 7 up-to-date
Waiting for changes to input files of tasks... (ctrl-d then enter to exit)
modified: C:\projectsASF\ofbiz\applications\product\config\ProductUiLabels.xml
Change detected, executing build...
> Configure project :
You are using one or more deprecated Asciidoctor task or plugins. To help with
migration run with --warnings=all
> Task :compileJava UP-TO-DATE
> Task :compileGroovy UP-TO-DATE
> Task :processResources UP-TO-DATE
> Task :classes UP-TO-DATE
> Task :jar UP-TO-DATE
> Task :startScripts UP-TO-DATE
> Task :distTar
> Task :distZip
> Task :assemble
> Task :compileTestJava UP-TO-DATE
> Task :compileTestGroovy UP-TO-DATE
> Task :processTestResources NO-SOURCE
> Task :testClasses UP-TO-DATE
> Task :test UP-TO-DATE
> Task :check UP-TO-DATE
> Task :build
BUILD SUCCESSFUL in 24s
10 actionable tasks: 2 executed, 8 up-to-date
Waiting for changes to input files of tasks... (ctrl-d then enter to exit)
{noformat}
It's mostly interesting to run Junit tests, right? The integration tests are
too long I guess. Could be interesting to run Spotbut or Sonar stuff also...
Are you using it for something else, or just automated rebuild, or?
> OFBiz distribution should not require including extra content
> -------------------------------------------------------------
>
> Key: OFBIZ-11161
> URL: https://issues.apache.org/jira/browse/OFBIZ-11161
> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Affects Versions: Trunk
> Reporter: Mathieu Lirzin
> Assignee: Mathieu Lirzin
> Priority: Major
> Attachments:
> OFBIZ-11161_0001-Separate-resources-from-Java-source-files.patch,
> OFBIZ-11161_0002-Don-t-exclude-properties-and-labels-file-fr.patch,
> OFBIZ-11161_0003-framework_Remove-redundant-dtd-directory-from-classpa.patch,
> OFBIZ-11161_0003-plugins_Remove-redundant-dtd-directory-from-classpa.patch
>
>
> Currently to deploy OFBiz it is necessary to include the source directories
> containing xml and groovy files in addition of {{ofbiz.jar}}, because loading
> of those files is not done using the standard [location independent resource
> mechanism|https://docs.oracle.com/javase/8/docs/technotes/guides/lang/resources.html]
> of Java.
> To facilitate the deployment on production servers, the following
> configuration is added in {{build.gradle}}
> {code:groovy}
> distributions.main.contents.from(rootDir) {
> include 'framework/**', 'applications/**', 'themes/**', 'plugins/**'
> }
> {code}
> However this doesn't solve the problem that OFBiz is not usable as a library
> downloaded from a Jar repository. The proper solution would be to remove any
> dependencies on OFBiz home directory and bundle every resource in
> {{ofbiz.jar}}
> This has been [discussed on Development mailing
> list|https://lists.apache.org/thread.html/c2612f1e296b6ea15872185871d3a9d83d6a4afc6d2a76f7a336a126@%3Cdev.ofbiz.apache.org%3E]
--
This message was sent by Atlassian Jira
(v8.3.2#803003)