[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-3087) seam-gen generated build.xml file enforces jboss.home to be set
Jacek Laskowski (JIRA)
jira-events at lists.jboss.org
Sun Jun 8 15:28:48 EDT 2008
[ http://jira.jboss.com/jira/browse/JBSEAM-3087?page=comments#action_12415973 ]
Jacek Laskowski commented on JBSEAM-3087:
-----------------------------------------
I've just finished an article (in Polish) about how to run a sample generated by seam-gen with Apache Geronimo - Uruchomienie projektu seamowego w Eclipse Ganymede z JBoss Tools i Geronimo Eclipse Plugin (http://www.jaceklaskowski.pl/wiki/Uruchomienie_projektu_seamowego_w_Eclipse_Ganymede_z_JBoss_Tools_i_Geronimo_Eclipse_Plugin) and with a couple of changes I could easily deploy it. The change as far as build.xml goes was to add
{code}
geronimo.home = C\:/geronimo
deploy.dir = ${geronimo.home}/deploy
{code}
and add appropriate plan in
{code}
<copy todir="${ear.dir}/META-INF">
<fileset dir="${basedir}/resources/META-INF">
<include name="application.xml" />
<include name="jboss-app.xml" />
<include name="geronimo-application.xml" />
</fileset>
</copy>
{code}
That's all. If jboss.home could be optional and there'd be a way to set what files to include in the META-INF directory of an ear it'd be exactly what I'm after.
> seam-gen generated build.xml file enforces jboss.home to be set
> ---------------------------------------------------------------
>
> Key: JBSEAM-3087
> URL: http://jira.jboss.com/jira/browse/JBSEAM-3087
> Project: Seam
> Issue Type: Bug
> Components: Build
> Affects Versions: 2.0.2.SP1
> Reporter: Jacek Laskowski
>
> When a project is generated with seam-gen build.xml checks whether jboss.home property is set. If it's not the build fails. It should be optional and most JBoss-specific deployment files should be deployed only when JBoss is really used, e.g.
> {code}
> <target name="datasource">
> <fail unless="jboss.home">jboss.home not set</fail>
> <copy todir="${deploy.dir}">
> <fileset dir="${basedir}/resources">
> <include name="${project.name}-${profile}-ds.xml" />
> </fileset>
> </copy>
> </target>
> {code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list