RE: Custom Ant task parameters not read?

2004-06-03 Thread Göschl,Siegfried
Hi Ian,

What you could try is to start an ANT process instead of an ANT task with Maven

Cheers,

Siegfried Goeschl

-Original Message-
From: Ian Neruda [mailto:[EMAIL PROTECTED] 
Sent: Donnerstag, 03. Juni 2004 14:04
To: [EMAIL PROTECTED]
Subject: Custom Ant task parameters not read?


Hi.

In last week I managed to migrate our ant build
process to ant. One last thing I need to do is code obfuscation. I'm using yguard ant 
task. Obfuscation works but it doesn't receive proper parameters with names of classes 
that must be excluded from obfuscation. Here's example:

goal name=crm:obfuscate 
 ant:taskdef name=yguard classname=com.yworks.yguard.ObfuscatorTask
classpathref=maven.dependency.classpath/
 
 j:if test=${obfuscate != 'false'}
   yguard replaceclassnamestrings=false logfile=${maven.war.build.dir}/yguard.log
 property name=error-checking
value=pedantic/
 property name=language-conformity
value=compatible/
 
 inoutpair in=${maven.war.build.dir}/CRM.jar
out=${maven.war.build.dir}\CRM-obf.jar/
 
 expose 
class classes=private methods=private fields=private
  patternset
include name=hr.sedamit.util.String*/
  /patternset
/class

method class=hr.sedamit.swf.fileupload.FileUploadHandlerFactory
 name=void setFileRepositoryPath(java.lang.String)/
method
class=hr.sedamit.crm.setup.PickerInitializer 
name=void initialize()/
method
class=hr.sedamit.crm.setup.GraphSetup  name=void initialize()/
   
method class=hr.sedamit.swf.taglib.components.filter.FilterUtils
 name=void registerBuilders()/
method
class=hr.sedamit.swf.history.HistoryBrowser 
name=void setExternalDataSource(hr.sedamit.swf.history.HistoryExternalDataSource)/
 /expose 
   /yguard
  /j:if  
/goal


Problem is that whatever parameters I put inside
expose tag, only method tags with classes FilterUtils, PickerInitializer and 
GraphSetup are excluded from obfuscation. I checked it in yguard log, and it says the 
same. When I use exactly same ant task with ant it works OK. It don't think that this 
is maven's fault, but I'm out of ideas.

Thanks, Ian




__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Custom Ant task parameters not read?

2004-06-03 Thread Ian Neruda
Thanks, Sigfried.

How can I start ANT process from maven.xml? 


--- Göschl,Siegfried [EMAIL PROTECTED]
wrote:
 Hi Ian,
 
 What you could try is to start an ANT process
 instead of an ANT task with Maven
 
 Cheers,
 
 Siegfried Goeschl
 
 -Original Message-
 From: Ian Neruda [mailto:[EMAIL PROTECTED] 
 Sent: Donnerstag, 03. Juni 2004 14:04
 To: [EMAIL PROTECTED]
 Subject: Custom Ant task parameters not read?
 
 
 Hi.
 
 In last week I managed to migrate our ant build
 process to ant. One last thing I need to do is code
 obfuscation. I'm using yguard ant task. Obfuscation
 works but it doesn't receive proper parameters with
 names of classes that must be excluded from
 obfuscation. Here's example:
 
 goal name=crm:obfuscate 
  ant:taskdef name=yguard
 classname=com.yworks.yguard.ObfuscatorTask
 classpathref=maven.dependency.classpath/
  
  j:if test=${obfuscate != 'false'}
yguard replaceclassnamestrings=false
 logfile=${maven.war.build.dir}/yguard.log
  property name=error-checking
 value=pedantic/
  property name=language-conformity
 value=compatible/
  
  inoutpair in=${maven.war.build.dir}/CRM.jar
 out=${maven.war.build.dir}\CRM-obf.jar/
  
  expose 
 class classes=private methods=private
 fields=private
   patternset
 include
 name=hr.sedamit.util.String*/
   /patternset
 /class
 
 method

class=hr.sedamit.swf.fileupload.FileUploadHandlerFactory
  name=void
 setFileRepositoryPath(java.lang.String)/
 method
 class=hr.sedamit.crm.setup.PickerInitializer 
 name=void initialize()/
 method
 class=hr.sedamit.crm.setup.GraphSetup  name=void
 initialize()/

 method

class=hr.sedamit.swf.taglib.components.filter.FilterUtils
  name=void registerBuilders()/
 method
 class=hr.sedamit.swf.history.HistoryBrowser 
 name=void

setExternalDataSource(hr.sedamit.swf.history.HistoryExternalDataSource)/
  /expose 
/yguard
   /j:if  
 /goal
 
 
 Problem is that whatever parameters I put inside
 expose tag, only method tags with classes
 FilterUtils, PickerInitializer and GraphSetup are
 excluded from obfuscation. I checked it in yguard
 log, and it says the same. When I use exactly same
 ant task with ant it works OK. It don't think that
 this is maven's fault, but I'm out of ideas.
 
 Thanks, Ian
 
 
   
   
 __
 Do you Yahoo!?
 Friends.  Fun.  Try the all-new Yahoo! Messenger.
 http://messenger.yahoo.com/ 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 





__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Custom Ant task parameters not read?

2004-06-03 Thread Göschl,Siegfried
Hi Ian,

In the Canoo WebTest Plugin I use the following code snippet

java classname=org.apache.tools.ant.Main fork=yes dir=${basedir} 
failonerror=true
  classpath
path refid=webtest.classpath/
  /classpath
  sysproperty key=host value=${maven.webtest.config.host}/
  sysproperty key=port value=${maven.webtest.config.port}/
  sysproperty key=protocol value=${maven.webtest.config.protocol}/
  sysproperty key=basepath value=${maven.webtest.config.basepath}/
  sysproperty key=summary value=${maven.webtest.config.summary}/
  sysproperty key=verbose value=${maven.webtest.config.verbose}/
  sysproperty key=saveresponse 
value=${maven.webtest.config.saveresponse}/
  sysproperty key=resultpath file=${maven.webtest.config.resultpath}/
  sysproperty key=resultfile file=${maven.webtest.config.resultfile}/
  sysproperty key=haltonfailure 
value=${maven.webtest.config.haltonfailure}/
  sysproperty key=haltonerror value=${maven.webtest.config.haltonerror}/
  sysproperty key=showhtmlparseroutput 
value=${maven.webtest.config.showhtmlparseroutput}/
  arg value=${maven.webtest.ant.options}/
  arg value=-f/
  arg value=${testScriptFile}/
  arg value=${maven.webtest.target}/
/java

BTW - I think you should put the obfuscator magic into a Maven plugin ... :-)

Cheers,

Siegfried Goeschl


-Original Message-
From: Ian Neruda [mailto:[EMAIL PROTECTED] 
Sent: Donnerstag, 03. Juni 2004 14:56
To: Maven Users List
Subject: RE: Custom Ant task parameters not read?


Thanks, Sigfried.

How can I start ANT process from maven.xml? 


--- Göschl,Siegfried [EMAIL PROTECTED]
wrote:
 Hi Ian,
 
 What you could try is to start an ANT process
 instead of an ANT task with Maven
 
 Cheers,
 
 Siegfried Goeschl
 
 -Original Message-
 From: Ian Neruda [mailto:[EMAIL PROTECTED]
 Sent: Donnerstag, 03. Juni 2004 14:04
 To: [EMAIL PROTECTED]
 Subject: Custom Ant task parameters not read?
 
 
 Hi.
 
 In last week I managed to migrate our ant build
 process to ant. One last thing I need to do is code obfuscation. I'm 
 using yguard ant task. Obfuscation works but it doesn't receive proper 
 parameters with names of classes that must be excluded from
 obfuscation. Here's example:
 
 goal name=crm:obfuscate
  ant:taskdef name=yguard
 classname=com.yworks.yguard.ObfuscatorTask
 classpathref=maven.dependency.classpath/
  
  j:if test=${obfuscate != 'false'}
yguard replaceclassnamestrings=false 
 logfile=${maven.war.build.dir}/yguard.log
  property name=error-checking
 value=pedantic/
  property name=language-conformity value=compatible/
  
  inoutpair in=${maven.war.build.dir}/CRM.jar
 out=${maven.war.build.dir}\CRM-obf.jar/
  
  expose 
 class classes=private methods=private fields=private
   patternset
 include
 name=hr.sedamit.util.String*/
   /patternset
 /class
 
 method

class=hr.sedamit.swf.fileupload.FileUploadHandlerFactory
  name=void
 setFileRepositoryPath(java.lang.String)/
 method class=hr.sedamit.crm.setup.PickerInitializer
 name=void initialize()/
 method
 class=hr.sedamit.crm.setup.GraphSetup  name=void
 initialize()/

 method

class=hr.sedamit.swf.taglib.components.filter.FilterUtils
  name=void registerBuilders()/
 method
 class=hr.sedamit.swf.history.HistoryBrowser
 name=void

setExternalDataSource(hr.sedamit.swf.history.HistoryExternalDataSource)/
  /expose 
/yguard
   /j:if  
 /goal
 
 
 Problem is that whatever parameters I put inside
 expose tag, only method tags with classes
 FilterUtils, PickerInitializer and GraphSetup are
 excluded from obfuscation. I checked it in yguard
 log, and it says the same. When I use exactly same
 ant task with ant it works OK. It don't think that
 this is maven's fault, but I'm out of ideas.
 
 Thanks, Ian
 
 
   
   
 __
 Do you Yahoo!?
 Friends.  Fun.  Try the all-new Yahoo! Messenger. 
 http://messenger.yahoo.com/
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 





__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]