ant and svn

View: New views
8 Messages — Rating Filter:   Alert me  

ant and svn

by jpyork :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Does anyone use the svn task in there ant scripts?  I am trying to use svn update in my ant script and it just does not seem to work.

this is what I have in my script:
<target name="svn">
     <svn username="mine" password="1234">
              <update dir="http://1.2.3.4/repos/address/I/want/updated"/>
      </svn>
</target>


And this is what it says when the step is run:

Svn: Updating
update -r HEAD /Location/on/computer/running/script http://1.2.3.4/repos/address/I/want/updated
notify.skipped

I have one master script above all my small projects and this is where I have the target thinking that if I have it in the top level, it will grab any updates below it.  I update and commit changes to files below the top level and they are not grabbed.


RE: ant and svn

by Lenhof,Danny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Here is two examples...hope this helps.

 

    <target name="svn">

         <exec executable="svn">

             <arg line="update --username jpyork --password jpyork29
http://1.2.3.4/repos/address/I/want/updated
c:/1.2.3.4/repos/address/I/want/updated " />

        </exec>

    </target>

 

Or try this...

 

     <property name="repo" value="repository  path of files" />

     <property name="file.location" value="local path to files" />

     <property name="SVNUser " value="jpyork" />

     <property name=" SVNPassword" value="jpyork29" />

 

    <target name="svn" description="Update project">

                <echo message="Updating ${file.location} from subversion
${repo}...."/>

         <exec executable="svn">

             <arg line="update --username ${SVNUser} --password
${SVNPassword} --no-auth-cache ${repo} ${file.location}" />

        </exec>

    </target>

 

Dan

 

-----Original Message-----
From: jpyork [mailto:jp_york@...]
Sent: Tuesday, April 29, 2008 12:31 PM
To: user@...
Subject: ant and svn

 

 

Does anyone use the svn task in there ant scripts?  I am trying to use
svn

update in my ant script and it just does not seem to work.

 

this is what I have in my script:

<target name="svn">

     <svn username="mine" password="1234">

              <update
dir="http://1.2.3.4/repos/address/I/want/updated"/>

      </svn>

</target>

 

 

And this is what it says when the step is run:

 

Svn: Updating

update -r HEAD /Location/on/computer/running/script

http://1.2.3.4/repos/address/I/want/updated

notify.skipped

 

I have one master script above all my small projects and this is where I

have the target thinking that if I have it in the top level, it will
grab

any updates below it.  I update and commit changes to files below the
top

level and they are not grabbed.

 

 

--

View this message in context:
http://www.nabble.com/ant-and-svn-tp16964251p16964251.html

Sent from the Ant - Users mailing list archive at Nabble.com.

 

 

---------------------------------------------------------------------

To unsubscribe, e-mail: user-unsubscribe@...

For additional commands, e-mail: user-help@...

 


This e-mail message, including any attachments, is for the sole use of the person to whom it has been sent, and may contain information that is confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments.  Gartner makes no warranty that this e-mail is error or virus free.


Re: ant and svn

by Alex Miller-9 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've rely heavily on svn but I could not get the svn task to work
either.  Instead, I just use exec like this:

<target name="test" description="testing svn">
        <property file="svn.prop"/>
        <exec executable="svn" dir="${basedir}">
        <arg value="export"/>
                <arg value="${svn.url}"/>
                <arg value="--username=${svn.user}"/>
                <arg value="--password=${svn.pass}"/>
        </exec>
</target>


I know this isn't a solution, but it's a workaround that might help you
until somebody can shed more light on the svn task for us.
 

On Tue, 2008-04-29 at 09:31 -0700, jpyork wrote:

> Does anyone use the svn task in there ant scripts?  I am trying to use svn
> update in my ant script and it just does not seem to work.
>
> this is what I have in my script:
> <target name="svn">
>      <svn username="mine" password="1234">
>               <update dir="http://1.2.3.4/repos/address/I/want/updated"/>
>       </svn>
> </target>
>
>
> And this is what it says when the step is run:
>
> Svn: Updating
> update -r HEAD /Location/on/computer/running/script
> http://1.2.3.4/repos/address/I/want/updated
> notify.skipped
>
> I have one master script above all my small projects and this is where I
> have the target thinking that if I have it in the top level, it will grab
> any updates below it.  I update and commit changes to files below the top
> level and they are not grabbed.
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


