You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Alex Egg <eg...@gmail.com> on 2006/06/30 01:55:55 UTC

FixCRLF task: Does it work?

All,

Do any of you have experience using the FixCRLF class in the ant API?

I'm doing a concat using the Concat class and that works fine, but then I go
to set the setEol property of Concat and it doesn't seem to be doing
anything.

       Concat concat..........
        concat.setDestfile(new File(theFile));
        concat.setAppend(true);

        FixCRLF.CrLf crlf=new FixCRLF.CrLf();
        crlf.setValue("crlf");

         concat.addText(theText); //associate it to Concat

        concat.setEol(crlf);

         concat.execute();


This is doing the concat fine, but it just uses LF for line breaks!!! What
am I doing wrong, I want to set it to CRLFs.

Thanks

Re: FixCRLF task: Does it work?

Posted by Antoine Levy-Lambert <an...@gmx.de>.
Hello Alex,

I have no clue concerning this.

If you enter your problem as a bug report on bugzilla, maybe one of us ant committers will have a look at it.

In this case be sure to attach a source file allowing to reproduce the problem.

Regards,

Antoine
-------- Original-Nachricht --------
Datum: Thu, 29 Jun 2006 16:55:55 -0700
Von: Alex Egg <eg...@gmail.com>
An: user@ant.apache.org
Betreff: FixCRLF task: Does it work?

> All,
> 
> Do any of you have experience using the FixCRLF class in the ant API?
> 
> I'm doing a concat using the Concat class and that works fine, but then I
> go
> to set the setEol property of Concat and it doesn't seem to be doing
> anything.
> 
>        Concat concat..........
>         concat.setDestfile(new File(theFile));
>         concat.setAppend(true);
> 
>         FixCRLF.CrLf crlf=new FixCRLF.CrLf();
>         crlf.setValue("crlf");
> 
>          concat.addText(theText); //associate it to Concat
> 
>         concat.setEol(crlf);
> 
>          concat.execute();
> 
> 
> This is doing the concat fine, but it just uses LF for line breaks!!! What
> am I doing wrong, I want to set it to CRLFs.
> 
> Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Ant JSP Compilation Please.

Posted by Steve Loughran <st...@apache.org>.
karthik wrote:
> Hi form
> 
> 
>   I had alook at Tomcat5's Ant build technique for JSP compilation
>   
>   and could not figure how to configure the build.xml for file / folder based compilation
> 
>   Can some body give some ant code snippet  for the following
> 
> 
>   1)Able to compile a single argumented "Jsp" file.
> 
>   2)Able to Compile a single folder Argumented "Jsp" folder.  
> 
>   3)Able to Compile a multiple folder Argumented "Jsp" folder.
> 

I cant help you as I have found precompilation more trouble than it is 
worth, and no longer recommend it.

What I do now instead is use HttpUnit to fetch every single JSP page 
that I have in the app, after deploying it. That combines a functional 
test of the application with the building of the JSP pages in the app 
server that will host them.

-steve

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Ant JSP Compilation Please.

Posted by Steve Loughran <st...@apache.org>.
karthik wrote:
> Hi form
> 
> 
>   I had alook at Tomcat5's Ant build technique for JSP compilation
>   
>   and could not figure how to configure the build.xml for file / folder based compilation
> 
>   Can some body give some ant code snippet  for the following
> 
> 
>   1)Able to compile a single argumented "Jsp" file.
> 
>   2)Able to Compile a single folder Argumented "Jsp" folder.  
> 
>   3)Able to Compile a multiple folder Argumented "Jsp" folder.
> 
> 
> 
> 
> 
> 
> with regards
> Karthik
> 
>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 

Karthik. What was wrong with the suggestions we made earlier, that of 
using httpunit to fetch the deployed pages, combining testing with 
compilation?

-steve

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: Ant JSP Compilation Please.

Posted by karthik <ka...@xius.org>.
Hi form


  I had alook at Tomcat5's Ant build technique for JSP compilation
  
  and could not figure how to configure the build.xml for file / folder based compilation

  Can some body give some ant code snippet  for the following


  1)Able to compile a single argumented "Jsp" file.

  2)Able to Compile a single folder Argumented "Jsp" folder.  

  3)Able to Compile a multiple folder Argumented "Jsp" folder.






with regards
Karthik

  


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Ant JSP Compilation Please.

Posted by karthik <ka...@xius.org>.
Hi form


  I had alook at Tomcat5's Ant build technique for JSP compilation
  
  and could not figure how to configure the build.xml for file / folder based compilation

  Can some body give some ant code snippet  for the following


  1)Able to compile a single argumented "Jsp" file.

  2)Able to Compile a single folder Argumented "Jsp" folder.  

  3)Able to Compile a multiple folder Argumented "Jsp" folder.






with regards
Karthik

  



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org