You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Marcel Schutte <ma...@schutte.com> on 2000/10/23 22:13:44 UTC

RE: CVS Password?

> Is it possible to access Cvs files with a user name "jsmith" and
> a password or
> do I have to use "anonymous" access.

You can find a description how to get anonymous access here:
http://jakarta.apache.org/getinvolved/cvsindex.html
The non-anonymous access is for 'committers', a title that can only be
obtained through hard work and making friends among the other committers :).

Marcel


Re: Win32 CVS Error

Posted by tw...@its.to.
I am following up my own post to mention that this is not a path
problem. cvs.exe is in my path and runs very nicely from the command line
in any directory. Currently I am using the exec target rather than the cvs
target since it is only and external call anyway. However if anyone has
any ideas as to why I am still getting this error I would much appreciate
it.

Regards

Terrence

On Wed, 22 Nov 2000 twm139@its.to wrote:

> I get the following error when trying to do a checkout with cvs
> 
> checkoutbuild.xml:22: java.io.IOException: CreateProcess: cvs -d
> :pserver:anon@some.cvs.com:/home/project checkout Package error=267
> java.io.IOException: CreateProcess: cvs -d
> :pserver:anon@some.cvs.com:/home/project checkout Package error=267
>         at java.lang.Win32Process.create(Native Method)
>         at java.lang.Win32Process.<init>(Unknown Source)
>         at java.lang.Runtime.execInternal(Native Method)
>         at java.lang.Runtime.exec(Unknown Source)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at
> org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:390)
>         at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:247)
>         at org.apache.tools.ant.taskdefs.Cvs.execute(Cvs.java:181)
>         at org.apache.tools.ant.Target.execute(Target.java:142)
>         at org.apache.tools.ant.Project.runTarget(Project.java:818)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:532)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:506)
>         at org.apache.tools.ant.Main.runBuild(Main.java:400)
>         at org.apache.tools.ant.Main.main(Main.java:130)
> 
> Total time: 1 second
> java.io.IOException: CreateProcess: cvs -d
> :pserver:anon@some.cvs.com:/home/project checkout Package error=267
> 
> Does ant use its own cvs or call one? Cvs is in the path, and in the
> current directory from where I am calling ant...
> 
> Cheers,
> 
> Terrence
> 


Win32 CVS Error

Posted by tw...@its.to.
I get the following error when trying to do a checkout with cvs

checkoutbuild.xml:22: java.io.IOException: CreateProcess: cvs -d
:pserver:anon@some.cvs.com:/home/project checkout Package error=267
java.io.IOException: CreateProcess: cvs -d
:pserver:anon@some.cvs.com:/home/project checkout Package error=267
        at java.lang.Win32Process.create(Native Method)
        at java.lang.Win32Process.<init>(Unknown Source)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Unknown Source)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:390)
        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:247)
        at org.apache.tools.ant.taskdefs.Cvs.execute(Cvs.java:181)
        at org.apache.tools.ant.Target.execute(Target.java:142)
        at org.apache.tools.ant.Project.runTarget(Project.java:818)
        at org.apache.tools.ant.Project.executeTarget(Project.java:532)
        at org.apache.tools.ant.Project.executeTargets(Project.java:506)
        at org.apache.tools.ant.Main.runBuild(Main.java:400)
        at org.apache.tools.ant.Main.main(Main.java:130)

Total time: 1 second
java.io.IOException: CreateProcess: cvs -d
:pserver:anon@some.cvs.com:/home/project checkout Package error=267

Does ant use its own cvs or call one? Cvs is in the path, and in the
current directory from where I am calling ant...

Cheers,

Terrence


Re: CVS Password?

Posted by Jan Castermans <ja...@beta9.be>.
Marcel Schutte wrote:

> > Is it possible to access Cvs files with a user name "jsmith" and
> > a password or
> > do I have to use "anonymous" access.
>
> You can find a description how to get anonymous access here:
> http://jakarta.apache.org/getinvolved/cvsindex.html
> The non-anonymous access is for 'committers', a title that can only be
> obtained through hard work and making friends among the other committers :).
>
> Marcel

I think he wanted to use it for his own project.
I do a manual checkout the first time (using: cvs login and then cvs co
module). This creates the necessary CVS directories so I don't have to login
again.
Afterwards I do the cvs update from within ant.


problem using Javac

Posted by Andy XueWen Qin <aq...@cisco.com>.
I'm trying to use Ant to compile a small project, but
seems like Ant's javac never go to compile an imported
file if that file is not under the "srcdir"
----------------------
In my build.xml:
---------------
  <property  name="classpath" value=".:/abc/test1:/jdk/lib/classes.zip" />

  <javac srcdir="/tdd/fortest" destdir="/tdd/fortest" debug="on">
     <classpath path="${classpath}"/>
  </javac>
-----------------
file "/tdd/fortest/A.java" has "import com.self.util.csCgi"
and there IS a java file "/abc/test1/com/self/util/csCgi.java"
but Ant never compile it, the error message is:
  [javac] /tdd/fortest/A.java:12: Class com.self.util.csCgi not found in
import.
  [javac] import com.self.util.csCgi;
  [javac]        ^


thanks
/andy