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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

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

David E. Jones

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"/>
Reply | Threaded
Open this post in threaded view
|

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

BJ Freeman
thanks for heads up. checking out a new folder so don't mess up last update.

Also appreciate no changes except refactoring.


David E. Jones sent the following on 6/28/2006 10:20 PM:

>
> 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
>
Reply | Threaded
Open this post in threaded view
|

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

Daniel Kunkel
In reply to this post by David E. Jones
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"/>
--
Daniel

*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-
Have a GREAT Day!

Daniel Kunkel           [hidden email]
BioWaves, LLC           http://www.BioWaves.com
14150 NE 20th St. Suite F1
Bellevue, WA 98007
800-734-3588    425-895-0050
http://www.Apartment-Pets.com  http://www.SatelliteRadioZone.com
http://www.Cards-Visa.com       http://www.ColorGlasses.com
*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-

Reply | Threaded
Open this post in threaded view
|

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

David E. Jones

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"/>
Reply | Threaded
Open this post in threaded view
|

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

Daniel Kunkel
Sorry I wasn't more clear.

When I went to do an ant clean-data  (and probably ant clean-logs) the
directories (data and log) aren't appropriate from within the framework
directory. They had worked fine from the root ofbiz directory.

Thanks

On Thu, 2006-06-29 at 09:37 -0600, David E. Jones wrote:

> 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"/>

Reply | Threaded
Open this post in threaded view
|

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

BJ Freeman
Daniel
Same mistake I made.
The Data and Logs are created when a Build is done.
since you have done a build before they were in the root.

so maybe it is the process steps that need to be considered.


Daniel Kunkel sent the following on 6/29/2006 11:04 AM:

> Sorry I wasn't more clear.
>
> When I went to do an ant clean-data  (and probably ant clean-logs) the
> directories (data and log) aren't appropriate from within the framework
> directory. They had worked fine from the root ofbiz directory.
>
> Thanks
>
> On Thu, 2006-06-29 at 09:37 -0600, David E. Jones wrote:
>> 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"/>
>
>
Reply | Threaded
Open this post in threaded view
|

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

Daniel Kunkel
Hi

I think I see your point, but it doesn't make sense to me to put the
data or logs file into the framework.

Even if you are not using the OFBiz application, you'll most probably
have another application, etc, and stuffing data and logs into the
framework seems confusing.

Daniel


On Thu, 2006-06-29 at 11:12 -0700, BJ Freeman wrote:

> Daniel
> Same mistake I made.
> The Data and Logs are created when a Build is done.
> since you have done a build before they were in the root.
>
> so maybe it is the process steps that need to be considered.
>
>
> Daniel Kunkel sent the following on 6/29/2006 11:04 AM:
> > Sorry I wasn't more clear.
> >
> > When I went to do an ant clean-data  (and probably ant clean-logs) the
> > directories (data and log) aren't appropriate from within the framework
> > directory. They had worked fine from the root ofbiz directory.
> >
> > Thanks
> >
> > On Thu, 2006-06-29 at 09:37 -0600, David E. Jones wrote:
> >> 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"/>
> >
> >
--
Daniel

*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-
Have a GREAT Day!

Daniel Kunkel           [hidden email]
BioWaves, LLC           http://www.BioWaves.com
14150 NE 20th St. Suite F1
Bellevue, WA 98007
800-734-3588    425-895-0050
http://www.Apartment-Pets.com  http://www.SatelliteRadioZone.com
http://www.Cards-Visa.com       http://www.ColorGlasses.com
*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-

Reply | Threaded
Open this post in threaded view
|

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

cjhowe
In reply to this post by David E. Jones
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"/>
>