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 59 Next »

[09:08:44 EDT(-0400)] * esm (n=esm@clue.mse.jhu.edu) has joined ##uportal
[10:13:58 EDT(-0400)] * EricDalquist (n=dalquist@bohemia.doit.wisc.edu) has joined ##uportal
[10:31:23 EDT(-0400)] <esm> ok easter egg of the day
[10:31:29 EDT(-0400)] <esm> go to google maps
[10:31:38 EDT(-0400)] <EricDalquist> ok
[10:31:43 EDT(-0400)] <esm> and get directions from New York, NY to London England
[10:31:47 EDT(-0400)] <EricDalquist> ah yeah
[10:31:48 EDT(-0400)] <esm> and look at #23
[10:31:50 EDT(-0400)] <EricDalquist> saw that a while ago
[10:31:51 EDT(-0400)] <esm> ahah oh
[10:31:55 EDT(-0400)] <EricDalquist> pretty funny (smile)
[10:31:56 EDT(-0400)] * esm cries
[10:32:06 EDT(-0400)] <EricDalquist> they have too much time for edge cases
[10:32:13 EDT(-0400)] <esm> i'd never seen it
[10:32:17 EDT(-0400)] <esm> yeah exactly
[10:32:27 EDT(-0400)] <esm> that's what google engineers spend their 20% free time on
[10:33:08 EDT(-0400)] <esm> the assembly plugin is the most frustrating plugin to work with
[10:33:08 EDT(-0400)] <EricDalquist> (smile)
[10:55:47 EDT(-0400)] <EricDalquist> still having issues with it?
[11:01:16 EDT(-0400)] <esm> well, lets just say i've accepted its limitations and moved on.
[11:01:29 EDT(-0400)] <esm> so yes, I have issues with it, but its not holding me up
[11:02:07 EDT(-0400)] <esm> one of the limitations, however, is that when you activate the assembly profile, the Maven lifecycle is executed twice. Which means that making the assemblys just takes a little longer than they should.
[11:02:21 EDT(-0400)] <esm> I can see why david did what he did with pluto
[11:02:58 EDT(-0400)] <esm> Apparently some of these issues, like the lifecycle issue, will be corrected with Maven 2.1.
[11:03:08 EDT(-0400)] <esm> A Maven 2.1 alpha is due out this month i think.
[11:03:26 EDT(-0400)] <EricDalquist> I think we can deal with the slowness for now
[11:03:33 EDT(-0400)] <EricDalquist> we won't be doing assemblies that often
[11:03:38 EDT(-0400)] <esm> yeah, it takes 3 minutes on my work machine.
[11:03:43 EDT(-0400)] <esm> not a biggie
[11:03:57 EDT(-0400)] <esm> i'm getting ready to commit
[11:04:23 EDT(-0400)] <esm> final testing now - but could you test it on windows for me when you get a chance? (after I commit it)
[11:05:12 EDT(-0400)] <EricDalquist> sure
[11:47:29 EDT(-0400)] <esm> EricDalquist: I just committed and updated docs at http://www.ja-sig.org/wiki/display/UP3/uPortal3+Maven+2+Distributions
[11:47:48 EDT(-0400)] <esm> so if you get a chance could you try it out and provide feedback/suggest changes?
[11:48:47 EDT(-0400)] <esm> I have to put my sysadmin hat back on for a while so I won't be paying too much attention to IRC for this afternoon but I will read scrollback etc and check in late afternoon
[11:55:57 EDT(-0400)] <EricDalquist> ok
[12:17:01 EDT(-0400)] * lescour (n=JBouncer@adsl-38-10-98.tulsaconnect.com) has joined ##uportal
[12:25:30 EDT(-0400)] <EricDalquist> so the hsql start failed on windows
[12:25:53 EDT(-0400)] <EricDalquist> I'm going to try changing the start to a <java> call that just bypasses the os specific shell scripts
[12:26:04 EDT(-0400)] <esm> sounds good
[12:26:31 EDT(-0400)] <EricDalquist> I'll be heading out for lunch in a few so I'll probably have the next report once I get back from that
[12:49:31 EDT(-0400)] * jayshao (n=jayshao@wg-206-hill012.rutgers.edu) has joined ##uportal
[14:13:02 EDT(-0400)] * pberry (n=pberry@waldorf.CSUChico.EDU) has joined ##uportal
[14:14:22 EDT(-0400)] * pberry punches Oracle Thin Driver in the neck
[14:22:16 EDT(-0400)] * esm <3 zfs
[14:28:54 EDT(-0400)] * EricDalquist agrees with pberry
[14:29:28 EDT(-0400)] <pberry> haven't switched our pooling over yet
[14:29:54 EDT(-0400)] <pberry> so, of course the db we're pulling some additional info is returning a null url
[14:32:00 EDT(-0400)] * lescour pretends oracle has already gone out of business
[14:34:14 EDT(-0400)] <EricDalquist> hey esm
[14:34:20 EDT(-0400)] <EricDalquist> I'm not having much luck with the assembly stuff
[14:35:55 EDT(-0400)] <esm> EricDalquist: ok in what way? releated specifically to hsql?
[14:36:02 EDT(-0400)] <esm> or just issues in general?
[14:36:47 EDT(-0400)] <EricDalquist> I fixed the hsql issue
[14:37:12 EDT(-0400)] <EricDalquist> I don't get a target directory in the root project at all
[14:37:41 EDT(-0400)] <esm> what command are you running?
[14:37:55 EDT(-0400)] <EricDalquist> let me try a clean and re-run and see what I get
[14:38:05 EDT(-0400)] <EricDalquist> mvn -U -Passembly,make-assemblies install assembly:assembly
[14:38:28 EDT(-0400)] <EricDalquist> well the -U was just once because I was getting an error about an unsupported element in an assembly xml file
[14:38:32 EDT(-0400)] <esm> ok
[14:40:05 EDT(-0400)] <esm> i haven't tried it 1) on windows 2) with a clean repo. I'll try to get an account on one of our central IT's windows machines and give it another go. If there's no target directory, then that means that the assembly plugin may not even be running (I don't know at what point exactly the target directory is created).
[14:40:23 EDT(-0400)] <EricDalquist> ok
[14:40:37 EDT(-0400)] <EricDalquist> I can dump all the output to a file if you
[14:40:40 EDT(-0400)] <EricDalquist> 'd like ...
[14:40:41 EDT(-0400)] <esm> do you ahve tail end of the output you can put on rafb.net/paste
[14:40:44 EDT(-0400)] <esm> oh, that works too
[14:40:47 EDT(-0400)] <esm> could you do
[14:40:48 EDT(-0400)] <esm> a
[14:40:49 EDT(-0400)] <pberry> is this like "real" assembly
[14:41:02 EDT(-0400)] <EricDalquist> mov a b?
[14:41:08 EDT(-0400)] <pberry> ya
[14:41:09 EDT(-0400)] <esm> eax
[14:41:30 EDT(-0400)] <esm> EricDalquist: yeah full output would be great
[14:41:33 EDT(-0400)] <EricDalquist> k
[14:41:43 EDT(-0400)] * pberry shudders at the thought of jumps and registers
[14:41:44 EDT(-0400)] <EricDalquist> running and redirecting everything to a file
[14:41:47 EDT(-0400)] <esm> my im client stinks and the firewall is aweful so you can just directly email it to me - emetsger@jhu.edu
[14:41:48 EDT(-0400)] <esm> yeah
[14:43:52 EDT(-0400)] <esm> in confluence is there anyway to save a draft of a page without publishing it?
[14:44:06 EDT(-0400)] <esm> i don't see any
[14:44:13 EDT(-0400)] <esm> but i thought i'd ask
[14:44:16 EDT(-0400)] <EricDalquist> ok, I'll email it
[14:44:25 EDT(-0400)] <EricDalquist> I don't think so on the confluence question
[14:49:13 EDT(-0400)] <esm> ok i'm trying out on a windows machine now
[14:50:38 EDT(-0400)] <esm> is port 8887 available on your machine?
[14:54:07 EDT(-0400)] <EricDalquist> yeah
[14:54:16 EDT(-0400)] <EricDalquist> btw
[14:54:19 EDT(-0400)] <esm> k. the windows box is still d/l dependencies.
[14:54:20 EDT(-0400)] <EricDalquist> this is my start-hsql
[14:54:22 EDT(-0400)] <EricDalquist> <target name="start-hsql">
[14:54:23 EDT(-0400)]

<EricDalquist> <java fork="true" spawn="true" maxmemory="64M" dir="$

Unknown macro: {unpack-temp-dir}

/$

Unknown macro: {hsql}

" classname="org.hsqldb.Server">


[14:54:23 EDT(-0400)] <EricDalquist> <classpath>
[14:54:23 EDT(-0400)]

<EricDalquist> <pathelement path="$

Unknown macro: {unpack-temp-dir}

/$

Unknown macro: {hsql}

/lib/hsqldb.jar" />


[14:54:23 EDT(-0400)] <EricDalquist> </classpath>
[14:54:24 EDT(-0400)]

<EricDalquist> <arg value="$

Unknown macro: {basedir}

/data/$

Unknown macro: {uPortalDb}

" />


[14:54:26 EDT(-0400)] <EricDalquist> <arg value="-port" />
[14:54:28 EDT(-0400)] <EricDalquist> <arg value="8887" />
[14:54:30 EDT(-0400)] <EricDalquist> </java>
[14:54:32 EDT(-0400)] <EricDalquist> </target>
[14:54:49 EDT(-0400)] <esm> ok thanks eric
[14:55:03 EDT(-0400)] <EricDalquist> just emailed you my output
[14:55:05 EDT(-0400)] <esm> freakin jta
[14:55:06 EDT(-0400)] <esm> thanks
[14:55:07 EDT(-0400)] <EricDalquist> I have a meeting to run to though
[14:55:12 EDT(-0400)] <esm> np
[14:55:15 EDT(-0400)] <EricDalquist> I'll be back in ~ 45 minutes
[14:55:17 EDT(-0400)] <esm> thanks for your help
[15:01:04 EDT(-0400)] * jayshao (n=jayshao@jshao.rutgers.edu) has joined ##uportal
[16:05:02 EDT(-0400)] <EricDalquist> any luck esm?
[16:05:48 EDT(-0400)] <esm> that particular issue is that your connection to the url to download tomcat timed out.
[16:05:56 EDT(-0400)] <EricDalquist> ah
[16:06:00 EDT(-0400)] <EricDalquist> weird
[16:06:09 EDT(-0400)] <EricDalquist> brb again ...
[16:06:10 EDT(-0400)] <esm> but i'm still working on getting this to build on windows
[16:06:11 EDT(-0400)] <esm> np
[16:08:47 EDT(-0400)] <EricDalquist> back
[16:09:06 EDT(-0400)] <EricDalquist> anything I can help with?
[16:10:13 EDT(-0400)] <esm> URL baseTestCaseDirUrl = this.getClass().getResource(TESTCASES);
[16:10:13 EDT(-0400)] <esm> File baseDir = new File(baseTestCaseDirUrl.getFile());
[16:10:13 EDT(-0400)] <esm> assertTrue(baseDir.toString() + " should already exist.", baseDir.exists());
[16:10:40 EDT(-0400)] <esm> that fails when executed from a subdirectory that contains spaces
[16:10:57 EDT(-0400)] <esm> TESTCASES = "/assembler-testcases/webAppWars";
[16:11:24 EDT(-0400)] <EricDalquist> thats not cool
[16:11:31 EDT(-0400)] <EricDalquist> do you need the File
[16:11:39 EDT(-0400)] <EricDalquist> or can you do getResourceAsStream ?
[16:11:49 EDT(-0400)] <esm> http://rafb.net/p/z4ZSiM17.html
[16:11:58 EDT(-0400)] <esm> i might be able to do resource as stream
[16:12:00 EDT(-0400)] <esm> i'm not sure
[16:12:07 EDT(-0400)] <esm> the jvm is bea jrockit
[16:12:16 EDT(-0400)] <EricDalquist> hrm
[16:12:17 EDT(-0400)] <esm> on linux with a directory with spaces, no problem
[16:12:20 EDT(-0400)] <esm> sun jvm
[16:12:25 EDT(-0400)] <EricDalquist> actually you do need the file
[16:12:29 EDT(-0400)] <EricDalquist> since you need .exists()
[16:12:32 EDT(-0400)] <esm> yeah
[16:12:36 EDT(-0400)] <EricDalquist> yeah that sounds like a jvm bug (tongue)
[16:12:41 EDT(-0400)] <esm> well i can refacor the test if i have to
[16:12:52 EDT(-0400)] <esm> well, I think the people don't realize they are using the BEA JVM (smile)
[16:12:56 EDT(-0400)] <EricDalquist> let me try my run again
[16:12:59 EDT(-0400)] <esm> j
[16:13:00 EDT(-0400)] <esm> er
[16:13:00 EDT(-0400)] <esm> k
[16:13:13 EDT(-0400)] <esm> if there is a better spot to put the tomcat download url then i'm all for it
[16:13:27 EDT(-0400)] <esm> i really did consider whippiing otu amaven plugin
[16:13:30 EDT(-0400)] <esm> which i may still do
[16:13:36 EDT(-0400)] <esm> but at least we will get this done fo rnow
[16:13:37 EDT(-0400)] <esm> for now
[16:19:40 EDT(-0400)] <EricDalquist> hrm still no luck
[16:19:54 EDT(-0400)] <EricDalquist> my download sections all look like:
[16:19:54 EDT(-0400)] <EricDalquist> download:
[16:19:55 EDT(-0400)] <EricDalquist> [get] Getting: http://apache.hoxt.com/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23.zip
[16:19:55 EDT(-0400)] <EricDalquist> [get] To: C:\JavaClasses\workspace\uPortal_3.0.0-mvn-refactor\assembly\download\apache-tomcat-5.5.23.zip
[16:19:55 EDT(-0400)] <EricDalquist> [get] local file date : Thu Mar 08 15:15:36 CST 2007
[16:19:55 EDT(-0400)] <EricDalquist> [get] Not modified - so not downloaded
[16:20:21 EDT(-0400)] <EricDalquist> I can't even find the HSQL .script/.log for the initialized db
[16:20:32 EDT(-0400)] <EricDalquist> even though I see it run successfully in the command output
[16:20:37 EDT(-0400)] <esm> hrm.
[16:21:05 EDT(-0400)] <esm> after dealing with the unit test problem i had, i just built it.
[16:21:06 EDT(-0400)] <esm> hm
[16:21:19 EDT(-0400)] <esm> great.
[16:21:22 EDT(-0400)] <esm> this bodes well
[16:21:29 EDT(-0400)] <EricDalquist> (smile)
[16:22:06 EDT(-0400)] <EricDalquist> the ant 'init' target seems to be run multiple times
[16:22:22 EDT(-0400)] <EricDalquist> is that that the lifecycle repition problem you were talking about?
[16:22:33 EDT(-0400)] <esm> yeah. everything runs multiple times
[16:22:35 EDT(-0400)] <esm> it really bugs me
[16:22:50 EDT(-0400)] <EricDalquist> could you walk me through what the download:
[16:22:50 EDT(-0400)] <EricDalquist> [get] Getting: http://apache.hoxt.com/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23.zip
[16:22:50 EDT(-0400)] <EricDalquist> [get] To: C:\JavaClasses\workspace\uPortal_3.0.0-mvn-refactor\assembly\download\apache-tomcat-5.5.23.zip
[16:22:51 EDT(-0400)] <EricDalquist> [get] local file date : Thu Mar 08 15:15:36 CST 2007
[16:22:51 EDT(-0400)] <EricDalquist> [get] Not modified - so not downloaded
[16:22:53 EDT(-0400)] <EricDalquist> oops
[16:22:58 EDT(-0400)] <EricDalquist> wrong thing in clipboard
[16:23:18 EDT(-0400)] <esm> so - and i'm workign on wiki documentation but i don't want to post it until we know something works
[16:23:20 EDT(-0400)] <EricDalquist> could you walk me through what the 'mvn -Passembly,make-assemblies install assembly:assembly' command does and what config/script files it is using?
[16:23:27 EDT(-0400)] <esm> sure
[16:23:29 EDT(-0400)] <EricDalquist> that may help me
[16:24:16 EDT(-0400)] <esm> -Passembly,make-assemblies activates two Maven profiles, which contain plugin configurations for performing the assembly
[16:24:55 EDT(-0400)] <EricDalquist> ok
[16:25:14 EDT(-0400)] <esm> because of a bug (supposedly, I haven't seen the jira, it is just loosely documented on the assembly plugin website), you have to run the package phase prior to calling assembly:assembly
[16:25:42 EDT(-0400)] <EricDalquist> ok
[16:25:46 EDT(-0400)] <esm> running 'install' covers that.
[16:25:50 EDT(-0400)] <EricDalquist> yup
[16:26:40 EDT(-0400)] <esm> so in the build-assemblies profile
[16:26:49 EDT(-0400)] <esm> well let me back up
[16:27:48 EDT(-0400)] <esm> so we run install, which counts for one lifecycle run - which activates all the plugins in the assembly, make-assemblies profiles.
[16:28:00 EDT(-0400)] <esm> activating the profiles adds the assembly module
[16:28:20 EDT(-0400)] <esm> and activates the ant-run-plugin.
[16:28:57 EDT(-0400)] <EricDalquist> ok
[16:29:27 EDT(-0400)] <esm> the ant-run-plugin runs during the 'generate-sources' phase, and it is responsible for downloading tomcat, downloading hsql, unpacking them, configuring them (updatind server.xml, initting the db), assembling the bundled portlets.
[16:29:49 EDT(-0400)] <EricDalquist> ok
[16:32:05 EDT(-0400)] <esm> the assembly:assembly goal executes the package phase (including its predecessors - generate-sources), and then appends itself to the tail end of the phase. It uses the "assembly descriptors" in assembly/src/main/assembly and the temporary directorys (created with antrun in generate-sources) to package up the distributions.
[16:32:27 EDT(-0400)] <EricDalquist> ok
[16:32:51 EDT(-0400)] <esm> so mvn -Passembly,make-assemblies install assembly:assembly executes the maven lifecycle at least twice.
[16:32:58 EDT(-0400)] <EricDalquist> so we run everything twice because of the install (with the profiles enabled) and then the assembly:assembly
[16:33:22 EDT(-0400)] <EricDalquist> would 'mvn install' then 'mvn -Passembly,make-assemblies assembly:assembly' possibly be faster?
[16:33:39 EDT(-0400)] <esm> right, so you can try that but then the assemblies will fail (I think)
[16:33:50 EDT(-0400)] <EricDalquist> hrm
[16:34:08 EDT(-0400)] <esm> i welcome you to try (i mean that)
[16:34:35 EDT(-0400)] <esm> this is a complicated issue because apparently there is a bug with how "aggregator" plugins execute in a multi-module build.
[16:34:48 EDT(-0400)] <EricDalquist> ok
[16:35:00 EDT(-0400)] <EricDalquist> I'll start digging into it in ~ 30 minutes
[16:35:02 EDT(-0400)] <esm> (and I don't understand the nature of the bug)
[16:35:05 EDT(-0400)] <esm> but
[16:35:10 EDT(-0400)] <esm> what I really want to d
[16:35:11 EDT(-0400)] <esm> o
[16:35:19 EDT(-0400)] <esm> is run the assemblies from the assembly child project
[16:35:40 EDT(-0400)] <esm> problem there is, the assembly plugin can't "see" other code modules.
[16:36:04 EDT(-0400)] <esm> adn so you loose the power of <dependencySets> and <moduleSets> in the assembly descriptors.
[16:36:29 EDT(-0400)] <EricDalquist> ah
[16:37:41 EDT(-0400)] <esm> so in my head I value the power of dependencySets and moduleSets more and would rather deal with "get a cup of coffee while the distributions build"
[16:38:00 EDT(-0400)] <esm> versus having fast distributions build and then having horrid assembly descriptors
[16:38:02 EDT(-0400)] <EricDalquist> yeah, I don't care if it takes 20 minutes (smile)
[16:38:05 EDT(-0400)] <esm> right
[16:38:08 EDT(-0400)] <EricDalquist> since we don't make these that often
[16:38:09 EDT(-0400)] <esm> we just need ti to work reliably
[16:38:13 EDT(-0400)] <EricDalquist> yup
[16:38:22 EDT(-0400)] <esm> this is the pain point with maven
[16:38:30 EDT(-0400)] <esm> its a higer abstraction
[16:38:33 EDT(-0400)] <esm> and when it breaks
[16:38:35 EDT(-0400)] <esm> ...
[16:38:40 EDT(-0400)] <EricDalquist> yup
[16:38:46 EDT(-0400)] <EricDalquist> it either works so sweet
[16:38:54 EDT(-0400)] <EricDalquist> or breaks and burns everything in a few miles
[16:39:01 EDT(-0400)] <esm> so
[16:39:04 EDT(-0400)] <esm> here is one test i would run
[16:39:17 EDT(-0400)] <esm> i would go into the assembly sub-module
[16:39:22 EDT(-0400)] <esm> and run 'ant prepare-all'
[16:39:33 EDT(-0400)] <esm> or just 'ant' i think prepare-all si the default
[16:39:40 EDT(-0400)] <esm> adn see if that finishes successfully
[16:40:17 EDT(-0400)] <EricDalquist> ok
[16:42:50 EDT(-0400)] <esm> oi ok the assembly plugin isn't producing the quickstart binary properly (but I don't think you are there yet)
[16:43:05 EDT(-0400)] <esm> (on windows, it works fine on *nix)
[16:44:12 EDT(-0400)] <esm> or, the windows unzip command sucks
[16:44:49 EDT(-0400)] <EricDalquist> (smile) well let me get something else done here then I'll dig into this
[16:45:17 EDT(-0400)] <esm> (smile)
[16:52:21 EDT(-0400)] <esm> ok it appears on my windows box that hsql was not initialized properly. In the quickstart, the uPortalDb.script file has the default info in it.
[16:53:13 EDT(-0400)] <esm> oh doh. I don't have your update to the start-hsql target
[17:01:15 EDT(-0400)] <esm> the maven lifecycle may be run once for each sub-project, and once on install
[17:01:19 EDT(-0400)] <esm> i haven't counted
[17:01:24 EDT(-0400)] <esm> sheesh
[17:16:32 EDT(-0400)] <esm> on windows: running the 'ant prepare-hsql' target from the 'assembly' module should result in a large, populated uPortaldb.script file in assembly/unpack/hsqldb/data/uPortalDb.script, but it doesn't
[17:17:18 EDT(-0400)] <esm> that's the problem i'm digging into now
[17:24:21 EDT(-0400)] <esm> ah
[17:35:36 EDT(-0400)] <EricDalquist> ok back
[17:35:47 EDT(-0400)] <EricDalquist> so all sorts of path problems on windows?
[17:38:45 EDT(-0400)] <esm> well i'm not sure yet
[17:38:59 EDT(-0400)] <EricDalquist> anything in particular I should start digging into?
[17:39:05 EDT(-0400)] <esm> ant -v prepare-hsql
[17:39:10 EDT(-0400)] <EricDalquist> k
[17:39:11 EDT(-0400)] <esm> its clear init-db can't connect
[17:39:22 EDT(-0400)] <esm> so i'm not sure yet exactly what is going on
[17:39:51 EDT(-0400)] <EricDalquist> it is connecting for me
[17:39:59 EDT(-0400)] <EricDalquist> just not getting a .script/.log
[17:40:07 EDT(-0400)] <EricDalquist> ahhhh
[17:40:08 EDT(-0400)] <EricDalquist> I think I know
[17:40:30 EDT(-0400)] <esm> sweet
[17:40:33 EDT(-0400)] <EricDalquist> shutdown vs shutdown compact?
[17:40:45 EDT(-0400)] <esm> ummmm i do not know the difference
[17:40:50 EDT(-0400)] <esm> on unix it works...
[17:41:17 EDT(-0400)] <EricDalquist> hsql writes all SQL to a .log file as it comes in
[17:41:25 EDT(-0400)] <EricDalquist> well with some flushing delays
[17:41:36 EDT(-0400)] <EricDalquist> shutdown just kills the DB and leaves the sql in the .log
[17:41:49 EDT(-0400)] <EricDalquist> I'm wondering if it isn't flushing before the shutdown is issued
[17:42:08 EDT(-0400)] <esm> possibly? But we are shutting down nicely, I thought
[17:42:29 EDT(-0400)] <EricDalquist> shutdown compact is supposed to write the simplest version of sql to recreate the db to the .script file
[17:42:30 EDT(-0400)] <EricDalquist> hrm
[17:42:32 EDT(-0400)] <EricDalquist> that didn't work
[17:42:59 EDT(-0400)] <esm> http://rafb.net/p/F8Oj7f84.html
[17:43:01 EDT(-0400)] <esm> with that
[17:43:16 EDT(-0400)] <esm> i can call ant start-hsql and ant stop-hsql and hsql dutifully starts and stops
[17:43:28 EDT(-0400)] <esm> according to my task manager and i can netstat -an | find "8887"
[17:43:42 EDT(-0400)] <EricDalquist> yeah
[17:43:44 EDT(-0400)] <EricDalquist> same here
[17:44:15 EDT(-0400)] <EricDalquist> I'm going to comment the shutdown call and connect to it to see what I can see
[17:45:06 EDT(-0400)] <EricDalquist> ok ... when I connect to it via a sql client I see data
[17:45:12 EDT(-0400)] <esm> cool
[17:45:57 EDT(-0400)] <esm> yep the unpack\hsqldb\data\uPortalDb\uPortalDb.script file is still unchanged.
[17:45:58 EDT(-0400)] <esm> hm
[17:46:12 EDT(-0400)] <esm> i wonder if it refuses to overrirte an existing file
[17:46:29 EDT(-0400)] <EricDalquist> that shouldn't be a problem
[17:49:37 EDT(-0400)] <EricDalquist> this is weird
[17:49:41 EDT(-0400)] <EricDalquist> I'm connected
[17:49:42 EDT(-0400)] <EricDalquist> see data
[17:50:04 EDT(-0400)] <EricDalquist> I just used the "script 'c:/test.script'" SQL which wrote out the DB
[17:51:30 EDT(-0400)] <esm> is init-db not connecting to the correct db
[17:51:43 EDT(-0400)] <EricDalquist> ?
[17:51:51 EDT(-0400)] <esm> sorry phone
[17:52:04 EDT(-0400)] <EricDalquist> oh, it is connecting to the correct db
[17:52:09 EDT(-0400)] <EricDalquist> I don't have any other hsql instances running
[17:52:24 EDT(-0400)] <esm> or
[17:52:40 EDT(-0400)] <esm> by default hsql starts a db named "test"
[17:52:42 EDT(-0400)] <EricDalquist> the only thing I can think of is the .script is getting written somwhere we don't know
[17:52:45 EDT(-0400)] <esm> right
[17:53:03 EDT(-0400)] <esm> man.
[17:53:08 EDT(-0400)] <esm> i miss grep when i'm on windows
[17:53:13 EDT(-0400)] <esm> er
[17:53:15 EDT(-0400)] <esm> that and find
[17:53:16 EDT(-0400)] <EricDalquist> I found it
[17:53:29 EDT(-0400)] <EricDalquist> uPortal_3.0.0-mvn-refactor\assembly\unpack\hsqldb\test.*
[17:53:35 EDT(-0400)] <esm> ah
[17:54:11 EDT(-0400)] <EricDalquist> <target name="start-hsql">
[17:54:11 EDT(-0400)]

<EricDalquist> <java fork="true" spawn="true" maxmemory="64M" dir="$

Unknown macro: {unpack-temp-dir}

/$

Unknown macro: {hsql}

" classname="org.hsqldb.Server">


[17:54:11 EDT(-0400)] <EricDalquist> <classpath>
[17:54:11 EDT(-0400)]

<EricDalquist> <pathelement path="$

Unknown macro: {unpack-temp-dir}

/$

Unknown macro: {hsql}

/lib/hsqldb.jar" />


[17:54:11 EDT(-0400)] <EricDalquist> </classpath>
[17:54:12 EDT(-0400)] <EricDalquist> <arg value="-database" />
[17:54:14 EDT(-0400)]

<EricDalquist> <arg value="$

Unknown macro: {basedir}

/data/$

Unknown macro: {uPortalDb}

" />


[17:54:16 EDT(-0400)] <EricDalquist> <arg value="-port" />
[17:54:18 EDT(-0400)] <EricDalquist> <arg value="8887" />
[17:54:20 EDT(-0400)] <EricDalquist> </java>
[17:54:22 EDT(-0400)] <EricDalquist> </target>
[17:54:24 EDT(-0400)] <EricDalquist> I think
[17:54:35 EDT(-0400)] <esm> nice
[17:56:32 EDT(-0400)] <esm> hmm
[17:59:26 EDT(-0400)] <EricDalquist> hrm
[17:59:30 EDT(-0400)] <EricDalquist> that didn't work either
[17:59:45 EDT(-0400)] <EricDalquist> oh
[17:59:47 EDT(-0400)] <EricDalquist> yes it did
[17:59:51 EDT(-0400)] <EricDalquist> it ended up uPortal_3.0.0-mvn-refactor\assembly\data
[17:59:59 EDT(-0400)] <EricDalquist> where do we want the uPortal.script file to end up?
[18:00:26 EDT(-0400)] <esm> in the uPortalDb sub directory
[18:00:36 EDT(-0400)] <esm> i think we need to adjust the base directory of the start target
[18:00:38 EDT(-0400)] <EricDalquist> under hsql?
[18:00:49 EDT(-0400)] <EricDalquist> so "uPortal_3.0.0-mvn-refactor\assembly\unpack\hsqldb\data\uPortalDb" ?
[18:00:59 EDT(-0400)] <EricDalquist> er "uPortal_3.0.0-mvn-refactor\assembly\unpack\hsqldb\data\uPortalDb\uPortalDb.script
[18:01:01 EDT(-0400)] <esm> yes, correct
[18:01:04 EDT(-0400)] <EricDalquist> ok
[18:03:57 EDT(-0400)] <esm> wtf
[18:05:43 EDT(-0400)] <EricDalquist> ok
[18:05:44 EDT(-0400)] <EricDalquist> question
[18:05:57 EDT(-0400)] <esm> shoot
[18:06:25 EDT(-0400)] <EricDalquist> The build seems to be copying a base .properties and .script into the directory uPortal_3.0.0-mvn-refactor\assembly\unpack\hsqldb\data\uPortalDb{color}
[18:06:42 EDT(-0400)] <EricDalquist> we want our db that we are initing to be based on those two files correct?

[18:06:52 EDT(-0400)] <esm> yes
[18:07:11 EDT(-0400)] <EricDalquist> ok
[18:07:33 EDT(-0400)] <esm> stuff keeps getting written out to unpack\hsqldb
[18:08:03 EDT(-0400)] <EricDalquist> what stuff?
[18:08:47 EDT(-0400)] <esm> the script file, but i think i fixed that
[18:08:57 EDT(-0400)] <EricDalquist> ok
[18:09:03 EDT(-0400)] <EricDalquist> I'm going to commit an updated build.xml
[18:09:15 EDT(-0400)] <EricDalquist> it starts hsql on windows and writes the .script to the correct location
[18:09:41 EDT(-0400)] <esm> ok cool
[18:10:01 EDT(-0400)] <esm> yeah i just got it
[18:10:16 EDT(-0400)] <esm> it starts, stops and writes out the .script file
[18:10:20 EDT(-0400)] <EricDalquist> ok ... time to go retry that root command?
[18:10:22 EDT(-0400)] <EricDalquist> btw
[18:10:35 EDT(-0400)] <EricDalquist> oh
[18:10:37 EDT(-0400)] <esm> but it actually writes out a test.script and a uPortal.script file
[18:10:38 EDT(-0400)] <EricDalquist> nevermind
[18:11:04 EDT(-0400)] <EricDalquist> thats weird
[18:11:06 EDT(-0400)] <EricDalquist> I don't see that
[18:11:11 EDT(-0400)] <esm> did you commit your build.xml
[18:11:15 EDT(-0400)] <EricDalquist> yup
[18:11:20 EDT(-0400)] <EricDalquist> with lots of changes I realized
[18:11:26 EDT(-0400)] <EricDalquist> since I did a 'format xml'
[18:11:28 EDT(-0400)] <EricDalquist> oops :/
[18:11:40 EDT(-0400)] <esm> doh i was looking at wrong rev in FE
[18:12:59 EDT(-0400)] <esm> ok just got your fix - trying it now
[18:13:14 EDT(-0400)] <EricDalquist> k
[18:13:30 EDT(-0400)] <esm> nice! ok it works
[18:13:37 EDT(-0400)] <esm> everything looks golden there
[18:13:39 EDT(-0400)] <esm> so yes,
[18:13:47 EDT(-0400)] <esm> i woudl run the assembly from the root again
[18:13:50 EDT(-0400)] <EricDalquist> giving 'mvn -Passembly,make-assemblies install assembly:assembly' another try
[18:14:39 EDT(-0400)] <esm> same here. i'm actually throwing a 'clean' in front
[18:14:44 EDT(-0400)] <EricDalquist> yeah
[18:14:49 EDT(-0400)] <EricDalquist> did that one by itself
[18:14:52 EDT(-0400)] <esm> k
[18:15:46 EDT(-0400)] <esm> can FE show you svn properties on a file or dir?
[18:15:58 EDT(-0400)] <EricDalquist> FE?
[18:16:00 EDT(-0400)] <esm> doh
[18:16:03 EDT(-0400)] <esm> fisheye
[18:16:04 EDT(-0400)] <EricDalquist> ah
[18:16:06 EDT(-0400)] <EricDalquist> I'
[18:16:08 EDT(-0400)] <esm> but yeah i see em
[18:16:09 EDT(-0400)] <EricDalquist> I'm not sure
[18:19:48 EDT(-0400)] <EricDalquist> oooh
[18:19:52 EDT(-0400)] <EricDalquist> looks like it might be working
[18:20:00 EDT(-0400)] <EricDalquist> yup
[18:20:42 EDT(-0400)] <EricDalquist> looks like everything is in order in the quickstart!
[18:21:10 EDT(-0400)] <EricDalquist> although I'm not sure we need to include the .ear in the quickstart
[18:21:31 EDT(-0400)] <EricDalquist> and in the -bin I'm thinking we don't need the .ear either
[18:21:52 EDT(-0400)] <EricDalquist> if we want we could include a -bin-ear and a -bin-exploded
[18:21:53 EDT(-0400)] <EricDalquist> or something
[18:21:55 EDT(-0400)] <EricDalquist> brb
[18:24:35 EDT(-0400)] <EricDalquist> hows it look on your end?
[18:24:45 EDT(-0400)] <esm> holy cow it is donw
[18:24:46 EDT(-0400)] <esm> done
[18:24:50 EDT(-0400)] <EricDalquist> Thanks for getting this all put together esm
[18:24:53 EDT(-0400)] <esm> 7 minutes 59 sec
[18:24:55 EDT(-0400)] <EricDalquist> this is a neat little script
[18:25:07 EDT(-0400)] <EricDalquist> yeah 6 minutes 51 seconds on my laptop
[18:25:07 EDT(-0400)] <esm> ok
[18:25:13 EDT(-0400)] <esm> yeah so lets talk quick about the contents
[18:25:25 EDT(-0400)] <esm> i'm not sure exactly how to remove the ear - i agree we don't need it
[18:25:40 EDT(-0400)] <esm> in either binary distribution
[18:25:42 EDT(-0400)] <esm> and
[18:26:34 EDT(-0400)] <esm> we can revisit whether or not we need the source (-src) and binary (-bin; the one with just the webapps and shared libs) dists
[18:26:44 EDT(-0400)] <esm> the src dist seems neutered to me
[18:27:20 EDT(-0400)] <esm> i mean, how would it be useful to people?
[18:27:21 EDT(-0400)] <EricDalquist> yeah
[18:27:28 EDT(-0400)] <EricDalquist> src really needs to be a snapshot of SVN
[18:27:32 EDT(-0400)] <esm> we have source jars
[18:27:34 EDT(-0400)] <esm> right
[18:27:38 EDT(-0400)] <EricDalquist> minus the .svn dirs
[18:27:46 EDT(-0400)] <esm> so the equiv of svn export
[18:27:51 EDT(-0400)] <EricDalquist> yup
[18:28:28 EDT(-0400)] <esm> ok i'll think on that...
[18:28:45 EDT(-0400)] <esm> b/c it may be that if that is what we do, we will need to svn export from the tag.
[18:28:58 EDT(-0400)] <esm> well i guess all of this should be run from the tag
[18:29:02 EDT(-0400)] <EricDalquist> yup
[18:29:03 EDT(-0400)] <esm> anyway
[18:29:20 EDT(-0400)] <esm> ok well i'm out for tonight. I touch up the docs on the wiki around this
[18:29:45 EDT(-0400)] <esm> we can also take a look at what other stuff to include, like legal stuff - LICENSE files, etc.
[18:29:59 EDT(-0400)] <EricDalquist> yeah
[18:30:06 EDT(-0400)] <EricDalquist> I'm out too, we'll dig into that more tomorrow
[18:30:11 EDT(-0400)] <esm> (smile)
[18:30:17 EDT(-0400)] <EricDalquist> night
[18:30:18 EDT(-0400)] <esm> okie thanks for all your help
[18:30:19 EDT(-0400)] <esm> night
[18:30:24 EDT(-0400)] <EricDalqui[away]> thank you (smile)
[22:21:40 EDT(-0400)] * jayshao (n=jayshao@ool-44c59034.dyn.optonline.net) has joined ##uportal

  • No labels