You need to bind the obfuscation to the package phase of each of your
project and attach the result to the lifecycle with some classifier (see
also the buildhelper plugin). Once you have that, depends on obfuscated jar
in your EAR project.

HTH,
S.

On Thu, Mar 5, 2009 at 6:25 PM, Mohammad Norouzi <[email protected]> wrote:

> Hello
>
> I am having a problem using YGuard as our obfuscator. Our project includes
> several modules and a separate module namely "product" will gather all the
> jar files from the modules and build an EAR file. No we need to tell our
> ant-run-plugin which is responsible for obfuscating the jar files that to
> be
> executed right after the jar files being created and before the ear file is
> built. so the porduct's pom can create an ear file containing obfuscated
> jar
> files.
>
> Please share your experience on this with me.
>
> Thanks in advance
>
>
> Regards,
> Mohammad
> --------------------------
> Sun Certified Web Developer
> ExpertsExchange Certified, Master:
> http://www.experts-exchange.com/M_1938796.html
> Have a look at some pictures @ http://pixelshot.wordpress.com/
> Do you like to read, see http://brainable.blogspot.com/
> For the Persians see http://fekre-motefavet.blogspot.com/
>



-- 
Large Systems Suck: This rule is 100% transitive. If you build one, you
suck" -- S.Yegge

Reply via email to