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.

2
  • Just curious.. why ? Commented Feb 11, 2015 at 16:41
  • possible duplicate of Encrypt Ant build file Commented Feb 11, 2015 at 18:06

1 Answer 1

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)

Sign up to request clarification or add additional context in comments.

1 Comment

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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.