[jboss-jira] [JBoss JIRA] (AS7-4265) cli command to add/remove AS modules
David Jensen (JIRA)
issues at jboss.org
Thu Aug 28 11:22:00 EDT 2014
[ https://issues.jboss.org/browse/AS7-4265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12996544#comment-12996544 ]
David Jensen commented on AS7-4265:
-----------------------------------
This works well for me, however, there's one thing which I had to manually change before it would work:
I have a properties file which needs to be outside the WAR file, but yet accessible by the WAR file. I read the instructions on how to do this using the "modules" approach (https://developer.jboss.org/wiki/HowToPutAnExternalFileInTheClasspath), and so using the CLI module "add" command would be perfect.
This is what I did:
module add --name=com.mycompany.myproject.configuration --resources=myproperties.properties (where the myproperties.properties file is in the same folder where I issue this command)
Everything worked well, except that the module.xml file created looked like this:
<?xml version="1.0" ?>
<module xmlns="urn:jboss:module:1.1" name="com.mycompany.myproject.configuration">
<resources>
<resource-root path="myproperties.properties"/> <!-- THIS IS THE LINE WHICH I NEED CHANGED. -->
</resources>
</module>
But what I need is:
<?xml version="1.0" ?>
<module xmlns="urn:jboss:module:1.1" name="com.mycompany.myproject.configuration">
<resources>
<resource-root path="."/> <!-- THIS IS WHAT I NEED. -->
</resources>
</module>
Otherwise the WAR file can't find the properties file.
How do I do this?
Thanks,
> cli command to add/remove AS modules
> ------------------------------------
>
> Key: AS7-4265
> URL: https://issues.jboss.org/browse/AS7-4265
> Project: Application Server 7
> Issue Type: Task
> Components: CLI
> Reporter: Alexey Loubyansky
> Assignee: Alexey Loubyansky
> Fix For: 7.1.2.Final (EAP)
>
>
> I think it'd be useful to have a command to add modules to the AS which given the jars, dependencies, etc would generate the structure in the modules dir, copy the jars and generate the xml.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the jboss-jira
mailing list