David Weintraub | 1 Jan 2008 02:12
Picon
Gravatar

Re: <path id=> and classpath mystery

I created a simple build.xml based upon what you gave:

<project name="myapp" default="compile" basedir=".">

    <property name="webapp" value=""/>
    <property name="app.home" location=".."/>

    <path id="webapp.classpath">
           <fileset dir="${app.home}/${webapp}/WEB-INF/lib"
includes="**/*.jar"/>
   </path>
   <property name="webapp.classpath.property" refid="webapp.classpath"/>

   <target name="compile">
       <echo message="basedir=&quot;${basedir}&quot;"/>
       <echo message="webapp.classpath=&quot;${webapp.classpath}&quot;"/>
       <echo message="webapp.classpath.property=&quot;${webapp.classpath.property}&quot;"/>
   </target>
</project>

I created two jar files in the classpath, foo.jar and bar.jar. When I
run ant, I get the following output:

/Users/david$ ant
Buildfile: build.xml

compile:
     [echo] basedir="/Users/david"
     [echo] webapp.classpath="${webapp.classpath}"
     [echo] webapp.classpath.property="/Users/WEB-INF/lib/bar.jar:/Users/WEB-INF/lib/foo.jar"
(Continue reading)

David Weintraub | 1 Jan 2008 03:05
Picon
Gravatar

Re: Script Task In Ant

Java on Leopard is version 1.5 (which is one of the big complaints).

The error message is saying that
"org.apache.tools.ant.util.optional.ScriptRunner" is not found. This
class isn't found in bsf.jar, but in ant-apache-bsf-1.7.0.jar which I
found at http://www.ibiblio.org/maven/org.apache.ant/jars/.

I am not sure if this is a Leopard issue. According to the library
dependency section of the Apache Ant manual, it looks like you
downloaded the correct jars, but none of them have that particular
class.

On Dec 31, 2007 5:47 PM, david <david <at> davidwbrown.name> wrote:
> Hello Francisco, isn't Leopard new to Java 6? There are known problems with Leopard and Java 6 see:
javalobby article: http://www.javalobby.org/java/forums/t102936.html
>
> What is the JDK version?
> run: ant -debug
> What echo message do you get from ${env.CLASSPATH} ?
>
> Francisco Tolmasky wrote ..
>
> > Hello, I am attempting to use JavaScript within ant and am running
> > into a few difficulties.
> > I used to be able to do the following in Mac OS X Tiger just fine:
> >
> >
> >          <script language = "javascript" src = "whatever.js">
> >               /* whatever */
> >          </script>
(Continue reading)

David Weintraub | 1 Jan 2008 03:26
Picon
Gravatar

Re: Properties for include in fileset

I am not sure what your complaint is. It looks like it is performing
as expected as far as I can tell. It looks like everything is working
according to the output of the debug.

* Are you expecting something specific?

* What is ${model-helper-source.path} being set to? Is it any chance
"**/com/**/model/**/*.java"?

* Do you have Java files in this path?

* What is being returned by the second match?

The pattern "**/*.java" maybe matching *.java files, but these *.java
files might not be under "**/com/**/model/**/*.java" pattern. It's
hard to tell with the information you gave us exactly what is going
wrong.

On Dec 18, 2007 3:11 PM, Daniels, Troy (US SSA)
<troy.daniels <at> baesystems.com> wrote:
> At several places, I need to build a fileset with the same properties.
> Which files are included is likely to change, so I tried to use a
> property to specify this:
>
>                         <path>
>                                 <fileset dir="..">
>                                         <include
> name="${model-helper-source.path}" />
> <!--                                    <include name="**/*.java" /> -->
>                                 </fileset>
(Continue reading)

Ravi Roy | 1 Jan 2008 06:33
Picon

RE: Error running C:\toos\Java\jdk1.6.0_03\bin\javac.exe compiler

Hi All,

