[jboss-user] [JBoss Seam] - Application path

kauefelipe do-not-reply at jboss.com
Wed Oct 24 07:06:31 EDT 2007


I´m trying to save one file in my app.

I do this:


How can i get the real


  | File arq = new File("test.txt");
  | FileWriter writer;
  | try {
  | 	writer = new FileWriter(arq, true);
  | 	PrintWriter saida = new PrintWriter(writer, true);
  | 	saida.println(texto);
  | 	saida.close();
  | 	writer.close();
  | } catch (IOException e) {
  | 	// TODO Auto-generated catch block
  | 	e.printStackTrace();
  | }
  | 

But this code save my file under .\rhdevstudio\jboss-eap\jboss-as\bin\test.txt

What do i have to do to save this under my app root?
This is the root of app:
rhdevstudio\jboss-eap\jboss-as\server\default\deploy\FolcloreBrasileiro.ear\ (folder)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098246#4098246

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098246




More information about the jboss-user mailing list