0

Is it possible for Ant to read "build.xml" from memory?

The thing is, we need to read encrypted build.xml from disk, decrypt it in memory (without writing to disk), and pass the decrypted content in memory to Ant, so that Ant can start the build.

Any suggestions or code snippets would be appreciated.

foolhunger
  • 345
  • 2
  • 12

1 Answers1

0

Ant documentation has an example for creating target and running it.

Since you cannot create temporary file, one option to parse the file, re-create the project structure (just like ProjectHelper doing from a file)

Jayan
  • 18,003
  • 15
  • 89
  • 143
  • it's a little bit too vague, i'm digging into the source code also, and don't know how to pass the content in memory to "Project". If possible, please also show the working code. – foolhunger Feb 11 '15 at 17:29