SVN Update

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

SVN Update

Brendan Vogt
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

 

Reply | Threaded
Open this post in threaded view
|

Re: SVN Update

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

RE: SVN Update

Brendan Vogt
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:[hidden email]]
Sent: Tuesday, October 23, 2007 8:14 PM
To: [hidden email]
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
>
>  
>
>

Reply | Threaded
Open this post in threaded view
|

Re: SVN Update

BJ Freeman
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:[hidden email]]
> Sent: Tuesday, October 23, 2007 8:14 PM
> To: [hidden email]
> 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
>>
>>  
>>
>>
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

RE: SVN Update

SkipDever
In reply to this post by Brendan Vogt
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:[hidden email]]
Sent: Tuesday, October 23, 2007 10:46 AM
To: [hidden email]
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




Reply | Threaded
Open this post in threaded view
|

Re: SVN Update

Christian Geisert
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

Reply | Threaded
Open this post in threaded view
|

Re: SVN Update

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

RE: SVN Update

Brendan Vogt
In reply to this post by SkipDever
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:[hidden email]]
Sent: Tuesday, October 23, 2007 9:48 PM
To: [hidden email]
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:[hidden email]]
Sent: Tuesday, October 23, 2007 10:46 AM
To: [hidden email]
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




Reply | Threaded
Open this post in threaded view
|

Re: SVN Update

Jacopo Cappellato
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:[hidden email]]
> Sent: Tuesday, October 23, 2007 9:48 PM
> To: [hidden email]
> 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:[hidden email]]
> Sent: Tuesday, October 23, 2007 10:46 AM
> To: [hidden email]
> 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
>
>
>

Reply | Threaded
Open this post in threaded view
|

ant clean-all

Brendan Vogt
Hi,

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

Thanks
Brendan

Reply | Threaded
Open this post in threaded view
|

RE: SVN Update

SkipDever
In reply to this post by Brendan Vogt
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:[hidden email]]
Sent: Thursday, October 25, 2007 7:54 AM
To: [hidden email]
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:[hidden email]]
Sent: Tuesday, October 23, 2007 9:48 PM
To: [hidden email]
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:[hidden email]]
Sent: Tuesday, October 23, 2007 10:46 AM
To: [hidden email]
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





Reply | Threaded
Open this post in threaded view
|

Re: SVN Update

BJ Freeman
In reply to this post by Brendan Vogt
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:[hidden email]]
> Sent: Tuesday, October 23, 2007 9:48 PM
> To: [hidden email]
> 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:[hidden email]]
> Sent: Tuesday, October 23, 2007 10:46 AM
> To: [hidden email]
> 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
>
>
>
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: ant clean-all

Scott Gray
In reply to this post by Brendan Vogt
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 <[hidden email]> wrote:
>
> Hi,
>
> What does ant clean-all do exactly?  Does it wipe the tables?  The data??
>
> Thanks
> Brendan
>
>
Reply | Threaded
Open this post in threaded view
|

Re: ant clean-all

Christian Geisert
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

Reply | Threaded
Open this post in threaded view
|

Re: ant clean-all

Scott Gray
Ok thanks, I took a guess on that one :-)

Scott

On 26/10/2007, Christian Geisert <[hidden email]> 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
>
>