You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Brendan Vogt <br...@gmail.com> on 2007/10/23 19:45:55 UTC

SVN Update

Hi,

 

I ran the build.xml and it went fine.  After this build, can I still do an
SVN update through Tortoise SVN??  I'm just scared that some files are over
written from what was built with the build.xml

 

Brendan

 


Re: SVN Update

Posted by BJ Freeman <bj...@free-man.net>.
if you read the build you will see first it build he jars
then it starts ofbiz for the install portion.
the building and rebuilding of tables is determined by the setting for
the Database in entityengine.xml

Brendan Vogt sent the following on 10/23/2007 11:20 AM:
> Do you mean ant run-install??  If I run ant run-install then what will
> happen to the tables, will it be skipped or will it try to rebuild the
> tables?
> 
> 
> -----Original Message-----
> From: BJ Freeman [mailto:bjfree@free-man.net] 
> Sent: Tuesday, October 23, 2007 8:14 PM
> To: user@ofbiz.apache.org
> Subject: Re: SVN Update
> 
> if you use the 4.0 branch is is less prone to changes since it is
> getting ready for a release.
> it you use the trunk you are most likely to have changes all the time.
> best you rebuild after each svn update
> 
> 
> Brendan Vogt sent the following on 10/23/2007 10:45 AM:
>> Hi,
>>
>>  
>>
>> I ran the build.xml and it went fine.  After this build, can I still do an
>> SVN update through Tortoise SVN??  I'm just scared that some files are
> over
>> written from what was built with the build.xml
>>
>>  
>>
>> Brendan
>>
>>  
>>
>>
> 
> 
> 
> 

RE: SVN Update

Posted by Brendan Vogt <br...@gmail.com>.
Do you mean ant run-install??  If I run ant run-install then what will
happen to the tables, will it be skipped or will it try to rebuild the
tables?


-----Original Message-----
From: BJ Freeman [mailto:bjfree@free-man.net] 
Sent: Tuesday, October 23, 2007 8:14 PM
To: user@ofbiz.apache.org
Subject: Re: SVN Update

if you use the 4.0 branch is is less prone to changes since it is
getting ready for a release.
it you use the trunk you are most likely to have changes all the time.
best you rebuild after each svn update


Brendan Vogt sent the following on 10/23/2007 10:45 AM:
> Hi,
> 
>  
> 
> I ran the build.xml and it went fine.  After this build, can I still do an
> SVN update through Tortoise SVN??  I'm just scared that some files are
over
> written from what was built with the build.xml
> 
>  
> 
> Brendan
> 
>  
> 
> 


Re: SVN Update

Posted by BJ Freeman <bj...@free-man.net>.
if you use the 4.0 branch is is less prone to changes since it is
getting ready for a release.
it you use the trunk you are most likely to have changes all the time.
best you rebuild after each svn update


Brendan Vogt sent the following on 10/23/2007 10:45 AM:
> Hi,
> 
>  
> 
> I ran the build.xml and it went fine.  After this build, can I still do an
> SVN update through Tortoise SVN??  I'm just scared that some files are over
> written from what was built with the build.xml
> 
>  
> 
> Brendan
> 
>  
> 
> 

Re: SVN Update

Posted by Jacopo Cappellato <ti...@sastau.it>.
Christian Geisert wrote:
> skip@theDevers schrieb:
>> Yes, you can.
>>
>> None of your built files are downloaded.
>>
>> But, then again, it's real easy to do another ant run-install to recompile
>> everything.  Note that if you do not do ant clean-all, your data remains
>> intact.
> 
> You just need to run ant without a parameter (which invokes the default
> target 'build') for building, no need for run-install
> 

Yes, that's correct.
You may find useful these experimental quick start 'guides':

"Getting and running OFBiz"
http://docs.ofbiz.org/x/aQM

"Updating OFBiz"
http://docs.ofbiz.org/x/cgM

Jacopo

Re: SVN Update

Posted by Christian Geisert <ch...@isu-gmbh.de>.
skip@theDevers schrieb:
> Yes, you can.
> 
> None of your built files are downloaded.
> 
> But, then again, it's real easy to do another ant run-install to recompile
> everything.  Note that if you do not do ant clean-all, your data remains
> intact.

