[jira] Commented: (MNG-3163) Profile activation based on hostname or IP
[ http://jira.codehaus.org/browse/MNG-3163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=156180#action_156180 ] Corporate Gadfly commented on MNG-3163: --- You are using maven 2.0.8. Try it with 2.0.9. I'm using env.COMPUTERNAME to trigger a profile. Here's a snippet which triggers when run on HOST1: {code:xml} activation property nameenv.COMPUTERNAME/name valueHOST1/value /property /activation {code} Profile activation based on hostname or IP -- Key: MNG-3163 URL: http://jira.codehaus.org/browse/MNG-3163 Project: Maven 2 Issue Type: Improvement Components: Profiles Reporter: David J. M. Karlsen Priority: Minor Fix For: 3.x Attachments: exampleproject.zip It would be very nice to be able to activate profiles based on hostname[s] or IP-address[es]. Yes, this could be exported from the system as a systemproperty quite easily on *NIX with -Dhostname=`hostname` but is a little more tricky on other platforms - so why not include it in maven itself? It would be even better if it can be expressed with regex'es or the likes. WDYT? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Created: (MAVENUPLOAD-1467) Upload jMock 1.2.0
Upload jMock 1.2.0 -- Key: MAVENUPLOAD-1467 URL: http://jira.codehaus.org/browse/MAVENUPLOAD-1467 Project: maven-upload-requests Issue Type: Task Reporter: Corporate Gadfly http://haroon.sis.utoronto.ca/jmock-1.2.0/jmock-1.2.0-bundle.jar http://haroon.sis.utoronto.ca/jmock-1.2.0/jmock-cglib-1.2.0-bundle.jar jMock is a library that supports test-driven development of Java code with mock objects. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MAVENUPLOAD-1467) Upload jMock 1.2.0
[ http://jira.codehaus.org/browse/MAVENUPLOAD-1467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_92518 ] Corporate Gadfly commented on MAVENUPLOAD-1467: --- Hi Carlos, Thanks for the quick response. I asked and got this response: http://www.nabble.com/Re%3A-jMock-1.2.0-Released-p9923553.html hence this jira issue. I mostly used MAVENUPLOAD-1099 as a template. Upload jMock 1.2.0 -- Key: MAVENUPLOAD-1467 URL: http://jira.codehaus.org/browse/MAVENUPLOAD-1467 Project: maven-upload-requests Issue Type: Task Reporter: Corporate Gadfly http://haroon.sis.utoronto.ca/jmock-1.2.0/jmock-1.2.0-bundle.jar http://haroon.sis.utoronto.ca/jmock-1.2.0/jmock-cglib-1.2.0-bundle.jar jMock is a library that supports test-driven development of Java code with mock objects. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MANTRUN-64) Pass properties through
[ http://jira.codehaus.org/browse/MANTRUN-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_87831 ] Corporate Gadfly commented on MANTRUN-64: - Dupe of MANTRUN-40? Pass properties through --- Key: MANTRUN-64 URL: http://jira.codehaus.org/browse/MANTRUN-64 Project: Maven 2.x Antrun Plugin Issue Type: Improvement Affects Versions: 1.0, 1.1 Reporter: Daniel Takai Fix For: 1.2 I'd like to automatically pass through project properties to the antrun plugin. This would really help cut down on pom size and would make configuration so much easier. Right now each property has to be passed through manually using property/ elements. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Created: (MANTRUN-62) line.separator property not passed properly to ant
line.separator property not passed properly to ant -- Key: MANTRUN-62 URL: http://jira.codehaus.org/browse/MANTRUN-62 Project: Maven 2.x Antrun Plugin Issue Type: Bug Environment: maven 2.0.4 Reporter: Corporate Gadfly Attachments: build.xml, pom.xml line.separator does not resolve properly inside an ant task (using maven-antrun-plugin). E.g., using the 2 attached files, running {code}ant{code} produces the following output {code}Buildfile: build.xml echo: [echo] [echo] line.separator: -- [echo] -- [echo] os.name: --Linux-- [echo] BUILD SUCCESSFUL Total time: 0 seconds{code} which is all okay, so far (new line is being shown on the echo line). However, when using {code}mvn initialize{code}, we get the following output {code}[INFO] Scanning for projects... [INFO] [INFO] Building Maven Echo [INFO]task-segment: [initialize] [INFO] [INFO] [antrun:run {execution: echo-no-properties}] [INFO] Executing tasks echo: [echo] [echo] line.separator: --${line.separator}-- [echo] os.name: --${os.name}-- [echo] [INFO] Executed tasks [INFO] [antrun:run {execution: echo-with-properties}] [INFO] Executing tasks echo: [echo] [echo] line.separator: -- -- [echo] os.name: --Linux-- [echo] [INFO] Executed tasks [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 1 second [INFO] Finished at: Tue Nov 21 15:26:55 EST 2006 [INFO] Final Memory: 3M/508M [INFO] {code} I have two questions: # Why do I have to specify all the properties one-by-one while calling the target? # Why is the output for line.separator not what is expected? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira