Login  Register

Re: Just To Make Your Life Easier (aka More Separation of the Framework from Applications)

Posted by cjhowe on Jun 30, 2006; 3:35am
URL: http://ofbiz.116.s1.nabble.com/Just-To-Make-Your-Life-Easier-aka-More-Separation-of-the-Framework-from-Applications-tp169085p169086.html

in the specialized folder community's, jxtests's, and
minerva's build.xml files still need to be updated

--- "David E. Jones" <[hidden email]> wrote:

>
> In SVN rev 7900 I made a few changes to move things
> into the framework directory.
>
> The main change that any custom code and such will
> need is to change references to the "ofbiz/base"
> directory to its new location at
> "ofbiz/framework/base".
>
> This would include changes to build.xml files of
> custom components, properties/XML/etc files and
> anything else that is relative to the ofbiz.home
> directory.
>
> Attached are some patches for the build files of the
> crmsfa and financials components from
> OpenSourceStrategies.
>
> The commit includes fairly comprehensive updates and
> I've done a few tests for building, data loading,
> running, and so on. Still, if you run into anything
> that is broken throw a message to this list!
>
> This change did not involve any package change or
> reorganization, so no java code or bsh scripts or
> whatever should need changes.
>
> It is still necessary to run from the ofbiz
> directory, but hopefully we'll get stuff in place to
> only require the framework directory at some point
> in the future. In other words, you could check out
> just the framework directory from SVN and be able to
> build and run.
>
> -David
>
> > Index: build.xml
>
===================================================================

> --- build.xml (revision 170)
> +++ build.xml (working copy)
> @@ -66,10 +66,10 @@
>  
>      <target name="classpath">
>          <path id="local.class.path">
> -            <fileset dir="${ofbiz.dir}/base/lib"
> includes="*.jar"/>
> -            <fileset
> dir="${ofbiz.dir}/base/lib/commons"
> includes="*.jar"/>
> -            <fileset
> dir="${ofbiz.dir}/base/lib/j2eespecs"
> includes="*.jar"/>
> -            <fileset
> dir="${ofbiz.dir}/base/build/lib" includes="*.jar"/>
> +            <fileset
> dir="${ofbiz.dir}/framework/base/lib"
> includes="*.jar"/>
> +            <fileset
> dir="${ofbiz.dir}/framework/base/lib/commons"
> includes="*.jar"/>
> +            <fileset
> dir="${ofbiz.dir}/framework/base/lib/j2eespecs"
> includes="*.jar"/>
> +            <fileset
> dir="${ofbiz.dir}/framework/base/build/lib"
> includes="*.jar"/>
>              <fileset
> dir="${ofbiz.dir}/framework/entity/lib"
> includes="*.jar"/>
>              <fileset
> dir="${ofbiz.dir}/framework/entity/build/lib"
> includes="*.jar"/>
>              <fileset
> dir="${ofbiz.dir}/framework/datafile/build/lib"
> includes="*.jar"/>
> > Index: build.xml
>
===================================================================

> --- build.xml (revision 198)
> +++ build.xml (working copy)
> @@ -35,14 +35,14 @@
>           The default setting would work if you have
> checked out the financials module into your
> ofbiz/hot-deploy/ directory.
>           It would NOT work if you checked it out
> somewhere else and symlinked to it in your
> hot-deploy/ directory.
>           If you experience build problems, put the
> full path here -->
> -         <property name="ofbiz.dir"
> value="../ofbiz"/>
> +         <property name="ofbiz.dir" value="../.."/>
>
>      </target>
>      
>      <target name="classpath">        
>          <path id="local.class.path">
> -            <fileset dir="${ofbiz.dir}/base/lib"
> includes="*.jar"/>
> -            <fileset
> dir="${ofbiz.dir}/base/lib/commons"
> includes="*.jar"/>
> -            <fileset
> dir="${ofbiz.dir}/base/build/lib" includes="*.jar"/>
> +            <fileset
> dir="${ofbiz.dir}/framework/base/lib"
> includes="*.jar"/>
> +            <fileset
> dir="${ofbiz.dir}/framework/base/lib/commons"
> includes="*.jar"/>
> +            <fileset
> dir="${ofbiz.dir}/framework/base/build/lib"
> includes="*.jar"/>
>              <fileset
> dir="${ofbiz.dir}/framework/entity/lib"
> includes="*.jar"/>
>              <fileset
> dir="${ofbiz.dir}/framework/entity/build/lib"
> includes="*.jar"/>
>              <fileset
> dir="${ofbiz.dir}/framework/security/build/lib"
> includes="*.jar"/>
>