Use the java element.I use it to generate all sorts of stuff, SQL files, XST templates you name it.

 

You can run your templates like this.

 

<middlegen appname="${name}" prefsdir="${src.dir}" gui="${gui}" databaseurl="${database.url}" initialContextFactory="${java.naming.factory.initial}" providerURL="${java.naming.provider.url}" datasourceJNDIName="${name}.database" driver="${database.driver}" username="${database.userid}" password="${database.password}" schema="${database.schema}">

����������� <java name="updatejsp" package="${project-package}.${name}" destination="${build.html.dir}">

��������������� <fileproducer template=”xyz.vm" destination="${build.html.dir} " filename="update{0}.jsp"/>

����������� </java>

������� </middlegen>

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Juliano Gomes
Sent:
Monday, July 05, 2004 11:06 AM
To: [EMAIL PROTECTED]
Subject: [Middlegen-user] Help with overriding a plugin!!!! PLEASE URGENT

 

Hey guys, I need some help here...

 

Well, I have to generate some struts code, but not in the middlegen way, I�m using middlegen to overide some existing plugins, I�ve created my own plugins, they�re form.vm and action.vm

 

So I use fileproducer to change all defaults plugins in middlegen to point to my new ones...

 

The point is, I don�t want middlegen generating all action classes like DELETE, INSERT, NEW... and others... because all these actions I�ve done it to one plugin... ACTION.VM has these methods...

 

So I read my DB and generate my tableNameAction only, I dont wan�t that middle generates for me classes like tableNameDeleteAction and stuff....

 

I tried to substitute files in struts-plugin.jar , but It didn�t work ....

 

Can you members of this list help me out please ?? I have to follow some pattern�s in my job.... I�d be very greatfull...

 

Thank�s a lot people!

 

-------------------------------------------------------------------------------------------------------------
Juliano Zandon� Gomes
IT GoldTower - Desenvolvimento de Sistemas

E-mail:     [EMAIL PROTECTED]
Web Site: http://www.goldtower.com.br
Endere�o: R. Dr. Pamphilo d'Assump��o, n� 511 - Parolin
Phone:    +55 (41) 3022-8117
-------------------------------------------------------------------------------------------------------------
 

<<image001.jpg>>

Reply via email to