You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michael Owen <mi...@hotmail.com> on 2005/09/15 19:38:51 UTC

[m1.1b2] p4sync command

Hi,

Upgraded to Maven 1.1 beta 2 from Maven 1.0.2. I have a p4sync goal:

    <goal name="p4sync" description="Syncs the project from perforce">

        <attainGoal name="perforce:dummy" />
        <taskdef name="p4sync" 
classname="org.apache.tools.ant.taskdefs.optional.perforce.P4Sync"/>
        <ant:p4sync view="//depot/development/..." />

    </goal>

I had an initial error that it couldn't find the 
org.apache.tools.ant.taskdefs.optional.perforce.P4Sync class. I therefore 
got the ant-optional-1.5.3-1.jar file from the Maven 1.0.2 lib and put it in 
the lib folder of Maven 1.1 beta 2. This file contains the class. I now get 
the error:
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1-beta-2

build:start:

p4sync:
perforce:dummy:


build:end:

//depot/development/... - file(s) up-to-date.
java.io.IOException: Stream closed
        at 
org.apache.tools.ant.taskdefs.optional.perforce.P4HandlerAdapter$Read
er.run(P4HandlerAdapter.java:141)
        at java.lang.Thread.run(Thread.java:534)
Caused by: java.io.IOException: Stream closed
        at 
java.io.BufferedInputStream.ensureOpen(BufferedInputStream.java:120)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:270)
        at 
sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:408)
        at 
sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:450)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:182)
        at java.io.InputStreamReader.read(InputStreamReader.java:167)
        at java.io.BufferedReader.fill(BufferedReader.java:136)
        at java.io.BufferedReader.readLine(BufferedReader.java:299)
        at java.io.BufferedReader.readLine(BufferedReader.java:362)
        at 
org.apache.tools.ant.taskdefs.optional.perforce.P4HandlerAdapter$Read
er.run(P4HandlerAdapter.java:134)
        ... 1 moreBUILD SUCCESSFUL

--- Nested Exception ---
java.io.IOException: Stream closed
        at 
java.io.BufferedInputStream.ensureOpen(BufferedInputStream.java:120)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:270)
        at 
sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:408)
        at 
sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:450)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:182)
        at java.io.InputStreamReader.read(InputStreamReader.java:167)
        at java.io.BufferedReader.fill(BufferedReader.java:136)
        at java.io.BufferedReader.readLine(BufferedReader.java:299)
        at java.io.BufferedReader.readLine(BufferedReader.java:362)
        at 
org.apache.tools.ant.taskdefs.optional.perforce.P4HandlerAdapter$Read
er.run(P4HandlerAdapter.java:134)
        at java.lang.Thread.run(Thread.java:534)
Total time   : 2 seconds
Finished at  : 15 September 2005 18:29:31 BST

I guess this is because I can't put an old version of an Ant optional jar 
file with a latest version of Ant or something similar. Anybody know of any 
workarounds to get rid of the error/use p4sync?

Cheers,

Mike



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m1.1b2] p4sync command

Posted by Lukas Theussl <lt...@apache.org>.


> I guess this is because I can't put an old version of an Ant optional 
> jar file with a latest version of Ant or something similar.

That's a bad idea indeed.

> Anybody know of any workarounds to get rid of the error/use p4sync?

Read the 1.1 compatibility notes: 
http://maven.apache.org/reference/backwards-compatibility.html

You have to add a dependency on ant-apache-oro-1.6.5.jar to your 
project.xml.


- Lukas

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m1.1b2] p4sync command

Posted by Carlos Sanchez <ca...@apache.org>.
Everything you need is here:
http://jroller.com/page/carlossg?entry=maven_tips_and_tricks_perforce1

Regards

On 9/15/05, Michael Owen <mi...@hotmail.com> wrote:
> Hi,
> 
> Upgraded to Maven 1.1 beta 2 from Maven 1.0.2. I have a p4sync goal:
> 
>     <goal name="p4sync" description="Syncs the project from perforce">
> 
>         <attainGoal name="perforce:dummy" />
>         <taskdef name="p4sync"
> classname="org.apache.tools.ant.taskdefs.optional.perforce.P4Sync"/>
>         <ant:p4sync view="//depot/development/..." />
> 
>     </goal>
> 
> I had an initial error that it couldn't find the
> org.apache.tools.ant.taskdefs.optional.perforce.P4Sync class. I therefore
> got the ant-optional-1.5.3-1.jar file from the Maven 1.0.2 lib and put it in
> the lib folder of Maven 1.1 beta 2. This file contains the class. I now get
> the error:
> __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.1-beta-2
> 
> build:start:
> 
> p4sync:
> perforce:dummy:
> 
> 
> build:end:
> 
> //depot/development/... - file(s) up-to-date.
> java.io.IOException: Stream closed
>         at
> org.apache.tools.ant.taskdefs.optional.perforce.P4HandlerAdapter$Read
> er.run(P4HandlerAdapter.java:141)
>         at java.lang.Thread.run(Thread.java:534)
> Caused by: java.io.IOException: Stream closed
>         at
> java.io.BufferedInputStream.ensureOpen(BufferedInputStream.java:120)
>         at java.io.BufferedInputStream.read(BufferedInputStream.java:270)
>         at
> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:408)
>         at
> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:450)
>         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:182)
>         at java.io.InputStreamReader.read(InputStreamReader.java:167)
>         at java.io.BufferedReader.fill(BufferedReader.java:136)
>         at java.io.BufferedReader.readLine(BufferedReader.java:299)
>         at java.io.BufferedReader.readLine(BufferedReader.java:362)
>         at
> org.apache.tools.ant.taskdefs.optional.perforce.P4HandlerAdapter$Read
> er.run(P4HandlerAdapter.java:134)
>         ... 1 moreBUILD SUCCESSFUL
> 
> --- Nested Exception ---
> java.io.IOException: Stream closed
>         at
> java.io.BufferedInputStream.ensureOpen(BufferedInputStream.java:120)
>         at java.io.BufferedInputStream.read(BufferedInputStream.java:270)
>         at
> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:408)
>         at
> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:450)
>         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:182)
>         at java.io.InputStreamReader.read(InputStreamReader.java:167)
>         at java.io.BufferedReader.fill(BufferedReader.java:136)
>         at java.io.BufferedReader.readLine(BufferedReader.java:299)
>         at java.io.BufferedReader.readLine(BufferedReader.java:362)
>         at
> org.apache.tools.ant.taskdefs.optional.perforce.P4HandlerAdapter$Read
> er.run(P4HandlerAdapter.java:134)
>         at java.lang.Thread.run(Thread.java:534)
> Total time   : 2 seconds
> Finished at  : 15 September 2005 18:29:31 BST
> 
> I guess this is because I can't put an old version of an Ant optional jar
> file with a latest version of Ant or something similar. Anybody know of any
> workarounds to get rid of the error/use p4sync?
> 
> Cheers,
> 
> Mike
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org