This content has been marked as final.
Show 3 replies
-
1. Re: Customizing attachment name in parsing deployers
anil.saldhana Mar 18, 2009 2:35 PM (in response to anil.saldhana)I am referring to parsing deployers derived from "AbstractParsingDeployerWithOutput".
/** * Create some meta data. Calls createMetaData(unit, name, suffix, getDeploymentType().getName()). * * @param unit the deployment unit * @param name the name * @param suffix the suffix * @throws DeploymentException for any error */ protected void createMetaData(DeploymentUnit unit, String name, String suffix) throws DeploymentException { createMetaData(unit, name, suffix, getOutput().getName()); }
I had to write a deployer that overrode the create method as follows:public final static String XACML_ATTACHMENT_NAME = "xacml.config"; /** * Method overridden to make the attachment name to be not the same as * the deployment type but a custom name */ @Override protected void createMetaData(DeploymentUnit unit, String name, String suffix) throws DeploymentException { createMetaData(unit, name, suffix, XACML_ATTACHMENT_NAME); }
Maybe a method called as setAttachmentName? -
2. Re: Customizing attachment name in parsing deployers
alesj Mar 18, 2009 3:33 PM (in response to anil.saldhana)I guess that's doable. ;-)
I'll add something.
Can you create a JIRA in JBDEPLOY?