Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

[00:16:18 EDT(-0400)] * apetro-_ (n=apetro@ip24-56-20-55.ph.ph.cox.net) has joined ##uportal
[03:06:43 EDT(-0400)] * apetro-_ (n=apetro@ip24-56-20-55.ph.ph.cox.net) has joined ##uportal
[03:54:45 EDT(-0400)] * mad (n=chatzill@pcit-8752.HIG.SE) has joined ##uportal
[08:57:29 EDT(-0400)] * athena7 (n=athena7@adsl-99-149-83-32.dsl.wlfrct.sbcglobal.net) has joined ##uportal
[09:32:47 EDT(-0400)] * EricDalquist (n=dalquist@bohemia.doit.wisc.edu) has joined ##uportal
[09:32:56 EDT(-0400)] <athena7> hey eric
[09:34:04 EDT(-0400)] <EricDalquist> morning
[09:34:17 EDT(-0400)] <athena7> how're you?
[09:34:40 EDT(-0400)] <EricDalquist> overwhelmed (smile) how about you?
[09:35:29 EDT(-0400)] <athena7> a bit the same actually (smile)
[09:36:49 EDT(-0400)] <athena7> however, i got some build filtering working over the weekend
[09:37:16 EDT(-0400)] <athena7> turns out if you combine the pluto plugin with the war plugin you can get both filtering and pluto-ization of the web.xml
[09:37:39 EDT(-0400)] <athena7> so i wound up having to use a combination of the plugins in different places
[09:38:11 EDT(-0400)] <athena7> but i wound up at the end with something that you can build different environments by just running commands (ant or maven) with -Denvironment.name=something
[09:39:35 EDT(-0400)] <EricDalquist> nice
[09:41:02 EDT(-0400)] <athena7> i dunno, it's kind of nice to just change the database info in one place and have it automatically get changed in the portal and all the portlets
[09:41:42 EDT(-0400)] <athena7> the only thing that i didn't get filtered is the database dependency in the main pom.xml - right now you'd still have to change that
[09:41:56 EDT(-0400)] <EricDalquist> the JDBC driver?
[09:43:01 EDT(-0400)] <athena7> yeah
[09:43:20 EDT(-0400)] <athena7> you could override it with -Dproperty=value on the maven build
[09:43:21 EDT(-0400)] <EricDalquist> ah yeah, that would be harder since that needs to be in the pom and they can't filter themselves
[09:43:25 EDT(-0400)] <EricDalquist> yup
[09:43:49 EDT(-0400)] <athena7> but i couldn't figure out how to set up the build.xml to look for that parameter and only pass it if it's been specified
[09:43:58 EDT(-0400)] <EricDalquist> heh
[09:44:04 EDT(-0400)] <EricDalquist> that is rather hard in ant
[09:44:05 EDT(-0400)] <athena7> i mean i guess i could just duplicate the default information in the build.xml, but that seems kind of icky
[09:44:06 EDT(-0400)] <athena7> yeah
[09:44:18 EDT(-0400)] <athena7> i don't know of a way to pass parameters conditionally
[09:44:34 EDT(-0400)] <athena7> i mean i guess you could set it instead to something meaningless -Dpretend=parameter
[09:44:37 EDT(-0400)] <athena7> but that's kind of silly
[09:44:42 EDT(-0400)] <EricDalquist> so you're trying to get the JDBC driver artifact info into other poms?
[09:44:45 EDT(-0400)] <EricDalquist> or something else
[09:44:57 EDT(-0400)] <EricDalquist> that's what some of the ant targets do right now
[09:44:57 EDT(-0400)] <athena7> just the main pom
[09:45:16 EDT(-0400)] <athena7> oh i wondered about that - is that was the -Djasig parameter is?
[09:45:16 EDT(-0400)] <EricDalquist> do you really change the JDBC driver often enough to need to do that?
[09:45:27 EDT(-0400)] <athena7> probably not
[09:45:27 EDT(-0400)] <EricDalquist> yeah I think so
[09:45:57 EDT(-0400)] <athena7> it would help the systems folks and the continuous build probably to not have to make any changes, but i'm sure this is a small enough change that it wouldn't be unreasonable to just script it
[09:46:24 EDT(-0400)] <athena7> i have all the database-enabled portlets excluding hsql as a dependency, then picking up the jdbc dependency from the main pom
[09:46:28 EDT(-0400)] <EricDalquist> ah so you do have different JDBC drivers for one 'project' depending on the environment?
[09:48:11 EDT(-0400)] <athena7> right, i think we'd leave the default as hsql
[09:48:25 EDT(-0400)] <athena7> and then set the properties for dev and production as not-hsql
[09:48:46 EDT(-0400)] <athena7> but i guess if the existing build does use some pretend properties maybe i'll just do that (smile)
[09:48:48 EDT(-0400)] <athena7> i mean, it shoudl work
[09:49:05 EDT(-0400)] <athena7> you probably wouldn't want to specify all that on the command line, but you could set up a profile to use
[09:49:32 EDT(-0400)] <EricDalquist> yeah, local vs dev/prod profiles would probably be the way to go
[09:50:04 EDT(-0400)] <athena7> yeah
[09:50:17 EDT(-0400)] <athena7> it all seems to work pretty well so far, but i'll have to get some other people to test it

  • No labels