Hi, Martin

The thing is, we need to enable customers to work with us, but we don’t want to 
share the build scripts (I know it’s weird).
So, we want to encrypt the build.xml and give them the encrypted file.

In the build process, we will decrypt build.xml in memory, and if Ant can read 
the content from memory, this should work.

Thanks
Best Regards

From: Martin Gainty <mgai...@hotmail.com<mailto:mgai...@hotmail.com>>
Date: 2015年2月12日 GMT+08003时52分04秒
To: Ant Users List <user@ant.apache.org<mailto:user@ant.apache.org>>
Subject: RE: [Ant]Read buid.xml file in memory
Reply-To: "Ant Users List" <user@ant.apache.org<mailto:user@ant.apache.org>>
Hi Xiao-

supposedly yes ...if you can get your File to extend apache jackrabbit 
MemoryFile
https://jackrabbit.apache.org/api/1.5/index.html?org/apache/jackrabbit/core/fs/mem/MemoryFile.html

I would not rely on any java implementor to guarantee your Java Object will be 
"in memory" vs "on disk"
specifically a java object which implements Serializable will save the object 
to disk by the serializer..
http://www.onjava.com/pub/a/onjava/excerpt/JavaRMI_10/?page=3
(except your objects declared as transient of course)

Did you have a specific requirement in mind for "Memory File" for your 
build.xml ?

BR,
Martin





From: jackie.x...@ebaotech.com<mailto:jackie.x...@ebaotech.com>
To: user@ant.apache.org<mailto:user@ant.apache.org>
Subject: [Ant]Read buid.xml file in memory
Date: Wed, 11 Feb 2015 16:07:11 +0000

Dear List:

Is it possible for Ant to read build files from memory?

If possible, what will be the necessary steps, thanks.
This e-mail and any attachments thereto are intended for the sole use of the 
recipient(s) named above and may contain confidential and/or privileged 
material. Any use of the information contained herein (including, but not 
limited to, total or partial reproduction, communication, or dissemination in 
any form) by persons other than the intended recipient(s) is prohibited. If you 
received this in error, please contact the sender immediately and delete the 
material from any computer.

Reply via email to