RE: ant and svn

by Shawn Castrianni-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I haven't tried svn update, but svn checkout worked great.  However, I am using the pure Java svn plugin with great success.

---
Shawn Castrianni


-----Original Message-----
From: Alex Miller [mailto:alex@...]
Sent: Tuesday, April 29, 2008 12:46 PM
To: Ant Users List
Subject: Re: ant and svn

I've rely heavily on svn but I could not get the svn task to work
either.  Instead, I just use exec like this:

<target name="test" description="testing svn">
        <property file="svn.prop"/>
        <exec executable="svn" dir="${basedir}">
                <arg value="export"/>
                <arg value="${svn.url}"/>
                <arg value="--username=${svn.user}"/>
                <arg value="--password=${svn.pass}"/>
        </exec>
</target>


I know this isn't a solution, but it's a workaround that might help you
until somebody can shed more light on the svn task for us.


On Tue, 2008-04-29 at 09:31 -0700, jpyork wrote:

> Does anyone use the svn task in there ant scripts?  I am trying to use svn
> update in my ant script and it just does not seem to work.
>
> this is what I have in my script:
> <target name="svn">
>      <svn username="mine" password="1234">
>               <update dir="http://1.2.3.4/repos/address/I/want/updated"/>
>       </svn>
> </target>
>
>
> And this is what it says when the step is run:
>
> Svn: Updating
> update -r HEAD /Location/on/computer/running/script
> http://1.2.3.4/repos/address/I/want/updated
> notify.skipped
>
> I have one master script above all my small projects and this is where I
> have the target thinking that if I have it in the top level, it will grab
> any updates below it.  I update and commit changes to files below the top
> level and they are not grabbed.
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...

----------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient.  Any review, use, distribution, or disclosure by others is strictly prohibited.  If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: ant and svn

by jpyork :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I must be doing something wrong because everytime I try to do one of the options posted here, I get this:

svn:
[exec] Skipped http://1.2.3.4/repos/address/I/want/updated
[exec] Skipped location/on/computer/the/update/should/happen


why is it "skipping" this step?


jpyork wrote:
Does anyone use the svn task in there ant scripts?  I am trying to use svn update in my ant script and it just does not seem to work.

this is what I have in my script:
<target name="svn">
     <svn username="mine" password="1234">
              <update dir="http://1.2.3.4/repos/address/I/want/updated"/>
      </svn>
</target>


And this is what it says when the step is run:

Svn: Updating
update -r HEAD /Location/on/computer/running/script http://1.2.3.4/repos/address/I/want/updated
notify.skipped

I have one master script above all my small projects and this is where I have the target thinking that if I have it in the top level, it will grab any updates below it.  I update and commit changes to files below the top level and they are not grabbed.

Re: ant and svn

by Alex Miller-9 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It looks like subversion is "skipping" the updates because those files
are already up to date.


On Wed, 2008-04-30 at 09:06 -0700, jpyork wrote:

> I must be doing something wrong because everytime I try to do one of the
> options posted here, I get this:
>
> svn:
> [exec] Skipped http://1.2.3.4/repos/address/I/want/updated
> [exec] Skipped location/on/computer/the/update/should/happen
>
>
> why is it "skipping" this step?
>
>
>
> jpyork wrote:
> >
> > Does anyone use the svn task in there ant scripts?  I am trying to use svn
> > update in my ant script and it just does not seem to work.
> >
> > this is what I have in my script:
> > <target name="svn">
> >      <svn username="mine" password="1234">
> >               <update dir="http://1.2.3.4/repos/address/I/want/updated"/>
> >       </svn>
> > </target>
> >
> >
> > And this is what it says when the step is run:
> >
> > Svn: Updating
> > update -r HEAD /Location/on/computer/running/script
> > http://1.2.3.4/repos/address/I/want/updated
> > notify.skipped
> >
> > I have one master script above all my small projects and this is where I
> > have the target thinking that if I have it in the top level, it will grab
> > any updates below it.  I update and commit changes to files below the top
> > level and they are not grabbed.
> >
> >
> >
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


