Ron Wheeler | 1 Dec 2006 02:10

Re: Ant scripts and the Eclipse build process

A bit more detail might get some useful help.
An Eclipse buld is an Ant script.
Ant works fine in Eclipse but that does not solve your problem.

kindsol wrote:
> Hi All,
>
> Probably a dumb question, but I have searched and cannot find an 
> answer -- I am not sure if this is an Eclipse question or and Ant 
> question.
>
> I have a working Eclipse project that builds correctly.  I also have 
> an ant script that works from the command-line.
> I want to add the ant script as one step in my build process.  
> However, I am attempting to do this with an Eclipse "builder" and the 
> script will not run correctly.
>
What does it do or not do?
What does the script look like?

> Can anyone point me to information on how to include an ANT script as 
> part of my build process in Eclipse.
>
> Thanks for your time.
> Sorry if this is off topic.
>
> -Sol
>
>
> ---------------------------------------------------------------------
(Continue reading)

Ron Wheeler | 1 Dec 2006 04:28

javac task with -Xlint

How does one get ant to run the Java 1.6 compiler with the -Xlint 
argument in Eclipse?

I am using Eclipse with 1.6.5

Ron
Pritesh Saharey | 1 Dec 2006 04:54

RE: Changing Date format


I had the following library in my path

bsf.jar (2.4.0)
commons-logging-1.1.jar
commons-logging-adapters-1.1.jar
Js.jar

Still I am getting the following error message:
//-------
chg-date:
[dateConvert] Dec 1, 2006 9:16:45 AM org.apache.bsf.BSFManager exec
[dateConvert] SEVERE: Exception :
[dateConvert] java.security.PrivilegedActionException:
org.apache.bsf.BSFException: JavaScript Error: syntax error
(scriptdef_dateConvert#4)
[dateConvert]   at java.security.AccessController.doPrivileged(Native
Method)
[dateConvert]   at org.apache.bsf.BSFManager.exec(BSFManager.java:491)
[dateConvert]   at
org.apache.tools.ant.util.ScriptRunner.executeScript(ScriptRunner.java:128)
[dateConvert]   at
org.apache.tools.ant.taskdefs.optional.script.ScriptDef.executeScript(Script
Def.java:317)
[dateConvert]   at
org.apache.tools.ant.taskdefs.optional.script.ScriptDefBase.execute(ScriptDe
fBase.java:47)
[dateConvert]   at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[dateConvert]   at org.apache.tools.ant.Task.perform(Task.java:364)
(Continue reading)

Jacob Kjome | 1 Dec 2006 06:18
Favicon

please update the next release of Ant 1.7 to Xerces 2.9.0


I saw that one of the release notes for Ant-1.7.0RC1 was...

"Upgraded XML API and parser to Xerces 2.8.1"

You may be interested to know that Xerces has now released version 
2.9.0 [1] and, along with it, a proper official release of 
xml-commons-external-1.3.04 (otherwise known as xml-apis-1.3.04) 
[2].  A number of bug fixes and features were implemented as 
well.  Also note that as of Xerces 2.9.0, there is now a shared 
serializer library and the Xerces native serializers have been 
deprecated.  When serializer.jar (shipped with both Xerces2 and the 
next version of Xalan) is in the classpath, this new shared 
serialization framework will be used instead of the deprecated Xerces 
framework.  There's also a new release of xml-commons-resolver-1.2 
[3] which includes a number of features and bug fixes.  I don't think 
Ant specifically uses that one, but I thought I'd mention it just in case.

I hope that Xerces-2.9.0, xml-apis-1.3.04, and the new serializer jar 
(2.7.1, according the MANIFEST.MF, I guess to match the next version 
of Xalan?) can make it into Ant before the official 1.7.0 release.

Jake

[1] http://xerces.apache.org/xerces2-j/releases.html
[2] 
http://xml.apache.org/commons/changes.html#version_xml-commons-external-1.3.04
[3] http://xml.apache.org/commons/changes.html#version_xml-commons-resolver-1.2
Dharmesh Vyas | 1 Dec 2006 06:45
Picon

Re: [help] Search a string in a file

We have multiple solutions here now. :) . Thanks a lot for all your
suggestions.

- Dharmesh Vyas.

On 11/30/06, Patrick Martin <antuser <at> gmail.com> wrote:
>
> Replying to my own email, using antcount (http://antcount.sourceforge.net/
> ):
>
> <scan>
>        <fileset file="a.txt" />
>        <filterchain>
>                <tokenfilter>
>                        <countfilter property="number.of.rebuild.all"
>                                     match="Rebuild All: (\d+) failed,
> (\d+) skipped">
>                                <sum property="failed" select="\1"/>
>                                <sum property="skipped" select="\2"/>
>                        </countfilter>
>                </tokenfilter>
>        </filterchain>
> </scan>
> <echo>
> Number of Rebuild All: ${number.of.rebuild.all}
> Failed : ${failed}
> Skipped : ${skipped}
> </echo>
>
> with the following content in a.txt:
(Continue reading)

Steve Loughran | 1 Dec 2006 11:18
Picon
Favicon

Re: please update the next release of Ant 1.7 to Xerces 2.9.0