Just to inform the list about the problem mentioned in subject line, as
mentioned to Freeman, I found later that it was not the valid reaons for the
problem, but reaon I found was big paths in javac task which caused the
problems... which took me a while to investigae.

I shortened the path in javac task's  'srcdir' and 'destdir' and problem did
not appeared again..

I got two types of error during investigation :
   'Error starting modern compiler' and 'Error running javac.exe compiler'

Which disappeared now, during investigating the same I had a look on ant
source code to for the particular string which was comming  as error and I
found the reference of the same under which led me to further investigation
of the same :

Line number 509 in DefaultCompilerAdapter.java

 } catch (IOException e) {
                throw new BuildException("Error running " + args[0]
                        + " compiler", e, location);

Thanks a lot for your help and support!

Regards.
Ravi.

 
(Continue reading)

Francisco Tolmasky | 1 Jan 2008 06:39
Picon
Gravatar

Re: Script Task In Ant

Well simply adding ant-apache-bsf-1.7.0.jar to my libs seemed to do  
the trick, so thanks!
I am now happily scripting in ant.

Francisco

On Dec 31, 2007, at 6:05 PM, David Weintraub wrote:

> Java on Leopard is version 1.5 (which is one of the big complaints).
>
> The error message is saying that
> "org.apache.tools.ant.util.optional.ScriptRunner" is not found. This
> class isn't found in bsf.jar, but in ant-apache-bsf-1.7.0.jar which I
> found at http://www.ibiblio.org/maven/org.apache.ant/jars/.
>
> I am not sure if this is a Leopard issue. According to the library
> dependency section of the Apache Ant manual, it looks like you
> downloaded the correct jars, but none of them have that particular
> class.
>
> On Dec 31, 2007 5:47 PM, david <david <at> davidwbrown.name> wrote:
>> Hello Francisco, isn't Leopard new to Java 6? There are known  
>> problems with Leopard and Java 6 see: javalobby article: http://www.javalobby.org/java/forums/t102936.html
>>
>> What is the JDK version?
>> run: ant -debug
>> What echo message do you get from ${env.CLASSPATH} ?
>>
>> Francisco Tolmasky wrote ..
>>
(Continue reading)

Martin Gainty | 1 Jan 2008 16:45
Picon
Favicon

RE: Error running C:\toos\Java\jdk1.6.0_03\bin\javac.exe compiler


anyone with same environment theoretically should encounter this error ..can you post JIRA?
(the idea is to annotate the readme for that specific OS/JDK/JVM so others dont spin their wheels trying to
figure this out)Also concerning C:\toos\Java\jdk1.6.0_03 most environments (to save on space)SET JAVA_HOME=C:\toos\Java\jdk1.6.0_03
SET PATH=%JAVA_HOME%\bin;%PATH%
Here is the link to bugzilla
http://issues.apache.org/bugzilla/buglist.cgi?query_format=advanced&short_desc_type=allwordssubstr&short_desc=&product=Ant&long_desc_type=substring&long_desc=&bug_file_loc_type=allwordssubstr&bug_file_loc=&keywords_type=allwords&keywords=&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&emailassigned_to1=1&emailtype1=substring&email1=&emailassigned_to2=1&emailreporter2=1&emailcc2=1&emailtype2=substring&email2=&bugidtype=include&bug_id=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&field0-0-0=noop&type0-0-0=noop&value0-0-0=
ThanksMartin______________________________________________Disclaimer and confidentiality
noteEverything in this e-mail and any attachments relates to the official business of Sender. This
transmission is of a confidential nature and Sender does not endorse distribution to any party other than
intended recipient. Sender does not necessarily endorse content contained within this transmission.>
From: ravi.aroy <at> gmail.com> To: user <at> ant.apache.org; sumudu.v <at> gmail.com> Subject: RE: Error
running C:\toos\Java\jdk1.6.0_03\bin\javac.exe compiler> Date: Tue, 1 Jan 2008 11:03:16 +0530> > Hi
All,> > Just to inform the list about the problem mentioned in subject line, as> mentioned to Freeman, I
found later that it was not the valid reaons for the> problem, but reaon I found was big paths in javac task
which caused the> problems... which took me a while to investigae.> > I shortened the path in javac task's
'srcdir' and 'destdir' and problem did> not appeared again..> > I got two types of error during
investigation :> 'Error starting modern compiler' and 'Error running javac.exe compiler'> > Which
disappeared now, during investigating the same I had a look on ant> source code to for the particular
string which was comming as error and I> found the reference of the same under which led me to further
investigation> of the same :> > Line number 509 in DefaultCompilerAdapter.java> > } catch (IOException
e) {> throw new BuildException("Error running " + args[0]> + " compiler", e, location);> > Thanks a lot for
your help and support!> > Regards.> Ravi.> > > > > > > -----Original Message-----> From: Ravi Roy
[mailto:ravi.aroy <at> gmail.com] > Sent: Sunday, December 23, 2007 5:14 PM> To: 'Ant Users List'; 'FREEMAN
FIREFOX'> Subject: RE: Error running C:\toos\Java\jdk1.6.0_03\bin\javac.exe compiler> > > > Hi
Freeman,> > I have found the culprit which is one of the subproject on the classpath, if> I remove the
classes of that project from classpath before actually start> compiling JUnit tests, then I do not get
this Error running javac.exe> compiler, though it looks strange but this is the fact I have seen.> > I have
to investigate further what is actully causing this. > > Thanks for your the time...> > Regards> Ravi> > > >
-----Original Message-----> From: FREEMAN FIREFOX [mailto:sumudu.v <at> gmail.com] > Sent: Sunday,
(Continue reading)

Ravi Roy | 2 Jan 2008 08:06
Picon

Re: Error running C:\toos\Java\jdk1.6.0_03\bin\javac.exe compiler

I have opend the request - BUG 44158.

On 1/1/08, Martin Gainty <mgainty <at> hotmail.com> wrote:
>
> anyone with same environment theoretically should encounter this error ..can you post JIRA?
> (the idea is to annotate the readme for that specific OS/JDK/JVM so others dont spin their wheels trying to
figure this out)Also concerning C:\toos\Java\jdk1.6.0_03 most environments (to save on space)SET JAVA_HOME=C:\toos\Java\jdk1.6.0_03
> SET PATH=%JAVA_HOME%\bin;%PATH%
> Here is the link to bugzilla
> http://issues.apache.org/bugzilla/buglist.cgi?query_format=advanced&short_desc_type=allwordssubstr&short_desc=&product=Ant&long_desc_type=substring&long_desc=&bug_file_loc_type=allwordssubstr&bug_file_loc=&keywords_type=allwords&keywords=&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&emailassigned_to1=1&emailtype1=substring&email1=&emailassigned_to2=1&emailreporter2=1&emailcc2=1&emailtype2=substring&email2=&bugidtype=include&bug_id=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&field0-0-0=noop&type0-0-0=noop&value0-0-0=
> ThanksMartin______________________________________________Disclaimer and confidentiality
noteEverything in this e-mail and any attachments relates to the official business of Sender. This
transmission is of a confidential nature and Sender does not endorse distribution to any party other than
intended recipient. Sender does not necessarily endorse content contained within this transmission.>
From: ravi.aroy <at> gmail.com> To: user <at> ant.apache.org; sumudu.v <at> gmail.com> Subject: RE: Error
running C:\toos\Java\jdk1.6.0_03\bin\javac.exe compiler> Date: Tue, 1 Jan 2008 11:03:16 +0530> > Hi
All,> > Just to inform the list about the problem mentioned in subject line, as> mentioned to Freeman, I
found later that it was not the valid reaons for the> problem, but reaon I found was big paths in javac task
which caused the> problems... which took me a while to investigae.> > I shortened the path in javac task's
'srcdir' and 'destdir' and problem did> not appeared again..> > I got two types of error during
investigation :> 'Error starting modern compiler' and 'Error running javac.exe compiler'> > Which
disappeared now, during investigating the same I had a look on ant> source code to for the particular
string which was comming as error and I> found the reference of the same under which led me to further
investigation> of the same :> > Line number 509 in DefaultCompilerAdapter.java> > } catch (IOException
e) {> throw new BuildException("Error running " + args[0]> + " compiler", e, location);> > Thanks a lot for
your help and support!> > Regards.> Ravi.> > > > > > > -----Original Message-----> From: Ravi Roy
[mailto:ravi.aroy <at> gmail.com] > Sent: Sunday, December 23, 2007 5:14 PM> To: 'Ant Users List'; 'FREEMAN
FIREFOX'> Subject: RE: Error running C:\toos\Java\jdk1.6.0_03\bin\javac.exe compiler> > > > Hi
Freeman,> > I have found the culprit which is one of the subproject on the classpath, if> I remove the
classes of that project from classpath before actually start> compiling JUnit tests, then I do not get
(Continue reading)

ext-simon.steiner | 2 Jan 2008 15:56
Picon

sshexec problem

Hi,

I am using sshexec to connect to a unix machine, I see difference in the
environment ('export'ed values) when using this compared to logging in
with Putty. Why would this be?

Thanks
Judy Anderson | 2 Jan 2008 16:02
Favicon

RE: CVS task failure: cannot rename

Aha, indeed, the jar file was on my classpath.  In my experiments I didn't explicitly change classpath
within Ant, but I suppose it inherits from the environment.  I rebooted my machine and the problem went
away, but I may not have run the script that sets my default classpath when I ran the after-reboot test. 
Thanks for the tip.  I guess I need to rework stuff so that I make sure no CVS-controlled files are on
classpath before running the CVS tasks, and then re-add them when it's time to run the tasks that will
require the new jars.

-----Original Message-----
From: Rick Genter [mailto:rgenter <at> silverlink.com]
Sent: Sunday, December 30, 2007 3:09 PM
To: Ant Users List
Subject: RE: CVS task failure: cannot rename

> From: Judy Anderson [mailto:JAnderson <at> rocketsoftware.com]
> Sent: Tuesday, December 25, 2007 1:51 PM
> To: Ant Users List
> Subject: RE: CVS task failure: cannot rename
>
> I have done some more experimentation with my problem.  It
> only happens on binary files (flag "-kb").  CVS is doing a
> different kind of update that involves delete/rename.  I
> tried using <exec> on cvs with no help.
>
> It seems that, although I can "del" such a file manually, I
> cannot use ant's <delete> task on one.  So perhaps the
> problem is unrelated to CVS (well, excepting that the file
> was created by CVS.)
>
> <delete file="c:/bt/mainline/bundle/bundle.jar"/>
>
(Continue reading)

ext-simon.steiner | 2 Jan 2008 16:59
Picon

RE: sshexec problem

Hi,

Can I get the environment that putty gives in a portable way. Such as calling some commands when logged in to switch.

Am I right in thinking that /etc/profile is not called for sshexec which is the main problem.

Sshexec gives me a TERM=dumb and Putty TERM=xterm.

Thanks

________________________________________
From: ext Martin Gainty [mailto:mgainty <at> hotmail.com] 
Sent: 02 January 2008 15:49
To: Steiner Simon (EXT-Alten/Southwood)
Subject: RE: sshexec problem

http://the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter7.html#i16
 
Putty or (putty link) uses the env variables
PLINK_PROTOCOL to the word ssh
CVS_RSH=\path\to\plink.exe

in effect 
the specified protocol specified is set to SSH (vs SSH2)
CVS_RSH to the path of your plink.exe binary
 
kiitos/
Martin 
______________________________________________
Disclaimer and confidentiality note
(Continue reading)


Gmane