RE: ant and svn

by jpyork :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Then how would I get it to check the whole branch?  I was under the assumtion if I pointed to the top folder, it would check everything under it, If this is not the case what would I put for it to do this?


Lenhof,Danny wrote:
Here is two examples...hope this helps.

 

    <target name="svn">

         <exec executable="svn">

             <arg line="update --username jpyork --password jpyork29
http://1.2.3.4/repos/address/I/want/updated
c:/1.2.3.4/repos/address/I/want/updated " />

        </exec>

    </target>

 

Or try this...

 

     <property name="repo" value="repository  path of files" />

     <property name="file.location" value="local path to files" />

     <property name="SVNUser " value="jpyork" />

     <property name=" SVNPassword" value="jpyork29" />

 

    <target name="svn" description="Update project">

                <echo message="Updating ${file.location} from subversion
${repo}...."/>

         <exec executable="svn">

             <arg line="update --username ${SVNUser} --password
${SVNPassword} --no-auth-cache ${repo} ${file.location}" />

        </exec>

    </target>

 

Dan

 

-----Original Message-----
From: jpyork [mailto:jp_york@hotmail.com]
Sent: Tuesday, April 29, 2008 12:31 PM
To: user@ant.apache.org
Subject: ant and svn

 

 

Does anyone use the svn task in there ant scripts?  I am trying to use
svn

update in my ant script and it just does not seem to work.

 

this is what I have in my script:

<target name="svn">

     <svn username="mine" password="1234">

              <update
dir="http://1.2.3.4/repos/address/I/want/updated"/>

      </svn>

</target>

 

 

And this is what it says when the step is run:

 

Svn: Updating

update -r HEAD /Location/on/computer/running/script

http://1.2.3.4/repos/address/I/want/updated

notify.skipped

 

I have one master script above all my small projects and this is where I

have the target thinking that if I have it in the top level, it will
grab

any updates below it.  I update and commit changes to files below the
top

level and they are not grabbed.

 

 

--

View this message in context:
http://www.nabble.com/ant-and-svn-tp16964251p16964251.html

Sent from the Ant - Users mailing list archive at Nabble.com.

 

 

---------------------------------------------------------------------

To unsubscribe, e-mail: user-unsubscribe@ant.apache.org

For additional commands, e-mail: user-help@ant.apache.org

 


This e-mail message, including any attachments, is for the sole use of the person to whom it has been sent, and may contain information that is confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments.  Gartner makes no warranty that this e-mail is error or virus free.

Re: ant and svn

by jpyork :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Then how would I get it to check the whole branch?  I was under the assumtion if I pointed to the top folder, it would check everything under it, If this is not the case what would I put for it to do this?



Alex Miller-9 wrote:
It looks like subversion is "skipping" the updates because those files
are already up to date.


On Wed, 2008-04-30 at 09:06 -0700, jpyork wrote:
> I must be doing something wrong because everytime I try to do one of the
> options posted here, I get this:
>
> svn:
> [exec] Skipped http://1.2.3.4/repos/address/I/want/updated
> [exec] Skipped location/on/computer/the/update/should/happen
>
>
> why is it "skipping" this step?
>
>
>
> jpyork wrote:
> >
> > Does anyone use the svn task in there ant scripts?  I am trying to use svn
> > update in my ant script and it just does not seem to work.
> >
> > this is what I have in my script:
> > <target name="svn">
> >      <svn username="mine" password="1234">
> >               <update dir="http://1.2.3.4/repos/address/I/want/updated"/>
> >       </svn>
> > </target>
> >
> >
> > And this is what it says when the step is run:
> >
> > Svn: Updating
> > update -r HEAD /Location/on/computer/running/script
> > http://1.2.3.4/repos/address/I/want/updated
> > notify.skipped
> >
> > I have one master script above all my small projects and this is where I
> > have the target thinking that if I have it in the top level, it will grab
> > any updates below it.  I update and commit changes to files below the top
> > level and they are not grabbed.
> >
> >
> >
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org