You just need to run ant without a parameter (which invokes the default
target 'build') for building, no need for run-install

-- 
Christian


Re: ant clean-all

Posted by Scott Gray <le...@gmail.com>.
Ok thanks, I took a guess on that one :-)

Scott

On 26/10/2007, Christian Geisert <ch...@isu-gmbh.de> wrote:
>
> Scott Gray schrieb:
> > It basically reverses everything that ant run-install does, clears data,
>
> > logs, built files etc. If the database is external (not derby) then it
> > clears the data but not the tables.
>
> No, if it's an external database (PostgreSQL, MySQL etc) the data won't
> be cleared at all (and technically it wouldn't that simple to do).
> You need to do this yourself, the easiest thing is to drop and then
> recreate the database.
>
> --
> Christian
>
>

Re: ant clean-all

Posted by Christian Geisert <ch...@isu-gmbh.de>.
Scott Gray schrieb:
> It basically reverses everything that ant run-install does, clears data,
> logs, built files etc. If the database is external (not derby) then it
> clears the data but not the tables.

No, if it's an external database (PostgreSQL, MySQL etc) the data won't
be cleared at all (and technically it wouldn't that simple to do).
You need to do this yourself, the easiest thing is to drop and then
recreate the database.

-- 
Christian


Re: ant clean-all

Posted by Scott Gray <le...@gmail.com>.
It basically reverses everything that ant run-install does, clears data,
logs, built files etc. If the database is external (not derby) then it
clears the data but not the tables.

Regards
Scott

On 26/10/2007, Brendan Vogt <br...@gmail.com> wrote:
>
> Hi,
>
> What does ant clean-all do exactly?  Does it wipe the tables?  The data??
>
> Thanks
> Brendan
>
>

ant clean-all

Posted by Brendan Vogt <br...@gmail.com>.
Hi,

What does ant clean-all do exactly?  Does it wipe the tables?  The data??

Thanks
Brendan


Re: SVN Update

Posted by Jacopo Cappellato <ti...@sastau.it>.
Hi Brendan,

have a look at:

http://docs.ofbiz.org/display/~jacopoc/Quick+Start+Guides

or to the README in the OFBiz folder.

good luck,

Jacopo

Brendan Vogt wrote:
> After running build.xml for the first time, what is the next step, or can I
> can I first do and SVN update?  If I run build.xml again, what happens to
> the database tables?
> 
> -----Original Message-----
> From: skip@theDevers [mailto:skip@thedevers.org] 
> Sent: Tuesday, October 23, 2007 9:48 PM
> To: user@ofbiz.apache.org
> Subject: RE: SVN Update
> 
> Yes, you can.
> 
> None of your built files are downloaded.
> 
> But, then again, it's real easy to do another ant run-install to recompile
> everything.  Note that if you do not do ant clean-all, your data remains
> intact.
> 
> Skip
> 
> -----Original Message-----
> From: Brendan Vogt [mailto:brendan.vogt@gmail.com]
> Sent: Tuesday, October 23, 2007 10:46 AM
> To: user@ofbiz.apache.org
> Subject: SVN Update
> 
> 
> Hi,
> 
> 
> 
> I ran the build.xml and it went fine.  After this build, can I still do an
> SVN update through Tortoise SVN??  I'm just scared that some files are over
> written from what was built with the build.xml
> 
> 
> 
> Brendan
> 
> 
> 


Re: SVN Update

Posted by BJ Freeman <bj...@free-man.net>.
table building is done when ofbiz is first started if you have it set in
 the entityengine.xml.
ant build is a seperate process that generates the Jar files that is ofbiz.
ant clean-all will wipe out the derby db and all jars files. it will
then build a new set of jars. When you start ofbiz after this it will
again build a new db if the entityengine.xml specifies to do so.



Brendan Vogt sent the following on 10/25/2007 7:54 AM:
> After running build.xml for the first time, what is the next step, or can I
> can I first do and SVN update?  If I run build.xml again, what happens to
> the database tables?
> 
> -----Original Message-----
> From: skip@theDevers [mailto:skip@thedevers.org] 
> Sent: Tuesday, October 23, 2007 9:48 PM
> To: user@ofbiz.apache.org
> Subject: RE: SVN Update
> 
> Yes, you can.
> 
> None of your built files are downloaded.
> 
> But, then again, it's real easy to do another ant run-install to recompile
> everything.  Note that if you do not do ant clean-all, your data remains
> intact.
> 
> Skip
> 
> -----Original Message-----
> From: Brendan Vogt [mailto:brendan.vogt@gmail.com]
> Sent: Tuesday, October 23, 2007 10:46 AM
> To: user@ofbiz.apache.org
> Subject: SVN Update
> 
> 
> Hi,
> 
> 
> 
> I ran the build.xml and it went fine.  After this build, can I still do an
> SVN update through Tortoise SVN??  I'm just scared that some files are over
> written from what was built with the build.xml
> 
> 
> 
> Brendan
> 
> 
> 
> 
> 
> 
> 

RE: SVN Update

Posted by "skip@theDevers" <sk...@thedevers.org>.
Brendan

You can run just ant (no arguments) as often as you like.  It doesnt mess
with the data.  Further, you can run ant run-install-seed and it only fools
with the seed data (resetting it).

In my testing directory, I do this:

ant clean-all
and run-install

The first clears out derby data and dumps all the class files.  If you are
hooked to postgres instead of derby, clean-all does not clean it out.  You
have to drop the database and remake it.

You can update from svn as often as you like and rebuild with just ant.

Skip

-----Original Message-----
From: Brendan Vogt [mailto:brendan.vogt@gmail.com]
Sent: Thursday, October 25, 2007 7:54 AM
To: user@ofbiz.apache.org
Subject: RE: SVN Update


After running build.xml for the first time, what is the next step, or can I
can I first do and SVN update?  If I run build.xml again, what happens to
the database tables?

-----Original Message-----
From: skip@theDevers [mailto:skip@thedevers.org]
Sent: Tuesday, October 23, 2007 9:48 PM
To: user@ofbiz.apache.org
Subject: RE: SVN Update

Yes, you can.

None of your built files are downloaded.

But, then again, it's real easy to do another ant run-install to recompile
everything.  Note that if you do not do ant clean-all, your data remains
intact.

Skip

-----Original Message-----
From: Brendan Vogt [mailto:brendan.vogt@gmail.com]
Sent: Tuesday, October 23, 2007 10:46 AM
To: user@ofbiz.apache.org
Subject: SVN Update


Hi,



I ran the build.xml and it went fine.  After this build, can I still do an
SVN update through Tortoise SVN??  I'm just scared that some files are over
written from what was built with the build.xml



Brendan






RE: SVN Update

Posted by Brendan Vogt <br...@gmail.com>.
After running build.xml for the first time, what is the next step, or can I
can I first do and SVN update?  If I run build.xml again, what happens to
the database tables?

-----Original Message-----
From: skip@theDevers [mailto:skip@thedevers.org] 
Sent: Tuesday, October 23, 2007 9:48 PM
To: user@ofbiz.apache.org
Subject: RE: SVN Update

Yes, you can.

None of your built files are downloaded.

But, then again, it's real easy to do another ant run-install to recompile
everything.  Note that if you do not do ant clean-all, your data remains
intact.

Skip

-----Original Message-----
From: Brendan Vogt [mailto:brendan.vogt@gmail.com]
Sent: Tuesday, October 23, 2007 10:46 AM
To: user@ofbiz.apache.org
Subject: SVN Update


Hi,



I ran the build.xml and it went fine.  After this build, can I still do an
SVN update through Tortoise SVN??  I'm just scared that some files are over
written from what was built with the build.xml



Brendan





RE: SVN Update

Posted by "skip@theDevers" <sk...@thedevers.org>.
Yes, you can.

None of your built files are downloaded.

But, then again, it's real easy to do another ant run-install to recompile
everything.  Note that if you do not do ant clean-all, your data remains
intact.

Skip

-----Original Message-----
From: Brendan Vogt [mailto:brendan.vogt@gmail.com]
Sent: Tuesday, October 23, 2007 10:46 AM
To: user@ofbiz.apache.org
Subject: SVN Update


Hi,



I ran the build.xml and it went fine.  After this build, can I still do an
SVN update through Tortoise SVN??  I'm just scared that some files are over
written from what was built with the build.xml



Brendan