Jacob Kjome wrote:
> 
> I saw that one of the release notes for Ant-1.7.0RC1 was...
> 
> "Upgraded XML API and parser to Xerces 2.8.1"
> 
> You may be interested to know that Xerces has now released version 2.9.0 
> [1] and, along with it, a proper official release of 
> xml-commons-external-1.3.04 (otherwise known as xml-apis-1.3.04) [2].  A 
> number of bug fixes and features were implemented as well.  Also note 
> that as of Xerces 2.9.0, there is now a shared serializer library and 
> the Xerces native serializers have been deprecated.  When serializer.jar 
> (shipped with both Xerces2 and the next version of Xalan) is in the 
> classpath, this new shared serialization framework will be used instead 
> of the deprecated Xerces framework.  There's also a new release of 
> xml-commons-resolver-1.2 [3] which includes a number of features and bug 
> fixes.  I don't think Ant specifically uses that one, but I thought I'd 
> mention it just in case.
> 
> I hope that Xerces-2.9.0, xml-apis-1.3.04, and the new serializer jar 
> (2.7.1, according the MANIFEST.MF, I guess to match the next version of 
> Xalan?) can make it into Ant before the official 1.7.0 release.
> 
> Jake

Jake, are you part of the Xerces team?

We can do this, but we like the stuff in the ibiblio.org repository to 
be in sync, if possible, and that's not been the case for the last few 
releases
(Continue reading)

Grimm, Markus | 1 Dec 2006 11:32
Picon

Problem with maverick-ant / SFTP and RegEx in filesets

Hi,

I used maverick-ant to delete some files on a remote-system like this:

<sftp action="delete" remotedir="path_to_files"
    <fileset>
        <include name="*.jar"/>
    </fileset>
</sftp>

If  I start the script from my local IDE (Eclipse/Windows-System!)
delete files on a Linux-machine and everything works fine.
If I start the same script from a Unix/Linux-System deleting some files
from another Linux-machine, no files are found. Nothing is deleted.
A shell-sftp from one to another works with wildcard-matching.

BUT when I use filelist everything works on both machines:

<sftp action="delete" remotedir="path_to_files"
    <filelist dir="." files="konkret.jar" />
</sftp>

Someone any idea what could be the reason?

Thankx
Markus

Michael Giroux | 1 Dec 2006 14:07
Picon

Re: please update the next release of Ant 1.7 to Xerces 2.9.0

On 12/1/06, Steve Loughran <stevel <at> apache.org> wrote:
> Jacob Kjome wrote:

I'm not Jake, and I'm not part of Xerces team, but I did find Xerces
2.9.0 at ibiblio.org.  It was on their mirror ftp server. Is that the
"repository"?

Michael Giroux

> Jake, are you part of the Xerces team?
>
> We can do this, but we like the stuff in the ibiblio.org repository to
> be in sync, if possible, and that's not been the case for the last few
> releases
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe <at> ant.apache.org
> For additional commands, e-mail: user-help <at> ant.apache.org
>
>
Michael Giroux | 1 Dec 2006 14:15
Picon

Need information about using Eclipse AntRunner

I have an ANT script that includes a <junitreport> task.  The
<junitreport> task uses an XSLT to transform junit reports (xml files)
into HTML.  The xslt uses string extensions to convert newline
characters into <br> tags.

When the script is executed using the Eclipse AntRunner (eclipse
3.2.1), it appears that the extension library for strings is not
found, and the generated HTML does not get the desired <br> tags.
Worse, this happens silently, so I have no evidence that this is
actually the case, or if the string extensions are broken.

I suspect that the extension library is not being included in the
classpath, but not sure how to prove that.

If anyone has successfully used Eclipse AntRunner with <junitreport>
or any other task that needs extension libraries, can you tell me if
there is any additional configuration requirements to make this work?

FWIW, I asked this on the eclipse newsgroup and have not seen an
answer, so I'm guessing that nobody over there knows the answer.  I
was hoping that someone with ANT expertise was also familiar with
Eclipse AntRunner and might help here.

Thanks
Steve Loughran | 1 Dec 2006 15:08
Picon
Favicon

Re: Need information about using Eclipse AntRunner

Michael Giroux wrote:
> I have an ANT script that includes a <junitreport> task.  The
> <junitreport> task uses an XSLT to transform junit reports (xml files)
> into HTML.  The xslt uses string extensions to convert newline
> characters into <br> tags.
> 
> When the script is executed using the Eclipse AntRunner (eclipse
> 3.2.1), it appears that the extension library for strings is not
> found, and the generated HTML does not get the desired <br> tags.
> Worse, this happens silently, so I have no evidence that this is
> actually the case, or if the string extensions are broken.
> 
> I suspect that the extension library is not being included in the
> classpath, but not sure how to prove that.
> 
> If anyone has successfully used Eclipse AntRunner with <junitreport>
> or any other task that needs extension libraries, can you tell me if
> there is any additional configuration requirements to make this work?
> 
> FWIW, I asked this on the eclipse newsgroup and have not seen an
> answer, so I'm guessing that nobody over there knows the answer.  I
> was hoping that someone with ANT expertise was also familiar with
> Eclipse AntRunner and might help here.
> 

Could be they are using a different XSLT engine than xerces, even if 
xerces is on the classpath. All those java endorsed directories and 
things...

Gmane