Login  Register

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

Posted by David E. Jones on Jun 29, 2006; 4:37pm
URL: http://ofbiz.116.s1.nabble.com/Just-To-Make-Your-Life-Easier-aka-More-Separation-of-the-Framework-from-Applications-tp169085p169088.html


I'm not seeing it... what needs to be adjusted there?

-David


Daniel Kunkel wrote:

> Hi
>
> I think I found a small problem with the build.xml file in framework...
>
> The ant clean-data and ant clean-logs needs to be adjusted for the
> change near line 84.
>
> Thanks
>
> Daniel
>
> On Wed, 2006-06-28 at 23:20 -0600, David E. Jones 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
>>
>> plain text document attachment (crmsfa_build.patch)
>> 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"/>
>> plain text document attachment (financials_build.patch)
>> 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"/>