You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Rebhan, Gilbert" <Gi...@huk-coburg.de> on 2007/07/04 08:09:52 UTC
Formatter for ant scripts ?
Hi,
i'm searching for a formatter task for ant build scripts.
Something like <Ctrl>+<Shift>+<F> in Eclipse Ant Editor
but as ant task i can feed with own rules, i.e. indention,
4 spaces instead of tabs, remove trailing spaces (after linefeed),
...
I know of the jalopy task, but that seems for java source
only.
As an ant script is xml, there maybe a way via xslt ?!
Any tasks available ?
Regards, Gilbert
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Formatter for ant scripts ?
Posted by Jay Dickon Glanville <di...@gmail.com>.
How you execute it is up to you (<exec> is the norm). I'm not
familiar with JTidy.
On 7/4/07, Rebhan, Gilbert <Gi...@huk-coburg.de> wrote:
>
>
> Hi,
>
> -----Original Message-----
> From: Jay Dickon Glanville [mailto:dickon.glanville@gmail.com]
> Sent: Wednesday, July 04, 2007 12:47 PM
> To: Ant Users List
> Subject: Re: Formatter for ant scripts ?
>
> /*
> Use the HTML Tidy program (http://tidy.sourceforge.net/). It accepts
> XML as input.
> */
>
> you mean tidy via <exec ...> or Jtidy ?
> the last release of Jtidy seems to be rather old (2000)
>
> Regards, Gilbert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
--
Jay Dickon Glanville
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: Formatter for ant scripts ?
Posted by James Oltmans <jo...@bolosystems.com>.
Just to extend this to a more general question. What if the source is a
form of BASIC (or language X) that is non-standard (in my case,
UniBasic) is there a task out there for creating specific formatting
rules or would that need to be developed?
-----Original Message-----
From: Jay Dickon Glanville [mailto:dickon.glanville@gmail.com]
Sent: Wednesday, July 04, 2007 6:38 AM
To: Ant Users List
Subject: Re: Formatter for ant scripts ?
How you execute it is up to you (<exec> is the norm). I'm not
familiar with JTidy.
On 7/4/07, Rebhan, Gilbert <Gi...@huk-coburg.de> wrote:
>
>
> Hi,
>
> -----Original Message-----
> From: Jay Dickon Glanville [mailto:dickon.glanville@gmail.com]
> Sent: Wednesday, July 04, 2007 12:47 PM
> To: Ant Users List
> Subject: Re: Formatter for ant scripts ?
>
> /*
> Use the HTML Tidy program (http://tidy.sourceforge.net/). It accepts
> XML as input.
> */
>
> you mean tidy via <exec ...> or Jtidy ?
> the last release of Jtidy seems to be rather old (2000)
>
> Regards, Gilbert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
--
Jay Dickon Glanville
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: Formatter for ant scripts ?
Posted by "Rebhan, Gilbert" <Gi...@huk-coburg.de>.
Hi,
-----Original Message-----
From: Jay Dickon Glanville [mailto:dickon.glanville@gmail.com]
Sent: Wednesday, July 04, 2007 12:47 PM
To: Ant Users List
Subject: Re: Formatter for ant scripts ?
/*
Use the HTML Tidy program (http://tidy.sourceforge.net/). It accepts
XML as input.
*/
you mean tidy via <exec ...> or Jtidy ?
the last release of Jtidy seems to be rather old (2000)
Regards, Gilbert
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Formatter for ant scripts ?
Posted by Jay Dickon Glanville <di...@gmail.com>.
Use the HTML Tidy program (http://tidy.sourceforge.net/). It accepts
XML as input.
JDG
On 7/4/07, Rebhan, Gilbert <Gi...@huk-coburg.de> wrote:
>
> Hi,
>
> i'm searching for a formatter task for ant build scripts.
> Something like <Ctrl>+<Shift>+<F> in Eclipse Ant Editor
> but as ant task i can feed with own rules, i.e. indention,
> 4 spaces instead of tabs, remove trailing spaces (after linefeed),
> ...
>
> I know of the jalopy task, but that seems for java source
> only.
>
> As an ant script is xml, there maybe a way via xslt ?!
>
> Any tasks available ?
>
>
> Regards, Gilbert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
--
Jay Dickon Glanville
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Formatter for ant scripts ?
Posted by glenn opdycke-hansen <gl...@gmail.com>.
What do you mean by a formatter?
What I notice is missing from XEmacs is that it will not flag if a keyword
is misspelled.
However it will display the file with special fonts and will reindent the
contents.
I usually have the api html page open on one window and the editor with
another.
--glenn
RE: Formatter for ant scripts ?
Posted by "Rebhan, Gilbert" <Gi...@huk-coburg.de>.
Hi,
-----Original Message-----
From: Wayne Cannon [mailto:wcannon@turinnetworks.com]
Sent: Saturday, July 07, 2007 2:37 AM
To: Ant Users List
Subject: Re: Formatter for ant scripts ?
/*
... as does SlickEdit. --Wayne
glenn opdycke-hansen wrote:
> XEmacs/Emacs works nicely for editing and formatting ant xml scripts.
> --glenn
*/
I'm sure there are other good editors for ant, but i'm searching for
a _formatter task_ or similar xslt solution for ant build scripts, not
an editor
as i use eclipse 3.2.2 and i'm happy with it.
Regards, Gilbert
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Formatter for ant scripts ?
Posted by Wayne Cannon <wc...@turinnetworks.com>.
... as does SlickEdit. --Wayne
glenn opdycke-hansen wrote:
> XEmacs/Emacs works nicely for editing and formatting ant xml scripts.
> --glenn
>
> On 7/4/07, Rebhan, Gilbert <Gi...@huk-coburg.de> wrote:
>>
>>
>> Hi,
>>
>> i'm searching for a formatter task for ant build scripts.
>> Something like <Ctrl>+<Shift>+<F> in Eclipse Ant Editor
>> but as ant task i can feed with own rules, i.e. indention,
>> 4 spaces instead of tabs, remove trailing spaces (after linefeed),
>> ...
>>
>> I know of the jalopy task, but that seems for java source
>> only.
>>
>> As an ant script is xml, there maybe a way via xslt ?!
>>
>> Any tasks available ?
>>
>>
>> Regards, Gilbert
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Formatter for ant scripts ?
Posted by glenn opdycke-hansen <gl...@gmail.com>.
XEmacs/Emacs works nicely for editing and formatting ant xml scripts.
--glenn
On 7/4/07, Rebhan, Gilbert <Gi...@huk-coburg.de> wrote:
>
>
> Hi,
>
> i'm searching for a formatter task for ant build scripts.
> Something like <Ctrl>+<Shift>+<F> in Eclipse Ant Editor
> but as ant task i can feed with own rules, i.e. indention,
> 4 spaces instead of tabs, remove trailing spaces (after linefeed),
> ...
>
> I know of the jalopy task, but that seems for java source
> only.
>
> As an ant script is xml, there maybe a way via xslt ?!
>
> Any tasks available ?
>
>
> Regards, Gilbert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>