Issue Details (XML | Word | Printable)

Key: JDO-149
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Later
Priority: Trivial Trivial
Assignee: Unassigned
Reporter: karan singh malhi
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

maven console doesnt set properties properly

Created: 24/Sep/05 03:09 AM   Updated: 07/Dec/07 11:11 PM
Return to search
Component/s: tck2
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works console.patch 2005-09-24 03:24 AM karan singh malhi 8 kB
Text File Licensed for inclusion in ASF works plugin.jelly.patch 2005-09-24 03:24 AM karan singh malhi 0.7 kB

Resolution Date: 07/Dec/07 11:11 PM


 Description  « Hide
the setProps goal tokenizes properties into some sort of Collection. Maven console does not work very well if we set properties after the console has started.

I start maven console using the following command:

karan@j2ee:~/Projects/jdo/trunk/tck20$ maven -bo -Djdo.tck.cfglist=inheritance1.conf -Djdo.tck.identitytypes=applicationidentity console
-----------------------------------------------------------------------------------------------------------------------
This starts the maven console. Then i run the runtck.jdori goal. Below is the partial output:

jdo2-tck 2.0-SNAPSHOT > [default]
runtck.jdori
build:start:

console:
console:help:

setProps:
    [echo] setProps:
    [echo] Configurations for this run are "inheritance1.conf". To override this, use -Djdo.tck.cfglist=xxx on the maven command line.
    [echo] Databases for this run are "derby". To override this, use -Djdo.tck.dblist=xxx on the maven command line.
    [echo] Identity types for this run are "applicationidentity". To override this, use -Djdo.tck.identitytypes=xxx on the maven command line.
-------------------------------------------------------------------------------------------------------------------------------
Then i run it again "notice the [ ] brackets arond the inheritance1.conf, derby and applicationidentity.conf in the [echo] of the setProps goal

jdo2-tck 2.0-SNAPSHOT > [runtck.jdori]
runtck.jdori


setProps:
    [echo] setProps:
    [echo] Configurations for this run are "[inheritance1.conf]". To override this, use -Djdo.tck.cfglist=xxx on the maven command line.
    [echo] Databases for this run are "[derby]". To override this, use -Djdo.tck.dblist=xxx on the maven command line.
    [echo] Identity types for this run are "[applicationidentity]". To override this, use -Djdo.tck.identitytypes=xxx on the maven command line.
-----------------------------------------------------------------------------------------------------------------------------------
If i run it again, this time notice [[ ]] around inheritance1.conf, derby and applicationidentity.conf in the [echo] of the setProps goal.

jdo2-tck 2.0-SNAPSHOT > [runtck.jdori]
runtck.jdori


setProps:
    [echo] setProps:
    [echo] Configurations for this run are "[[inheritance1.conf]]". To override this, use -Djdo.tck.cfglist=xxx on the maven command line.
    [echo] Databases for this run are "[[derby]]". To override this, use -Djdo.tck.dblist=xxx on the maven command line.
    [echo] Identity types for this run are "[[applicationidentity]]". To override this, use -Djdo.tck.identitytypes=xxx on the maven command line.


THE RESULT OF THE ABOVE IS THAT THE enhance.prepare goal fails with the following message:

enhance.prepare:
    [mkdir] Created dir: /home/karan/Projects/jdo/trunk/tck20/target/enhanced/jdori/[[applicationidentity]]
org.apache.commons.jelly.JellyTagException: /home/karan/Projects/jdo/trunk/tck20/maven.xml:414:71: <copy> /home/karan/Projects/jdo/trunk/tck20/test/jdo/[[applicationidentity]] not found.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
karan singh malhi made changes - 24/Sep/05 03:24 AM
Field Original Value New Value
Attachment console.patch [ 12314523 ]
Attachment plugin.jelly.patch [ 12314524 ]
Craig Russell made changes - 07/Dec/07 11:11 PM
Resolution Later [ 7 ]
Status Open [ 1 ] Resolved [ 5 ]