moved sandbox

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@330451 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-11-03 04:59:08 +00:00
parent 58cd5a1d93
commit 41fb430152
180 changed files with 0 additions and 14424 deletions

View File

@ -1,13 +0,0 @@
+dev = Dev environment
+qa = QA environment
+test = Test environment
+prod = Production Environment
*tas.editor.stamp
{
dev = devValue
qa = qaValue
test = testValue
prod = prodValue
}

View File

@ -1,20 +0,0 @@
<configuration-management>
<environments>
<environment>
<id>dev</id>
<name>Development Environment</name>
</environment>
</environments>
<properties>
<description></description>
<property>
<key>editor</key>
<values>
<environment>
<id>dev</id>
<value>devValue</value>
</environment>
</values>
</property>
</properties>
</configuration-mangement>

View File

@ -1,82 +0,0 @@
unix.bea.dir=/t3/apps/wl/8.1.3
win.bea.dir=/bea
jdk.ver=jdk142_04
weblogic.ver=weblogic81
unix.cvsroot.dir=/t3/build/cruisecontrol/checkout
win.cvsroot.dir=/dev
win.deploy.dir=/dev/t3/library/deploy
unix.deploy.dir=/t3/envs/wlpdev1
weblogic.domain.name=iPortal
weblogic.database.user=t3wlpint
weblogic.database.password=t3wlpint
weblogic.database.server=hppqsd01
weblogic.database.port=1521
weblogic.database.SID=T3DD
# Used by i/ePortal
refinery.database.user=t3datglobl
refinery.database.password=t3datglobl
refinery.database.server=hppqsd01
refinery.database.port=1521
refinery.database.SID=T3DD
refineryext.database.user=t3datglobl
refineryext.database.password=t3datglobl
refineryext.database.server=hppqsd01
refineryext.database.port=1521
refineryext.database.SID=T3DD
weblogic.admin.host=smpqsd01
weblogic.admin.port=7021
weblogic.admin.sslport=7022
weblogic.debug.port=8023
weblogic.system.user=system
weblogic.system.password=password
weblogic.NovellAuthenticator.host=smtbgd01
weblogic.NovellAuthenticator.principal=cn=T3intPortalBroker,ou=svcaccounts,ou=spec,o=teds
weblogic.NovellAuthenticator.password=intportalbrokert3
weblogic.IAExtension.SiteMinderAdmin=siteminder
weblogic.IAExtension.SiteMinderAdminPassword={3DES}3x8+x75ipmk=
weblogic.additional.security=Security:Name=myrealmIAExtension
weblogic.ExecuteQueue=15
# web.xml configuration
webxml.auth-method=CLIENT-CERT
# weblogic.xml configuration
weblogicxml.publisher.local-path=/t3/data/pub
weblogicxml.staticcontent.local-path=/t3/data
weblogicxml.jsp.debug=true
weblogicxml.jsp.pageCheckSeconds=1
weblogicxml.jsp.precompile=false
weblogicxml.jsp.precompileContinue=false
# log4j.properties configuration
log4j.configuration.file=file:/t3/envs/wlpdev1/iPortal/log4j.properties
log4j.log.dir=/t3/envs/wlpdev1/iPortal/logs
# application.properties configuration
app.portal.enviroment=internal
# config.properties configuration
env.portal.webservice.host=smpqsd01
env.portal.webservice.port=7041
env.search.beginUri=http://t3privdev.tms.toyota.com/t3Portal/internal
env.timer.webservice.host=smpqsd01
env.timer.webservice.port=7021
env.portal.id.webservice.host=smpqsd01
env.portal.id.webservice.port=7021
# portal.properties configuration
tas.email.url=http://t3privdev.tms.toyota.com/t3Portal
tas.editor.attachment.path=/t3/envs/wlpdev1/iPortal/attachment/
# brioreport.properties configuration
report.key.reportHost=smbrit03.tms.toyota.com
report.key.reportPort=1810
report.tas.report.url=/t3reporting/dataaccess/Browse?REQUEST_TYPE=GET_DOCUMENT&DOC_UUID=00000100f6bb076d-0000-eafc-0a311104&DocVersion=1&JScript=enable

View File

@ -1,84 +0,0 @@
unix.bea.dir=/t3/apps/wl/8.1.3
win.bea.dir=/bea
jdk.ver=jdk142_04
weblogic.ver=weblogic81
unix.cvsroot.dir=/t3/build/cruisecontrol/checkout
win.cvsroot.dir=/dev
win.deploy.dir=/dev/t3/library/deploy
unix.deploy.dir=/t3/envs/wlppp1
weblogic.domain.name=iPortal
weblogic.database.user=t3wlpint
weblogic.database.password=t3wlpintprod
weblogic.database.server=hppqsp11
weblogic.database.port=1521
weblogic.database.SID=T3IP
# Used by i/ePortal
refinery.database.user=t3datglobl
refinery.database.password=t3dgprod
refinery.database.server=hppqsp11
refinery.database.port=1521
refinery.database.SID=T3IP
refineryext.database.user=t3datglobl
refineryext.database.password=t3dgprod
refineryext.database.server=hppqsp11
refineryext.database.port=1521
refineryext.database.SID=T3IP
weblogic.admin.host=smpqsp01
weblogic.admin.port=7021
weblogic.admin.sslport=7022
weblogic.debug.port=8023
weblogic.system.user=system
weblogic.system.password=password
weblogic.NovellAuthenticator.host=smtbgp05.tms.toyota.com
weblogic.NovellAuthenticator.principal=cn=T3intPortalBroker,ou=svcaccounts,ou=spec,o=teds
weblogic.NovellAuthenticator.password=intPortalBrokert3
weblogic.IAExtension.SiteMinderAdmin=t3admin
weblogic.IAExtension.SiteMinderAdminPassword={3DES}FZxvhDswJrc=
weblogic.additional.security=Security:Name=myrealmIAExtension
weblogic.ExecuteQueue=100
# web.xml configuration
webxml.auth-method=CLIENT-CERT
# weblogic.xml configuration
weblogicxml.publisher.local-path=/t3/data/pub
weblogicxml.staticcontent.local-path=/t3/data
weblogicxml.jsp.debug=false
weblogicxml.jsp.pageCheckSeconds=-1
weblogicxml.jsp.precompile=true
weblogicxml.jsp.precompileContinue=true
# log4j.properties configuration
log4j.configuration.file=file:/t3/envs/wlppp1/iPortal/log4j.properties
log4j.log.dir=/t3/envs/wlppp1/iPortal/logs
# application.properties configuration
app.portal.enviroment=internal
# config.properties configuration
env.portal.webservice.host=smpqsp01
env.portal.webservice.port=7041
env.search.beginUri=http://t3.tms.toyota.com/t3Portal/internal
env.timer.webservice.host=smpqsp01
env.timer.webservice.port=7021
env.portal.id.webservice.host=smpqsp01
env.portal.id.webservice.port=7021
# portal.properties configuration
tas.email.url=http://t3.tms.toyota.com/t3Portal
tas.editor.attachment.path=/t3/envs/wlppp1/iPortal/attachment/
# brioreport.properties configuration
report.key.reportHost=smbrip10.tms.toyota.com
report.key.reportPort=1800
report.tas.report.url=/t3reporting/dataaccess/Browse?REQUEST_TYPE=GET_DOCUMENT&DOC_UUID=00000100966a65c0-0000-81b5-0a3f070a&DOC_VERSION=1&JScript=enable

View File

@ -1,83 +0,0 @@
unix.bea.dir=/t3/apps/wl/8.1.3
win.bea.dir=/bea
jdk.ver=jdk142_04
weblogic.ver=weblogic81
unix.cvsroot.dir=/t3/build/cruisecontrol/checkout
win.cvsroot.dir=/dev
win.deploy.dir=/dev/t3/library/deploy
unix.deploy.dir=/t3/envs/wlpqa1
weblogic.domain.name=iPortal
weblogic.database.user=t3wlpint
weblogic.database.password=t3wlpint
weblogic.database.server=hppqsq11
weblogic.database.port=1521
weblogic.database.SID=T3IA
# Used by i/ePortal
refinery.database.user=t3datglobl
refinery.database.password=t3datglobl
refinery.database.server=hppqsq11
refinery.database.port=1521
refinery.database.SID=T3IA
refineryext.database.user=t3datglobl
refineryext.database.password=t3datglobl
refineryext.database.server=hppqsq11
refineryext.database.port=1521
refineryext.database.SID=T3IA
weblogic.admin.host=smpqsq01
weblogic.admin.port=7021
weblogic.admin.sslport=7022
weblogic.debug.port=8023
weblogic.system.user=system
weblogic.system.password=password
weblogic.NovellAuthenticator.host=smtbgq15.tms.toyota.com
weblogic.NovellAuthenticator.principal=cn=T3intPortalBroker,ou=svcaccounts,ou=spec,o=teds
weblogic.NovellAuthenticator.password=intPortalBrokert3
weblogic.IAExtension.SiteMinderAdmin=t3admin
weblogic.IAExtension.SiteMinderAdminPassword=42T3amm
weblogic.additional.security=Security:Name=myrealmIAExtension
weblogic.ExecuteQueue=100
# web.xml configuration
webxml.auth-method=CLIENT-CERT
# weblogic.xml configuration
weblogicxml.publisher.local-path=/t3/data/pub
weblogicxml.staticcontent.local-path=/t3/data
weblogicxml.jsp.debug=false
weblogicxml.jsp.pageCheckSeconds=-1
weblogicxml.jsp.precompile=true
weblogicxml.jsp.precompileContinue=true
# log4j.properties configuration
log4j.configuration.file=file:/t3/envs/wlpqa1/iPortal/log4j.properties
log4j.log.dir=/t3/envs/wlpqa1/iPortal/logs
# application.properties configuration
app.portal.enviroment=internal
# config.properties configuration
env.portal.webservice.host=smpqsq01
env.portal.webservice.port=7041
env.search.beginUri=http://t3qa.tms.toyota.com/t3Portal/internal
env.timer.webservice.host=smpqsq01
env.timer.webservice.port=7021
env.portal.id.webservice.host=smpqsq01
env.portal.id.webservice.port=7021
# portal.properties configuration
tas.email.url=http://t3qa.tms.toyota.com/t3Portal
tas.editor.attachment.path=/t3/envs/wlpqa1/iPortal/attachment/
# brioreport.properties configuration
report.key.reportHost=smbrip11.tms.toyota.com
report.key.reportPort=1820
report.tas.report.url=/t3reporting/dataaccess/Browse?REQUEST_TYPE=GET_DOCUMENT&DOC_UUID=000001005330d663-0000-ea23-0a3f070b&DOC_VERSION=1&JScript=enable

View File

@ -1,81 +0,0 @@
unix.bea.dir=/t3/apps/wl/8.1.3
win.bea.dir=/bea
jdk.ver=jdk142_04
weblogic.ver=weblogic81
unix.cvsroot.dir=/t3/build/cruisecontrol/checkout
win.cvsroot.dir=/dev
win.deploy.dir=/dev/t3/library/deploy
unix.deploy.dir=/t3/envs/wlptest1
weblogic.domain.name=iPortal
weblogic.database.user=t3wlpint
weblogic.database.password=t3wlpint
weblogic.database.server=hppqsd01
weblogic.database.port=1521
weblogic.database.SID=T3DT
# Used by i/ePortal
refinery.database.user=t3datglobl
refinery.database.password=t3datglobl
refinery.database.server=hppqsd01
refinery.database.port=1521
refinery.database.SID=T3DT
refineryext.database.user=t3datglobl
refineryext.database.password=t3datglobl
refineryext.database.server=hppqsd01
refineryext.database.port=1521
refineryext.database.SID=T3DT
weblogic.admin.host=smpqst01
weblogic.admin.port=7021
weblogic.admin.sslport=7022
weblogic.debug.port=8023
weblogic.system.user=system
weblogic.system.password=password
weblogic.NovellAuthenticator.host=tau.tms.toyota.com
weblogic.NovellAuthenticator.principal=cn=T3intPortalBroker,ou=svcaccounts,ou=spec,o=teds
weblogic.NovellAuthenticator.password=intPortalBrokert3
weblogic.IAExtension.SiteMinderAdmin=siteminder
weblogic.IAExtension.SiteMinderAdminPassword={3DES}PeLrMhffwaQ=
weblogic.additional.security=Security:Name=myrealmIAExtension
weblogic.ExecuteQueue=15
# web.xml configuration
webxml.auth-method=CLIENT-CERT
# weblogic.xml configuration
weblogicxml.publisher.local-path=/t3/data/pub
weblogicxml.staticcontent.local-path=/t3/data
weblogicxml.jsp.debug=true
weblogicxml.jsp.pageCheckSeconds=1
weblogicxml.jsp.precompile=false
weblogicxml.jsp.precompileContinue=false
# log4j.properties configuration
log4j.configuration.file=file:/t3/envs/wlptest1/iPortal/log4j.properties
log4j.log.dir=/t3/envs/wlptest1/iPortal/logs
# application.properties configuration
app.portal.enviroment=internal
# config.properties configuration
env.portal.webservice.host=smpqst01
env.portal.webservice.port=7041
env.search.beginUri=http://t3test.tms.toyota.com/t3Portal/internal
env.timer.webservice.host=smpqst01
env.timer.webservice.port=7021
env.portal.id.webservice.host=smpqst01
env.portal.id.webservice.port=7021
# portal.properties configuration
tas.email.url=http://t3test.tms.toyota.com/t3Portal
tas.editor.attachment.path=/t3/envs/wlptest1/iPortal/attachment/
# brioreport.properties configuration
report.key.reportHost=smbrit03.tms.toyota.com
report.key.reportPort=1810
report.tas.report.url=/t3reporting/dataaccess/Browse?REQUEST_TYPE=GET_DOCUMENT&DOC_UUID=00000100f6bb076d-0000-eafc-0a311104&DocVersion=1&JScript=enable

View File

@ -1,13 +0,0 @@
+qa = QA environment
+prod = Production Environment
+dev = Dev environment
+test = Test environment
*tas.editor.stamp
{
qa = qaValue
prod = prodValue
dev = devValue
test = testValue
}

View File

@ -1,28 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module version="4" relativePaths="false" type="JAVA_MODULE">
<component name="ModuleRootManager" />
<component name="NewModuleRootManager">
<output url="file://$MODULE_DIR$/target/classes" />
<exclude-output />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" isTestSource="true" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library">
<library name="junit">
<CLASSES>
<root url="jar:///home/jvanzyl/maven-repo-local/junit/junit/3.8.1/junit-3.8.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntryProperties />
</component>
</module>

View File

@ -1,216 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4" relativePaths="false">
<component name="AntConfiguration">
<defaultAnt bundledAnt="true" />
</component>
<component name="CodeStyleManager">
<option value="true" name="USE_DEFAULT_CODE_STYLE_SCHEME" />
<option value="" name="CODE_STYLE_SCHEME" />
</component>
<component name="CodeStyleSettingsManager">
<option name="PER_PROJECT_SETTINGS" />
<option name="USE_PER_PROJECT_SETTINGS" value="false" />
</component>
<component name="CompilerConfiguration">
<option name="DEFAULT_COMPILER" value="Javac" />
<option name="CLEAR_OUTPUT_DIRECTORY" value="false" />
<option name="DEPLOY_AFTER_MAKE" value="0" />
<resourceExtensions>
<entry name=".+\.(properties|xml|html)" />
<entry name=".+\.(gif|png|jpeg)" />
</resourceExtensions>
<wildcardResourcePatterns>
<entry name="?*.properties" />
<entry name="?*.xml" />
<entry name="?*.html" />
<entry name="?*.gif" />
<entry name="?*.png" />
<entry name="?*.jpeg" />
</wildcardResourcePatterns>
</component>
<component name="DataSourceManager" />
<component name="DataSourceManagerImpl" />
<component name="DependenciesAnalyzeManager">
<option name="myForwardDirection" value="false" />
</component>
<component name="DependencyValidationManager" />
<component name="EntryPointsManager">
<entry_points />
</component>
<component name="ExportToHTMLSettings">
<option name="PRINT_LINE_NUMBERS" value="false" />
<option name="OPEN_IN_BROWSER" value="false" />
<option name="OUTPUT_DIRECTORY" />
</component>
<component name="GUI Designer component loader factory" />
<component name="ImportConfiguration">
<option name="VENDOR" />
<option name="RELEASE_TAG" />
<option name="LOG_MESSAGE" />
<option value="true" name="CHECKOUT_AFTER_IMPORT" />
</component>
<component name="JUnitProjectSettings">
<option value="UI" name="TEST_RUNNER" />
</component>
<component name="JavacSettings">
<option name="DEBUGGING_INFO" value="true" />
<option name="GENERATE_NO_WARNINGS" value="false" />
<option name="DEPRECATION" value="true" />
<option name="ADDITIONAL_OPTIONS_STRING" value="" />
<option name="MAXIMUM_HEAP_SIZE" value="128" />
</component>
<component name="JavadocGenerationManager">
<option name="OUTPUT_DIRECTORY" />
<option name="OPTION_SCOPE" value="protected" />
<option name="OPTION_HIERARCHY" value="false" />
<option name="OPTION_NAVIGATOR" value="false" />
<option name="OPTION_INDEX" value="false" />
<option name="OPTION_SEPARATE_INDEX" value="false" />
<option name="OPTION_DOCUMENT_TAG_USE" value="false" />
<option name="OPTION_DOCUMENT_TAG_AUTHOR" value="false" />
<option name="OPTION_DOCUMENT_TAG_VERSION" value="false" />
<option name="OPTION_DOCUMENT_TAG_DEPRECATED" value="false" />
<option name="OPTION_DEPRECATED_LIST" value="false" />
<option name="OTHER_OPTIONS" />
<option name="HEAP_SIZE" />
<option name="OPEN_IN_BROWSER" value="false" />
</component>
<component name="JikesSettings">
<option name="JIKES_PATH" value="" />
<option name="DEBUGGING_INFO" value="true" />
<option name="DEPRECATION" value="true" />
<option name="GENERATE_NO_WARNINGS" value="false" />
<option name="IS_EMACS_ERRORS_MODE" value="true" />
<option name="ADDITIONAL_OPTIONS_STRING" value="" />
</component>
<component name="Palette2">
<group name="Swing">
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false">
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false">
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
</item>
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
</item>
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false">
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
</item>
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
<initial-values>
<property name="text" value="Button" />
</initial-values>
</item>
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="RadioButton" />
</initial-values>
</item>
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="CheckBox" />
</initial-values>
</item>
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
<initial-values>
<property name="text" value="Label" />
</initial-values>
</item>
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
</item>
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false">
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
</group>
</component>
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/maven-acm.iml" filepath="$PROJECT_DIR$/maven-acm.iml" />
</modules>
</component>
<component name="ProjectRootManager" version="2" assert-keyword="false" jdk-15="false" project-jdk-name="java version &quot;1.4.2&quot;" />
<component name="RmicSettings">
<option name="IS_EANABLED" value="false" />
<option name="DEBUGGING_INFO" value="true" />
<option name="GENERATE_NO_WARNINGS" value="false" />
<option name="GENERATE_IIOP_STUBS" value="false" />
<option name="ADDITIONAL_OPTIONS_STRING" value="" />
</component>
<component name="copyright">
<option name="body" value="/*&#10; * Copyright (c) $today.year Your Corporation. All Rights Reserved.&#10; */" />
<option name="location" value="1" />
<option name="remove" value="true" />
<option name="replace" value="2" />
</component>
<component name="libraryTable" />
<component name="uidesigner-configuration">
<option name="INSTRUMENT_CLASSES" value="true" />
<option name="COPY_FORMS_RUNTIME_TO_OUTPUT" value="true" />
</component>
<UsedPathMacros />
</project>

View File

@ -1,628 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4" relativePaths="false">
<component name="AppServerRunManager" />
<component name="AspectsView" />
<component name="BookmarkManager" />
<component name="ChangeBrowserSettings">
<option name="MAIN_SPLITTER_PROPORTION" value="0.3" />
<option name="MESSAGES_SPLITTER_PROPORTION" value="0.8" />
<option name="USE_DATE_BEFORE_FILTER" value="false" />
<option name="USE_DATE_AFTER_FILTER" value="false" />
<option name="USE_CHANGE_BEFORE_FILTER" value="false" />
<option name="USE_CHANGE_AFTER_FILTER" value="false" />
<option name="DATE_BEFORE" value="" />
<option name="DATE_AFTER" value="" />
<option name="CHANGE_BEFORE" value="" />
<option name="CHANGE_AFTER" value="" />
</component>
<component name="CheckinPanelState" />
<component name="Commander">
<leftPanel />
<rightPanel />
<splitter proportion="0.5" />
</component>
<component name="CompilerWorkspaceConfiguration">
<option name="COMPILE_IN_BACKGROUND" value="false" />
<option name="AUTO_SHOW_ERRORS_IN_EDITOR" value="true" />
<option name="CLOSE_MESSAGE_VIEW_IF_SUCCESS" value="true" />
<option name="COMPILE_DEPENDENT_FILES" value="false" />
</component>
<component name="Cvs2Configuration">
<option name="PRUNE_EMPTY_DIRECTORIES" value="true" />
<option name="MERGING_MODE" value="0" />
<option name="MERGE_WITH_BRANCH1_NAME" value="HEAD" />
<option name="MERGE_WITH_BRANCH2_NAME" value="HEAD" />
<option name="RESET_STICKY" value="false" />
<option name="CREATE_NEW_DIRECTORIES" value="true" />
<option name="DEFAULT_TEXT_FILE_SUBSTITUTION" value="kv" />
<option name="PROCESS_UNKNOWN_FILES" value="false" />
<option name="PROCESS_DELETED_FILES" value="false" />
<option name="PROCESS_IGNORED_FILES" value="false" />
<option name="RESERVED_EDIT" value="false" />
<option name="CHECKOUT_DATE_OR_REVISION_SETTINGS">
<value>
<option name="BRANCH" value="" />
<option name="DATE" value="" />
<option name="USE_BRANCH" value="false" />
<option name="USE_DATE" value="false" />
</value>
</option>
<option name="UPDATE_DATE_OR_REVISION_SETTINGS">
<value>
<option name="BRANCH" value="" />
<option name="DATE" value="" />
<option name="USE_BRANCH" value="false" />
<option name="USE_DATE" value="false" />
</value>
</option>
<option name="SHOW_CHANGES_REVISION_SETTINGS">
<value>
<option name="BRANCH" value="" />
<option name="DATE" value="" />
<option name="USE_BRANCH" value="false" />
<option name="USE_DATE" value="false" />
</value>
</option>
<option name="SHOW_OUTPUT" value="false" />
<option name="ADD_WATCH_INDEX" value="0" />
<option name="REMOVE_WATCH_INDEX" value="0" />
<option name="UPDATE_KEYWORD_SUBSTITUTION" />
<option name="MAKE_NEW_FILES_READONLY" value="false" />
<option name="SHOW_CORRUPTED_PROJECT_FILES" value="0" />
<option name="TAG_AFTER_FILE_COMMIT" value="false" />
<option name="OVERRIDE_EXISTING_TAG_FOR_FILE" value="true" />
<option name="TAG_AFTER_FILE_COMMIT_NAME" value="" />
<option name="TAG_AFTER_PROJECT_COMMIT" value="false" />
<option name="OVERRIDE_EXISTING_TAG_FOR_PROJECT" value="true" />
<option name="TAG_AFTER_PROJECT_COMMIT_NAME" value="" />
<option name="CLEAN_COPY" value="false" />
</component>
<component name="DaemonCodeAnalyzer">
<disable_hints />
</component>
<component name="DebuggerManager">
<breakpoint_any>
<breakpoint>
<option name="NOTIFY_CAUGHT" value="true" />
<option name="NOTIFY_UNCAUGHT" value="true" />
<option name="ENABLED" value="false" />
<option name="SUSPEND_POLICY" value="SuspendAll" />
<option name="LOG_ENABLED" value="false" />
<option name="LOG_EXPRESSION_ENABLED" value="false" />
<option name="COUNT_FILTER_ENABLED" value="false" />
<option name="COUNT_FILTER" value="0" />
<option name="CONDITION_ENABLED" value="false" />
<option name="CLASS_FILTERS_ENABLED" value="false" />
<option name="INSTANCE_FILTERS_ENABLED" value="false" />
<option name="CONDITION" value="" />
<option name="LOG_MESSAGE" value="" />
</breakpoint>
</breakpoint_any>
<breakpoint_rules />
<ui_properties />
</component>
<component name="DebuggerSettings">
<option name="TRACING_FILTERS_ENABLED" value="true" />
<option name="TOSTRING_CLASSES_ENABLED" value="false" />
<option name="VALUE_LOOKUP_DELAY" value="700" />
<option name="DEBUGGER_TRANSPORT" value="0" />
<option name="FORCE_CLASSIC_VM" value="true" />
<option name="HIDE_DEBUGGER_ON_PROCESS_TERMINATION" value="false" />
<option name="SKIP_SYNTHETIC_METHODS" value="true" />
<option name="SKIP_CONSTRUCTORS" value="false" />
<option name="STEP_THREAD_SUSPEND_POLICY" value="SuspendThread" />
<default_breakpoint_settings>
<option name="NOTIFY_CAUGHT" value="true" />
<option name="NOTIFY_UNCAUGHT" value="true" />
<option name="WATCH_MODIFICATION" value="true" />
<option name="WATCH_ACCESS" value="true" />
<option name="WATCH_ENTRY" value="true" />
<option name="WATCH_EXIT" value="true" />
<option name="ENABLED" value="true" />
<option name="SUSPEND_VM" value="true" />
<option name="COUNT_FILTER_ENABLED" value="false" />
<option name="COUNT_FILTER" value="0" />
<option name="CONDITION_ENABLED" value="false" />
<option name="CONDITION" />
<option name="LOG_ENABLED" value="false" />
<option name="LOG_EXPRESSION_ENABLED" value="false" />
<option name="LOG_MESSAGE" />
<option name="CLASS_FILTERS_ENABLED" value="false" />
<option name="INVERSE_CLASS_FILLTERS" value="false" />
<option name="SUSPEND_POLICY" value="SuspendAll" />
</default_breakpoint_settings>
<filter>
<option name="PATTERN" value="com.sun.*" />
<option name="ENABLED" value="true" />
</filter>
<filter>
<option name="PATTERN" value="java.*" />
<option name="ENABLED" value="true" />
</filter>
<filter>
<option name="PATTERN" value="javax.*" />
<option name="ENABLED" value="true" />
</filter>
<filter>
<option name="PATTERN" value="org.omg.*" />
<option name="ENABLED" value="true" />
</filter>
<filter>
<option name="PATTERN" value="sun.*" />
<option name="ENABLED" value="true" />
</filter>
<filter>
<option name="PATTERN" value="junit.*" />
<option name="ENABLED" value="true" />
</filter>
</component>
<component name="EjbViewSettings">
<EjbView showMembers="false" autoscrollToSource="false" />
</component>
<component name="ErrorTreeViewConfiguration">
<option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
<option name="HIDE_WARNINGS" value="false" />
</component>
<component name="FavoritesViewImpl">
<favorites_list name="maven-acm">
<option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
<option name="IS_SHOW_MEMBERS" value="false" />
<option name="IS_STRUCTURE_VIEW" value="false" />
<option name="IS_SHOW_MODULES" value="true" />
<option name="IS_FLATTEN_PACKAGES" value="false" />
<option name="IS_ABBREVIATION_PACKAGE_NAMES" value="false" />
<option name="IS_HIDE_EMPTY_MIDDLE_PACKAGES" value="false" />
<option name="IS_SHOW_LIBRARY_CONTENTS" value="true" />
</favorites_list>
<option name="myCurrentFavoritesList" value="maven-acm" />
</component>
<component name="FileEditorManager">
<leaf>
<file leaf-file-name="PropertiesComparator.java" pinned="false" current="true" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/main/java/org/apache/maven/acm/PropertiesComparator.java">
<provider selected="true" editor-type-id="text-editor">
<state line="21" column="40" selection-start="554" selection-end="554" vertical-scroll-proportion="0.19441675">
<folding />
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="FindManager">
<FindUsagesManager>
<setting name="OPEN_NEW_TAB" value="false" />
</FindUsagesManager>
</component>
<component name="HierarchyBrowserManager">
<option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
<option name="SORT_ALPHABETICALLY" value="false" />
<option name="HIDE_CLASSES_WHERE_METHOD_NOT_IMPLEMENTED" value="false" />
</component>
<component name="InspectionManager">
<option name="AUTOSCROLL_TO_SOURCE" value="false" />
<option name="SPLITTER_PROPORTION" value="0.5" />
<option name="GROUP_BY_SEVERITY" value="false" />
<option name="ANALYZE_TEST_SOURCES" value="true" />
<option name="SCOPE_TYPE" value="1" />
<profile name="Default" />
</component>
<component name="J2EEProjectPane">
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="maven-acm.ipr" />
<option name="myItemType" value="com.intellij.j2ee.module.view.nodes.J2EEProjectNodeDescriptor" />
</PATH_ELEMENT>
</PATH>
<setting name="SHOW_AS_DEPLOYMENT_VIEW" value="false" />
</component>
<component name="LvcsProjectConfiguration">
<option name="ADD_LABEL_ON_PROJECT_OPEN" value="true" />
<option name="ADD_LABEL_ON_PROJECT_COMPILATION" value="true" />
<option name="ADD_LABEL_ON_FILE_PACKAGE_COMPILATION" value="true" />
<option name="ADD_LABEL_ON_PROJECT_MAKE" value="true" />
<option name="ADD_LABEL_ON_RUNNING" value="true" />
<option name="ADD_LABEL_ON_DEBUGGING" value="true" />
<option name="ADD_LABEL_ON_UNIT_TEST_PASSED" value="true" />
<option name="ADD_LABEL_ON_UNIT_TEST_FAILED" value="true" />
</component>
<component name="ModuleEditorState">
<option name="LAST_EDITED_MODULE_NAME" value="maven-acm" />
<option name="LAST_EDITED_TAB_NAME" value="Libraries (Classpath)" />
</component>
<component name="NamedScopeManager" />
<component name="PackagesPane">
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="maven-acm.ipr" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PackageViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="maven-acm" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PackageViewModuleNode" />
</PATH_ELEMENT>
</PATH>
</component>
<component name="PerforceChangeBrowserSettings">
<option name="USE_USER_FILTER" value="true" />
<option name="USE_CLIENT_FILTER" value="true" />
<option name="USER" value="" />
<option name="CLIENT" value="" />
</component>
<component name="PerforceDirect.Settings">
<option name="CURRENT_CHANGE_LIST" value="-1" />
<option name="useP4CONFIG" value="true" />
<option name="port" value="jasper:1666" />
<option name="client" value="" />
<option name="user" value="" />
<option name="passwd" value="" />
<option name="showCmds" value="false" />
<option name="useNativeApi" value="false" />
<option name="pathToExec" value="p4" />
<option name="useCustomPathToExec" value="false" />
<option name="SYNC_FORCE" value="false" />
<option name="SYNC_RUN_RESOLVE" value="true" />
<option name="REVERT_UNCHANGED_FILES" value="true" />
<option name="CHARSET" value="none" />
<option name="SHOW_BRANCHES_HISTORY" value="true" />
<option name="ENABLED" value="true" />
<option name="USE_LOGIN" value="false" />
<option name="LOGIN_SILENTLY" value="false" />
</component>
<component name="ProjectLevelVcsManager">
<OptionsSetting value="true" id="Add" />
<OptionsSetting value="true" id="Remove" />
<OptionsSetting value="true" id="Checkin" />
<OptionsSetting value="true" id="Checkout" />
<OptionsSetting value="true" id="Update" />
<OptionsSetting value="true" id="Status" />
<OptionsSetting value="true" id="Edit" />
<OptionsSetting value="true" id="Undo Check Out" />
<OptionsSetting value="true" id="Compare with SourceSafe Version" />
<OptionsSetting value="true" id="Get Latest Version" />
<ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" />
</component>
<component name="ProjectPane">
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="maven-acm.ipr" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="maven-acm" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="maven-acm.ipr" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="maven-acm" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="PsiDirectory:$PROJECT_DIR$" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="maven-acm.ipr" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="maven-acm" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="PsiDirectory:$PROJECT_DIR$" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/src" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="maven-acm.ipr" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="maven-acm" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="PsiDirectory:$PROJECT_DIR$" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/src" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/src/main" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="maven-acm.ipr" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="maven-acm" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="PsiDirectory:$PROJECT_DIR$" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/src" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/src/main" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/src/main/java" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/src/main/java/org" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/src/main/java/org/apache" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/src/main/java/org/apache/maven" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/src/main/java/org/apache/maven/acm" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
</component>
<component name="ProjectReloadState">
<option name="STATE" value="0" />
</component>
<component name="ProjectView">
<navigator currentView="ProjectPane" splitterProportion="0.5">
<flattenPackages ProjectPane="false" />
<showMembers />
<showModules />
<showLibraryContents />
<hideEmptyPackages ProjectPane="false" />
<abbreviatePackageNames />
<showStructure PackagesPane="false" ProjectPane="false" />
<autoscrollToSource />
<autoscrollFromSource />
<sortByType ProjectPane="false" />
</navigator>
</component>
<component name="ProjectViewSettings">
<navigator currentView="ProjectPane" flattenPackages="false" showMembers="false" showStructure="false" autoscrollToSource="false" splitterProportion="0.5" />
<view id="ProjectPane">
<expanded_node type="directory" url="file://$PROJECT_DIR$" />
</view>
<view id="SourcepathPane" />
<view id="ClasspathPane" />
</component>
<component name="PropertiesComponent">
<property name="MemberChooser.copyJavadoc" value="false" />
<property name="GoToClass.includeLibraries" value="false" />
<property name="MemberChooser.showClasses" value="true" />
<property name="MemberChooser.sorted" value="false" />
<property name="GoToFile.includeJavaFiles" value="false" />
<property name="GoToClass.toSaveIncludeLibraries" value="false" />
</component>
<component name="ReadonlyStatusHandler">
<option name="SHOW_DIALOG" value="true" />
</component>
<component name="RecentsManager">
<key name="MoveClassesOrPackagesDialog.RECENTS_KEY">
<recent name="org.apache.maven" />
</key>
</component>
<component name="RestoreUpdateTree" />
<component name="RunManager">
<activeType name="Application" />
<configuration selected="false" default="true" type="Applet" factoryName="Applet">
<module name="" />
<option name="MAIN_CLASS_NAME" />
<option name="HTML_FILE_NAME" />
<option name="HTML_USED" value="false" />
<option name="WIDTH" value="400" />
<option name="HEIGHT" value="300" />
<option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
<option name="VM_PARAMETERS" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
</configuration>
<configuration selected="false" default="true" type="JUnit" factoryName="JUnit">
<module name="" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="PACKAGE_NAME" />
<option name="MAIN_CLASS_NAME" />
<option name="METHOD_NAME" />
<option name="TEST_OBJECT" />
<option name="VM_PARAMETERS" />
<option name="PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="ADDITIONAL_CLASS_PATH" />
<option name="TEST_SEARCH_SCOPE">
<value defaultName="wholeProject" />
</option>
</configuration>
<configuration selected="false" default="true" type="Remote" factoryName="Remote">
<option name="USE_SOCKET_TRANSPORT" value="true" />
<option name="SERVER_MODE" value="false" />
<option name="SHMEM_ADDRESS" value="javadebug" />
<option name="HOST" value="localhost" />
<option name="PORT" value="5005" />
</configuration>
<configuration selected="false" default="true" type="Application" factoryName="Application">
<option name="MAIN_CLASS_NAME" />
<option name="VM_PARAMETERS" />
<option name="PROGRAM_PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<module name="" />
</configuration>
</component>
<component name="SelectInManager" />
<component name="StarteamConfiguration">
<option name="SERVER" value="" />
<option name="PORT" value="49201" />
<option name="USER" value="" />
<option name="PASSWORD" value="" />
<option name="PROJECT" value="" />
<option name="VIEW" value="" />
<option name="ALTERNATIVE_WORKING_PATH" value="" />
</component>
<component name="StructuralSearchPlugin" />
<component name="StructureViewFactory">
<option name="AUTOSCROLL_MODE" value="true" />
<option name="AUTOSCROLL_FROM_SOURCE" value="false" />
<option name="ACTIVE_ACTIONS" value="" />
</component>
<component name="SvnChangesBrowserSettings">
<option name="USE_AUTHOR_FIELD" value="true" />
<option name="AUTHOR" value="" />
<option name="LOCATION" value="" />
<option name="USE_PROJECT_SETTINGS" value="true" />
<option name="USE_ALTERNATE_LOCATION" value="false" />
</component>
<component name="SvnConfiguration">
<option name="USER" value="" />
<option name="PASSWORD" value="" />
</component>
<component name="TodoView" selected-index="0">
<todo-panel id="selected-file">
<are-packages-shown value="false" />
<are-modules-shown value="false" />
<flatten-packages value="false" />
<is-autoscroll-to-source value="true" />
</todo-panel>
<todo-panel id="all">
<are-packages-shown value="true" />
<are-modules-shown value="false" />
<flatten-packages value="false" />
<is-autoscroll-to-source value="true" />
</todo-panel>
</component>
<component name="ToolWindowManager">
<frame x="-2" y="29" width="1610" height="1154" extended-state="0" />
<editor active="true" />
<layout>
<window_info id="CVS" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="8" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="7" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="true" weight="0.25" order="0" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="1" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="1" />
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="8" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.4" order="6" />
<window_info id="Module Dependencies" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="-1" />
<window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="-1" />
<window_info id="Favorites" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="-1" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="1" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="2" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="2" />
<window_info id="File View" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="-1" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.4" order="4" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="sliding" type="sliding" visible="false" weight="0.4" order="0" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="-1" />
<window_info id="Web" active="false" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="2" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="0" />
<window_info id="Aspects" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="3" />
<window_info id="EJB" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="3" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="5" />
</layout>
</component>
<component name="VCS.FileViewConfiguration">
<option name="SELECTED_STATUSES" value="DEFAULT" />
<option name="SELECTED_COLUMNS" value="DEFAULT" />
<option name="SHOW_FILTERS" value="true" />
<option name="CUSTOMIZE_VIEW" value="true" />
<option name="SHOW_FILE_HISTORY_AS_TREE" value="true" />
</component>
<component name="VcsManagerConfiguration">
<option name="PUT_FOCUS_INTO_COMMENT" value="false" />
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
<option name="SAVE_LAST_COMMIT_MESSAGE" value="true" />
<option name="CHECKIN_DIALOG_SPLITTER_PROPORTION" value="0.8" />
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
<option name="OPTIMIZE_IMPORTS_BEFORE_FILE_COMMIT" value="false" />
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
<option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
<option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
<option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
<option name="ERROR_OCCURED" value="false" />
<option name="ACTIVE_VCS_NAME" value="" />
<option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
<option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
<option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
</component>
<component name="VssConfiguration">
<option name="CLIENT_PATH" value="" />
<option name="SRCSAFEINI_PATH" value="" />
<option name="USER_NAME" value="" />
<option name="PWD" value="" />
<option name="VSS_IS_INITIALIZED" value="true" />
<CheckoutOptions>
<option name="COMMENT" value="" />
<option name="DO_NOT_GET_LATEST_VERSION" value="false" />
<option name="REPLACE_WRITABLE" value="false" />
<option name="RECURSIVE" value="false" />
</CheckoutOptions>
<CheckinOptions>
<option name="COMMENT" value="" />
<option name="KEEP_CHECKED_OUT" value="false" />
<option name="RECURSIVE" value="false" />
</CheckinOptions>
<AddOptions>
<option name="COMMENT" value="" />
<option name="STORE_ONLY_LATEST_VERSION" value="false" />
<option name="CHECK_OUT_IMMEDIATELY" value="false" />
<option name="FILE_TYPE" value="0" />
</AddOptions>
<UndocheckoutOptions>
<option name="MAKE_WRITABLE" value="false" />
<option name="REPLACE_LOCAL_COPY" value="0" />
<option name="RECURSIVE" value="false" />
</UndocheckoutOptions>
<GetOptions>
<option name="REPLACE_WRITABLE" value="0" />
<option name="MAKE_WRITABLE" value="false" />
<option name="RECURSIVE" value="false" />
</GetOptions>
</component>
<component name="WebViewSettings">
<webview flattenPackages="false" showMembers="false" autoscrollToSource="false" />
</component>
<component name="antWorkspaceConfiguration">
<option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
<option name="FILTER_TARGETS" value="false" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/src/main/java/org/apache/maven/acm/PropertiesComparator.java">
<provider selected="true" editor-type-id="text-editor">
<state line="21" column="40" selection-start="554" selection-end="554" vertical-scroll-proportion="0.19441675">
<folding />
</state>
</provider>
</entry>
</component>
<component name="editorManager" />
</project>

View File

@ -1,13 +0,0 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.acm</groupId>
<artifactId>maven-acm</artifactId>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
</dependency>
</dependencies>
</project>

View File

@ -1,10 +0,0 @@
package org.apache.maven.acm;
/**
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id:$
*/
public abstract class AbstractProvider
implements ParameterProvider
{
}

View File

@ -1,56 +0,0 @@
package org.apache.maven.acm;
// Have a single parameter for a system
//
// system = {dev|test|qa|production}
//
// Need to be able to change these values at runtime and persist the changes
// so that they are preserved for future builds I need to keep this information
// outside of the build environment
// For toyota where can I store the values ...
public class Acm
implements ParameterProvider
{
public static final String ACM_SYSTEM_ID = "acm.system.id";
private String systemId;
private ParameterProvider provider;
public Acm( ParameterProvider parameterProvider )
{
this( System.getProperty( ACM_SYSTEM_ID ), parameterProvider );
}
public Acm( String systemId, ParameterProvider parameterProvider )
{
this.systemId = systemId;
this.provider = parameterProvider;
}
public String getParameter( String key )
throws SystemProviderSourceException
{
return getParameter( getSystemId(), key );
}
public String getParameter( String system, String key )
throws SystemProviderSourceException
{
if ( system == null )
{
return null;
}
return provider.getParameter( system, key );
}
public String getSystemId()
{
return systemId;
}
}

View File

@ -1,46 +0,0 @@
/*
* Copyright (c) 2005 Your Corporation. All Rights Reserved.
*/
package org.apache.maven.acm;
import org.apache.maven.acm.convert.PropertiesConverter;
import org.apache.maven.acm.model.Model;
import org.apache.maven.acm.text.AcmTextDescriptorWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
/**
* Unit test for simple App.
*
* @author <a href="mailto:jason@zenplex.com">Jason van Zyl</a>
*/
public class Main
{
static protected void writeModel( Model model, String file )
throws Exception
{
PrintWriter writer = new PrintWriter( new FileWriter( file ) );
AcmTextDescriptorWriter w = new AcmTextDescriptorWriter();
w.write( writer, model );
}
static public void main( String[] args )
throws Exception
{
String sourceDirectory = args[0];
String modelFile = args[1];
PropertiesConverter converter = new PropertiesConverter();
Model model = converter.convert( sourceDirectory );
writeModel( model, modelFile );
}
}

View File

@ -1,11 +0,0 @@
package org.apache.maven.acm;
/**
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id:$
*/
public interface ParameterProvider
{
String getParameter( String system, String key )
throws SystemProviderSourceException;
}

View File

@ -1,47 +0,0 @@
package org.apache.maven.acm;
import java.util.List;
import java.util.Properties;
import java.util.Iterator;
import java.util.ArrayList;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
/**
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id:$
*/
public class PropertiesComparator
{
public List compare( Properties source, Properties target )
{
List propertiesMissingFromTarget = new ArrayList();
for ( Iterator i = source.keySet().iterator(); i.hasNext(); )
{
String key = (String) i.next();
if ( target.get( key ) == null )
{
propertiesMissingFromTarget.add( key );
}
}
return propertiesMissingFromTarget;
}
public void compareReport( File sourceFile, File targetFile )
throws Exception
{
Properties source = new Properties();
source.load( new FileInputStream( sourceFile ) );
Properties target = new Properties();
target.load( new FileInputStream( targetFile ) );
List diff = compare( source, target );
}
}

View File

@ -1,46 +0,0 @@
package org.apache.maven.acm;
import java.io.InputStream;
import java.io.IOException;
import java.util.Properties;
/**
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id:$
*/
public class PropertiesProvider
extends AbstractProvider
{
private ClassLoader classLoader;
private static final String EXTENSION = ".properties";
public PropertiesProvider()
{
this( Thread.currentThread().getContextClassLoader() );
}
public PropertiesProvider( ClassLoader classLoader )
{
this.classLoader = classLoader;
}
public String getParameter( String systemId, String key )
throws SystemProviderSourceException
{
InputStream is = classLoader.getResourceAsStream( systemId + EXTENSION );
Properties p = new Properties();
try
{
p.load( is );
}
catch ( IOException e )
{
throw new SystemProviderSourceException( "Cannot find the source for parameters: ", e );
}
return p.getProperty( key );
}
}

View File

@ -1,90 +0,0 @@
package org.apache.maven.acm;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
/**
* Wraps a String as an InputStream. Note that data will be lost for
* characters not in ISO Latin 1, as a simple char->byte mapping is assumed.
*
* @author <a href="mailto:umagesh@codehaus.org">Magesh Umasankar</a>
*/
public class StringInputStream
extends InputStream
{
/** Source string, stored as a StringReader */
private StringReader in;
/**
* Composes a stream from a String
*
* @param source The string to read from. Must not be <code>null</code>.
*/
public StringInputStream( String source )
{
in = new StringReader( source );
}
/**
* Reads from the Stringreader, returning the same value. Note that
* data will be lost for characters not in ISO Latin 1. Clients
* assuming a return value in the range -1 to 255 may even fail on
* such input.
*
* @return the value of the next character in the StringReader
*
* @exception IOException if the original StringReader fails to be read
*/
public int read() throws IOException
{
return in.read();
}
/**
* Closes the Stringreader.
*
* @exception IOException if the original StringReader fails to be closed
*/
public void close() throws IOException
{
in.close();
}
/**
* Marks the read limit of the StringReader.
*
* @param limit the maximum limit of bytes that can be read before the
* mark position becomes invalid
*/
public synchronized void mark( final int limit )
{
try
{
in.mark( limit );
}
catch ( IOException ioe )
{
throw new RuntimeException( ioe.getMessage() );
}
}
/**
* Resets the StringReader.
*
* @exception IOException if the StringReader fails to be reset
*/
public synchronized void reset() throws IOException
{
in.reset();
}
/**
* @see InputStream#markSupported
*/
public boolean markSupported()
{
return in.markSupported();
}
}

View File

@ -1,27 +0,0 @@
/*
* Copyright (c) 2005 Your Corporation. All Rights Reserved.
*/
package org.apache.maven.acm;
/**
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id:$
*/
public class SystemProviderSourceException
extends Exception
{
public SystemProviderSourceException( String message )
{
super( message );
}
public SystemProviderSourceException( Throwable cause )
{
super( cause );
}
public SystemProviderSourceException( String message, Throwable cause )
{
super( message, cause );
}
}

View File

@ -1,42 +0,0 @@
/*
* Copyright (c) 2005 Your Corporation. All Rights Reserved.
*/
package org.apache.maven.acm.convert;
import java.io.File;
import java.io.FilenameFilter;
/**
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id:$
*/
public class FileScanner
{
public File[] scan( File directory, String extension )
{
File[] files = directory.listFiles( new ExtensionFilter( extension ) );
return files;
}
class ExtensionFilter
implements FilenameFilter
{
String extension;
public ExtensionFilter( String ext )
{
this.extension = ext;
}
public boolean accept( File directory, String filename )
{
if ( filename.endsWith( extension ) )
{
return true;
}
return false;
}
}
}

View File

@ -1,94 +0,0 @@
package org.apache.maven.acm.convert;
import org.apache.maven.acm.model.Model;
import org.apache.maven.acm.model.Environment;
import java.io.FileInputStream;
import java.io.File;
import java.io.FilenameFilter;
import java.util.Properties;
import java.util.Iterator;
/**
* We want to take a set of properties files, where one properties file represents
* the configuration for a particular environment, and combine them into a
* single application configuration management model.
*
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id:$
*/
public class PropertiesConverter
{
public Model convert( String directory )
throws Exception
{
Model m = new Model();
File f = new File( directory );
File[] files = f.listFiles( new PropertiesFilter() );
for ( int i = 0; i < files.length; i++ )
{
File p = files[i];
String env = p.getName();
env = env.substring( 0, env.indexOf( "." ) );
processProperties( env, p.getPath(), m );
}
return m;
}
class PropertiesFilter
implements FilenameFilter
{
public boolean accept( File directory, String filename )
{
if ( filename.endsWith( ".properties" ) )
{
return true;
}
return false;
}
}
protected void processProperties( String env, String properties, Model model )
throws Exception
{
System.out.println( "Processing " + env );
Environment e = new Environment();
e.setId( env );
e.setDescription( "Environment for " + env );
FileInputStream is = new FileInputStream( properties );
Properties p = new Properties();
p.load( is );
for ( Iterator i = p.keySet().iterator(); i.hasNext(); )
{
String propertyKey = (String) i.next();
model.addPropertyKey( propertyKey );
String value = p.getProperty( propertyKey );
if ( value == null )
{
value = "NOT_SET for " + env;
}
e.addProperty( propertyKey, value );
}
model.addEnvironment( e );
}
}

View File

@ -1,50 +0,0 @@
/*
* Copyright (c) 2005 Your Corporation. All Rights Reserved.
*/
package org.apache.maven.acm.convert;
import org.apache.maven.acm.model.Model;
import org.apache.maven.acm.model.Environment;
import java.util.Iterator;
import java.util.Properties;
import java.io.FileOutputStream;
import java.io.File;
/**
* Take an application configuration management model and general
* properties files, one for each environment.
*
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id:$
*/
public class PropertiesGenerator
{
public void generate( Model model, String outputDirectory, String prefix )
throws Exception
{
for ( Iterator i = model.getEnvironments().values().iterator(); i.hasNext(); )
{
Environment e = (Environment) i.next();
Properties p = e.getProperties();
String filename;
if ( prefix != null )
{
filename = prefix + e.getId() + ".properties";
}
else
{
filename = e.getId() + ".properties";
}
File outputFile = new File( outputDirectory, filename );
FileOutputStream os = new FileOutputStream( outputFile );
p.store( os, "Properties for the " + e.getId() + " environment." );
}
}
}

View File

@ -1,197 +0,0 @@
/*
* Copyright (c) 2005 Your Corporation. All Rights Reserved.
*/
package org.apache.maven.acm.convert;
import org.apache.maven.acm.util.InterpolationFilterWriter;
import org.apache.maven.acm.util.MapInterpolationHandler;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Reader;
import java.io.Writer;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
import java.util.Iterator;
/**
* This tool works in the case where you have a set of properties files that
* control your application configuration and a set of environmental properties files
* that are merged against your properties files used for your application
* configuration.
* <p/>
* So you might have:
* <p/>
* brioreport.properties
* config.properties
* portal.properties
* <p/>
* These control your properties files for your application configurations.
* Then you might have the following:
* <p/>
* dev.properties
* test.properties
* qa.properties
* prod.properties
* <p/>
* These are properties for the environment the application is
* running in.
* <p/>
* Our goal here is to unify these into a coherent ACM so that
* we can manage these.
* <p/>
* In this particular case the environmental properties are used for
* swizzling the application properties above in addition to being
* used to swizzle other resources like weblogic config.xml files.
* <p/>
* So first we will take all the application configuration properties
* and concatenate them together
*
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id:$
*/
public class PropertiesMunger
{
private static String APP = "application.props";
public void munge( File applicationSourceDirectory,
File environmentSourceDirectory,
File outputDirectory )
throws Exception
{
if ( !outputDirectory.exists() )
{
outputDirectory.mkdirs();
}
FileScanner scanner = new FileScanner();
File[] appProperties = scanner.scan( applicationSourceDirectory, "properties" );
File[] envProperties = scanner.scan( environmentSourceDirectory, "properties" );
// ----------------------------------------------------------------------
// Combine all the application properties into a single file
// ----------------------------------------------------------------------
Properties app = new Properties();
Map m = new HashMap();
for ( int i = 0; i < appProperties.length; i++ )
{
Properties p = new Properties();
p.load( new FileInputStream( appProperties[i] ) );
app.putAll( p );
}
File aggregate = new File( outputDirectory, APP );
FileOutputStream os = new FileOutputStream( aggregate );
app.store( os, APP );
os.close();
// ----------------------------------------------------------------------
// Now write out the template for the application configurations
// ----------------------------------------------------------------------
for ( int i = 0; i < envProperties.length; i++ )
{
String envName = envProperties[i].getName();
envName = envName.substring( 0, envName.indexOf( "." ) );
Properties p = new Properties();
p.load( new FileInputStream( envProperties[i] ) );
// ------------------------------------------------------------------------
// Now use these properties and merge them with the application.properties
// to produce a properties file targeted at a particular environment.
// ------------------------------------------------------------------------
Reader reader = new FileReader( aggregate );
File output = new File( outputDirectory, envName + ".properties" );
MapInterpolationHandler handler = new MapInterpolationHandler( p );
InterpolationFilterWriter writer = new InterpolationFilterWriter( new FileWriter( output ), handler );
copy( reader, writer );
reader.close();
writer.close();
// ------------------------------------------------------------------------
// Now look at the difference in keys between the application configuration
// and the environment configuration and push the difference into
// application configuration so we have a self contained set of
// properties for an environment. We are basically making one
// configuration for an environment.
// ------------------------------------------------------------------------
Properties appProps = new Properties();
FileInputStream is = new FileInputStream( output );
appProps.load( is );
is.close();
for ( Iterator j = p.keySet().iterator(); j.hasNext(); )
{
String key = (String) j.next();
if ( ! appProps.containsKey( key ) )
{
appProps.setProperty( key, p.getProperty( key ) );
}
}
os = new FileOutputStream( output );
appProps.store( os, "props for " + envName );
os.close();
}
}
public static void copy( Reader input, Writer output )
throws IOException
{
char[] buffer = new char[1024 * 4];
int n = 0;
while ( -1 != ( n = input.read( buffer ) ) )
{
output.write( buffer, 0, n );
}
}
public static void main( String[] args )
throws Exception
{
File appSource = new File( args[0] );
File envSource = new File( args[1] );
File output = new File( args[2] );
PropertiesMunger munger = new PropertiesMunger();
munger.munge( appSource, envSource, output );
}
}

View File

@ -1,59 +0,0 @@
/*
* Copyright (c) 2005 Your Corporation. All Rights Reserved.
*/
package org.apache.maven.acm.model;
import java.util.Properties;
/**
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id:$
*/
public class Environment
{
private String id;
private String description;
private Properties properties = new Properties();
public String getId()
{
return id;
}
public void setId( String id )
{
this.id = id;
}
public String getDescription()
{
return description;
}
public void setDescription( String description )
{
this.description = description;
}
public void addProperty( String key, String value )
{
properties.setProperty( key, value );
}
public String getProperty( String key )
{
return properties.getProperty( key );
}
public Properties getProperties()
{
return properties;
}
public void setProperties( Properties properties )
{
this.properties = properties;
}
}

View File

@ -1,50 +0,0 @@
/*
* Copyright (c) 2005 Your Corporation. All Rights Reserved.
*/
package org.apache.maven.acm.model;
import java.util.Map;
import java.util.HashMap;
import java.util.Set;
import java.util.HashSet;
/**
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id:$
*/
public class Model
{
private Map environments = new HashMap();
private Set propertyKeySet = new HashSet();
public void addEnvironment( Environment environment )
{
environments.put( environment.getId(), environment );
}
public Map getEnvironments()
{
return environments;
}
public Environment getEnvironment( String id )
{
return (Environment) environments.get( id );
}
public void addPropertyKey( String propertyKey )
{
propertyKeySet.add( propertyKey );
}
public Set getPropertyKeySet()
{
return propertyKeySet;
}
// ----------------------------------------------------------------------
// for each proprety key I want to know what the values are in each
// of the environments are.
// ----------------------------------------------------------------------
}

View File

@ -1,115 +0,0 @@
package org.apache.maven.acm.text;
import org.apache.maven.acm.model.Environment;
import org.apache.maven.acm.model.Model;
import org.apache.maven.acm.StringInputStream;
import java.io.BufferedReader;
import java.io.Reader;
import java.util.Iterator;
import java.util.Properties;
/**
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id: SinkDescriptorReader.java,v 1.1 2004/09/22 00:01:42 jvanzyl Exp $
*/
public class AcmTextDescriptorReader
{
public Model read( Reader reader )
throws Exception
{
Model model = new Model();
BufferedReader br = new BufferedReader( reader );
String line;
String propertyKey = null;
StringBuffer propertiesText = new StringBuffer();
while ( ( line = br.readLine() ) != null )
{
if ( line.startsWith( "//" ) || line.startsWith( "{" ) || line.trim().length() == 0 )
{
continue;
}
else if ( line.startsWith( "+" ) )
{
// Process an environment definition
Environment e = new Environment();
String environment = line.substring( 1 ).trim();
int i = environment.indexOf( "=" );
String id = environment.substring( 0, i - 1 ).trim();
String description = environment.substring( i + 1 ).trim();
e.setId( id );
e.setDescription( description );
model.addEnvironment( e );
}
else if ( line.startsWith( "*" ) )
{
propertyKey = line.substring( 1 ).trim();
model.addPropertyKey( propertyKey );
if ( propertyKey.endsWith( "{" ) )
{
propertyKey = propertyKey.substring( 0, propertyKey.length() - 1 ).trim();
}
}
else if ( line.endsWith( "}" ) )
{
// This is what we're parsing:
//
// dev = devValue
// test = testValue
// qa = qaValue
//
Properties p = new Properties();
p.load( new StringInputStream( propertiesText.toString() ) );
processProperties( model, propertyKey, p );
propertiesText = new StringBuffer();
}
else
{
propertiesText.append( line ).append( "\n" );
}
}
return model;
}
private void processProperties( Model model, String propertyKey, Properties properties )
{
// Iterate though the properties and assign the value for the property key
// for each environment specified.
//
// dev = devValue
// test = testValue
// qa = qaValue
//
// So for a given propertyKey we need to assign values for the dev, test, and qa
// environments.
for ( Iterator i = properties.keySet().iterator(); i.hasNext(); )
{
String environmentKey = (String) i.next();
Environment environment = model.getEnvironment( environmentKey );
environment.addProperty( propertyKey, properties.getProperty( environmentKey ) );
}
}
}

View File

@ -1,94 +0,0 @@
package org.apache.maven.acm.text;
import org.apache.maven.acm.model.Environment;
import org.apache.maven.acm.model.Model;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
/**
* Write out an application configuration management model in the
* simple text format.
*
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id:$
* @todo groups of properties
* @todo sorting
* @todo order of environments inside a propertyKey setting
*/
public class AcmTextDescriptorWriter
{
public void write( PrintWriter writer, Model model)
throws Exception
{
writeEnvironments( writer, model );
writeProperties( writer, model );
writer.flush();
writer.close();
}
protected void writeEnvironments( PrintWriter writer, Model model )
throws Exception
{
for ( Iterator i = model.getEnvironments().values().iterator(); i.hasNext(); )
{
Environment e = (Environment) i.next();
writer.print( "+" );
writer.print( e.getId() );
writer.print( " = " );
writer.println( e.getDescription() );
}
writer.println();
}
protected void writeProperties( PrintWriter writer, Model model )
throws Exception
{
List sortedPropertyKeys = new ArrayList( model.getPropertyKeySet() );
Collections.sort( sortedPropertyKeys );
for ( Iterator i = sortedPropertyKeys.iterator(); i.hasNext(); )
{
String propertyKey = (String) i.next();
writer.print( "*" );
writer.println( propertyKey );
writer.println( "{" );
// ----------------------------------------------------------------------
// For each environment state the value for this property key
// ----------------------------------------------------------------------
for ( Iterator j = model.getEnvironments().values().iterator(); j.hasNext(); )
{
Environment e = (Environment) j.next();
writer.print( " " );
writer.print( e.getId() );
writer.print( " = " );
writer.println( e.getProperty( propertyKey ) );
}
writer.println( "}" );
writer.println();
}
}
}

View File

@ -1,135 +0,0 @@
package org.apache.maven.acm.util;
import java.io.FilterWriter;
import java.io.IOException;
import java.io.Writer;
public class InterpolationFilterWriter
extends FilterWriter
{
private int index = 0;
private String beginToken;
private int beginTokenLength;
private StringBuffer queuedData = new StringBuffer();
private int beginTokenIndex;
private int endTokenIndex;
private String endToken;
private int endTokenLength;
private static String DEFAULT_BEGIN_TOKEN = "@";
private static String DEFAULT_END_TOKEN = "@";
private InterpolationHandler interpolationHandler;
public InterpolationFilterWriter( Writer out, InterpolationHandler interpolationHandler )
{
this( out, interpolationHandler, DEFAULT_BEGIN_TOKEN, DEFAULT_END_TOKEN );
}
public InterpolationFilterWriter( Writer out, InterpolationHandler interpolationHandler, String beginToken, String endToken )
{
super( out );
this.interpolationHandler = interpolationHandler;
this.beginToken = beginToken;
beginTokenLength = beginToken.length();
this.endToken = endToken;
endTokenLength = endToken.length();
}
public void write( String s )
throws IOException
{
int length = s.length();
for ( int i = 0; i < length; i++ )
{
write( s.charAt( i ) );
}
}
public void write( char[] buf, int offset, int len )
throws IOException
{
for ( int i = offset; i < len; i++ )
{
write( (char) buf[i] );
}
}
public void write( int c )
throws IOException
{
if ( index == 0 && c == beginToken.toCharArray()[beginTokenIndex] )
{
if ( beginTokenIndex == ( beginTokenLength - 1 ) )
{
beginTokenIndex = 0;
}
else
{
beginTokenIndex++;
}
queuedData.append( (char) c );
index++;
}
else if ( index > 0 && c == endToken.toCharArray()[endTokenIndex] )
{
if ( endTokenIndex == ( endTokenLength - 1 ) )
{
queuedData.append( (char) c );
beginTokenIndex = 0;
endTokenIndex = 0;
index = 0;
interpolate( queuedData.toString() );
queuedData = new StringBuffer();
}
else
{
queuedData.append( (char) c );
endTokenIndex++;
index++;
}
}
else if ( index > 0 )
{
queuedData.append( (char) c );
index++;
}
else
{
out.write( c );
}
}
private void interpolate( String s )
throws IOException
{
String key = s.substring( beginTokenLength, s.length() - endTokenLength );
interpolationHandler.interpolate( key, out );
}
}

View File

@ -1,17 +0,0 @@
/*
* Copyright (c) 2005 Your Corporation. All Rights Reserved.
*/
package org.apache.maven.acm.util;
import java.io.Writer;
import java.io.IOException;
/**
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id:$
*/
public interface InterpolationHandler
{
public void interpolate( String key, Writer writer )
throws IOException;
}

View File

@ -1,35 +0,0 @@
package org.apache.maven.acm.util;
import java.util.Map;
import java.io.IOException;
import java.io.Writer;
/**
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id:$
*/
public class MapInterpolationHandler
implements InterpolationHandler
{
private Map map;
public MapInterpolationHandler( Map map )
{
this.map = map;
}
public void interpolate( String key, Writer out )
throws IOException
{
Object o = map.get( key );
if ( o == null )
{
out.write( key );
}
else
{
out.write( o.toString() );
}
}
}

View File

@ -1,26 +0,0 @@
package org.apache.maven.acm;
import junit.framework.TestCase;
/**
* Unit test for simple App.
*
* @author <a href="mailto:jason@zenplex.com">Jason van Zyl</a>
*/
public class AcmTest
extends TestCase
{
public void testAcmSettingTheDefaultSystemId()
throws Exception
{
Acm acm = new Acm( "dev", new PropertiesProvider() );
assertEquals( "dev", acm.getParameter( "system" ) );
assertEquals( "test", acm.getParameter( "test", "system" ) );
assertEquals( "qa", acm.getParameter( "qa", "system" ) );
assertEquals( "production", acm.getParameter( "production", "system" ) );
}
}

View File

@ -1,95 +0,0 @@
/*
* Copyright (c) 2005 Your Corporation. All Rights Reserved.
*/
package org.apache.maven.acm;
import junit.framework.TestCase;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.FileWriter;
import java.io.Writer;
import java.io.PrintWriter;
import java.io.File;
import org.apache.maven.acm.model.Model;
import org.apache.maven.acm.model.Environment;
import org.apache.maven.acm.text.AcmTextDescriptorReader;
import org.apache.maven.acm.text.AcmTextDescriptorWriter;
import org.apache.maven.acm.convert.PropertiesConverter;
import org.apache.maven.acm.convert.PropertiesGenerator;
/**
* Unit test for simple App.
*
* @author <a href="mailto:jason@zenplex.com">Jason van Zyl</a>
*/
public class AcmTextDescriptorReaderTest
extends TestCase
{
private String basedir;
protected void setUp()
throws Exception
{
basedir = System.getProperty( "basedir" );
}
public void testTextDescriptorReaderTest()
throws Exception
{
Model model = getModel();
testModel( model );
writeModel( model, "foo.txt" );
}
protected void writeModel( Model model, String file )
throws Exception
{
PrintWriter writer = new PrintWriter( new FileWriter( file ) );
AcmTextDescriptorWriter w = new AcmTextDescriptorWriter();
w.write( writer, model );
}
protected void testModel( Model model )
throws Exception
{
assertEquals( 4, model.getEnvironments().size() );
Environment dev = model.getEnvironment( "dev" );
assertNotNull( dev );
assertEquals( "devValue", dev.getProperty( "tas.editor.stamp" ) );
}
protected Model getModel()
throws Exception
{
AcmTextDescriptorReader reader = new AcmTextDescriptorReader();
InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream( "config.txt" );
Model model = reader.read( new InputStreamReader( is ) );
return model;
}
public void testPropertiesConverter()
throws Exception
{
PropertiesConverter converter = new PropertiesConverter();
Model model = converter.convert( new File( basedir, "config").getPath() );
writeModel( model, "toyota.config" );
PropertiesGenerator pg = new PropertiesGenerator();
pg.generate( model, new File( basedir, "target" ).getPath(), "t3_" );
}
}

View File

@ -1,36 +0,0 @@
package org.apache.maven.acm;
import junit.framework.TestCase;
import java.util.Properties;
import java.util.List;
/**
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id:$
*/
public class PropertiesComparatorTest
extends TestCase
{
public void testPropertiesComparator()
throws Exception
{
Properties source = new Properties();
Properties target = new Properties();
source.setProperty( "property0", "value0" );
source.setProperty( "property1", "value1" );
target.setProperty( "property3", "value3" );
PropertiesComparator pc = new PropertiesComparator();
List diff = pc.compare( source, target );
assertTrue( diff.contains( "property0" ) );
assertTrue( diff.contains( "property1" ) );
}
}

View File

@ -1,35 +0,0 @@
/*
* Copyright (c) 2005 Your Corporation. All Rights Reserved.
*/
package org.apache.maven.acm;
import junit.framework.TestCase;
import org.apache.maven.acm.convert.PropertiesMunger;
import java.io.File;
/**
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id:$
*/
public class PropertiesMungerTest
extends TestCase
{
public void testPropertiesMunger()
throws Exception
{
String basedir = System.getProperty( "basedir" );
PropertiesMunger munger = new PropertiesMunger();
File appSource = new File( basedir, "t3/app" );
File envSource = new File( basedir, "t3/env" );
File output = new File( basedir, "target/config" );
munger.munge( appSource, envSource, output );
}
}

View File

@ -1,13 +0,0 @@
+dev = Dev environment
+qa = QA environment
+test = Test environment
+prod = Production Environment
*tas.editor.stamp
{
dev = devValue
qa = qaValue
test = testValue
prod = prodValue
}

View File

@ -1 +0,0 @@
system=dev

View File

@ -1 +0,0 @@
system=production

View File

@ -1 +0,0 @@
system=qa

View File

@ -1 +0,0 @@
system=test

View File

@ -1,14 +0,0 @@
report.key.reportHost=smbrip11
report.key.reportPort=1820
report.mutex.time=10
report.key.reportBase=/t3reporting
# local dev
#report.key.proxy=http://smbrit02
# deployment
report.key.proxy=
report.key.reportURI=/T3/
report.tas.report.url=/t3reporting/browse/get/T3/BQYs/Search%20TAS%20Cases
# test configuration
app.junit.test=TRUE

View File

@ -1,36 +0,0 @@
# This can be configured to WEBSERVICE or CONTROL
env.portal.control.config=CONTROL
# ldap environment -- use ldaps instead of ldap for SSL protocol
env.portal.ldap.protocol=ldap
env.portal.ldap.host=tau.tms.toyota.com
env.portal.ldap.port=389
env.portal.ldap.initial_context_factory=com.sun.jndi.ldap.LdapCtxFactory
env.portal.ldap.security_authentication=simple
env.portal.ldap.security_principal.prefix=cn=
env.portal.ldap.security_principal.suffix=,ou=people,ou=tms,ou=intranet,o=teds
# database environment
env.portal.datasource.name=jdbc/globalDataSource
# environment web service http
env.portal.webservice.host=smpqsd01
env.portal.webservice.port=7041
# environment web service http for timers
env.portal.id.webservice.host=localhost
env.portal.id.webservice.port=7021
# enviroment web service timer url
env.timer.webservice.host=localhost
env.timer.webservice.port=7021
# search properties
env.search.beginUri=http://t3privdev.tms.toyota.com/t3Portal/internal
env.search.queryTables=APPL_SERV_CAT_PREPRESS_VW SCA, APPL_VEH_PREPRESS_VW VA
# application url
env.application.url=http://t3privdev.tms.toyota.com
# test configuration
app.junit.test=TRUE

View File

@ -1,80 +0,0 @@
tas.editor.stamp=\n--------------- {0} at {1} ---------------\n\n
# Days before a document is expired only used when it is in the initiated state
tas.editor.expire.initiated=14
# Years before any other document is expired
tas.editor.expire.non-initiated=5
# Portal Properties for Reassignment Failure
tas.editor.reassigment=TA Case has been reassigned to {0} [{1}].
tas.editor.escalated=TA Case has been escalated to {0} [{1}].
### REMOVE the lines below after the 7th Iteration
tas.editor.temp.firstname=Mike
tas.editor.temp.lastname=Robinson
tas.editor.temp.commonname=robinsm1234@toyota.com
tas.editor.temp.principal=robinsm1234@toyota.com
# Tas Dealer/Technician
tas.dealer.technicianname=Unlisted Techninican
tas.dealer.technicianid=unlisted_id
# TA Email Properties
tas.email.from.name=T3_TAS_NOTIFIER
tas.email.from.email=Russell_Suzuki@toyota.com
tas.email.cc.email=I_DO_NOT_EXIST_TEST_EMAIL@toyota.com
tas.email.smtp=tiemann.tms.toyota.com
tas.email.escalate.subject=TAS Case {0}
tas.email.escalate.body=TAS Case {0} is being forwarded to you for further assistance. Please login into the T3 system ({1}) to resolve the case.
tas.email.reassign.subject=TAS Case {0}
tas.email.reassign.body=TAS Case {0} is being forwarded to you for further assistance. Please login into the T3 system ({1}) to resolve the case.
tas.email.url=http://t3privdev.tms.toyota.com/t3Portal
tas.email.ready=true
# TA CC Composer Properties
tas.message.composer.subject=TAS Notification: TA Case {0}
tas.message.composer.body=TAS Case {0} has been forwarded to you for information and reference purposes. For further details please log into the T3 system.\n\n
# TA Viewer Configurations
tas.viewer.ta.select=select tas.T3_ID as "tasID", tas.STATUS_CODE as "statusCode", tas.CREATION_TIMESTAMP as "creationTime", tas.LAST_MODIFIED_TIMESTAMP as "lastModTime", tas.CREATOR_USERID as "creatorUserId", tas.CREATOR_NAME as "creatorName", tas.OWNER_USERID as "ownerUserId", tas.OWNER_NAME as "ownerName", tas.DEALER_TECH_USERID as "dealerTechUserId", tas.DEALER_TECH_NAME as "dealerTechName", tas.DEALER_TECH_INITIATED as "dealerTechInitiated", tas.DEALER_CODE as "dealerCode", tas.DEALER_NAME as "dealerName", tas.DEALER_REGION_CODE as "dealerRegionCode", tas.QA_DEPARTMENT_NAME as "qaDepartmentName", tas.SERVICE_CATEGORY_CODE as "serviceCategoryCode", tas.SERVICE_CATEGORY_DESC as "serviceCategoryDescription", tas.SECTION_CODE as "sectionCode", tas.SECTION_DESC as "sectionDescription", tas.SUB_COMPONENT_CODE as "subcomponentCode", tas.SUB_COMPONENT_DESC as "subcomponentDescription", tas.CONDITION_CODE as "conditionCode", tas.CONDITION_DESC as "conditionDescription", tas.CAUSE_COMPONENT_CODE as "causeComponentCode", tas.CAUSE_COMPONENT_DESC as "causeComponentDescription", tas.CAUSE_SUB_COMP_CODE as "causeSubcomponentCode", tas.CAUSE_SUB_COMP_DESC as "causeSubcomponentDescription", tas.CAUSE_CONDITION_CODE as "causeConditionCode", tas.CAUSE_CONDITION_DESC as "causeConditionDescription" from dctm_tas_general_info tas, dctm_tas_dtc_codes dtc
tas.viewer.ta.order=order by STATUS_CODE, T3_ID
tas.viewer.ta.window.title=TA+Viewer::
# TC Viewer SQL Strings
tas.viewer.tc.select=select distinct T3_ID as "T3_ID", obj.i_chronicle_id as "I_CHRONICLE_ID", obj.object_type as "OBJECT_TYPE", obj.publication_number as "PUBLICATION_NUMBER", obj.object_title as "OBJECT_TITLE", sc.service_category_code as "serviceCategory", sc.section_code as "section", sc.sub_component_code as "subComponent", veh.division_code as "division", veh.model_name as "model", veh.model_year as "year", veh.vds as "vds" from applicability_object obj, applicability_veh veh, applicability_serv_cat sc where {0} veh.i_chronicle_id = sc.i_chronicle_id and veh.i_chronicle_id=obj.i_chronicle_id
tas.viewer.tc.where.all=0
tas.viewer.tc.object.state=internal
tas.viewer.tc.items.per.page=15
tas.viewer.tc.access.TCTMS=ProductEngineer,TASSupervisor,TASEditor,TASReviewer,TASAdmin,SystemAdmin
tas.viewer.tc.access.TCRegion=FieldEngineer
tas.viewer.tc.access.TCAll=Observer
# TA Helper Configuration
tas.editor.helper.element.service.category=TMSMeta-service_category
tas.editor.helper.element.section=TMSMeta-section
tas.editor.helper.element.subcomponent=TMSMeta-subcomponent
tas.editor.helper.element.condition=TMSMeta-symptom
tas.editor.helper.element.cause.comp=TQNET-cause_comp_area
tas.editor.helper.element.cause.subcomp=TQNET-cause_sub_comp
tas.editor.helper.element.cause.condition=TQNET-cause_condition
tas.editor.helper.namespace=http://common.t3.tms.com/xmlbeans/ta
tas.editor.helper.attribute.code=code
# TAS Data Query Time in Seconds
tas.reference.default.querytime=10
# UUP completion
app.uup.completed=TRUE
# TAS Attachment
tas.editor.attachment.path=C:/dev/attachment/
tas.editor.attachment.activate=true
tas.editor.attachment.maxattachmentinsertion=128
# test configuration
app.junit.test=TRUE
# home page forward
t3.forward.uri=/appmanager/t3/int

View File

@ -1,82 +0,0 @@
unix.bea.dir=/t3/apps/wl/8.1.3
win.bea.dir=/bea
jdk.ver=jdk142_04
weblogic.ver=weblogic81
unix.cvsroot.dir=/t3/build/cruisecontrol/checkout
win.cvsroot.dir=/dev
win.deploy.dir=/dev/t3/library/deploy
unix.deploy.dir=/t3/envs/wlpdev1
weblogic.domain.name=iPortal
weblogic.database.user=t3wlpint
weblogic.database.password=t3wlpint
weblogic.database.server=hppqsd01
weblogic.database.port=1521
weblogic.database.SID=T3DD
# Used by i/ePortal
refinery.database.user=t3datglobl
refinery.database.password=t3datglobl
refinery.database.server=hppqsd01
refinery.database.port=1521
refinery.database.SID=T3DD
refineryext.database.user=t3datglobl
refineryext.database.password=t3datglobl
refineryext.database.server=hppqsd01
refineryext.database.port=1521
refineryext.database.SID=T3DD
weblogic.admin.host=smpqsd01
weblogic.admin.port=7021
weblogic.admin.sslport=7022
weblogic.debug.port=8023
weblogic.system.user=system
weblogic.system.password=password
weblogic.NovellAuthenticator.host=smtbgd01
weblogic.NovellAuthenticator.principal=cn=T3intPortalBroker,ou=svcaccounts,ou=spec,o=teds
weblogic.NovellAuthenticator.password=intportalbrokert3
weblogic.IAExtension.SiteMinderAdmin=siteminder
weblogic.IAExtension.SiteMinderAdminPassword={3DES}3x8+x75ipmk=
weblogic.additional.security=Security:Name=myrealmIAExtension
weblogic.ExecuteQueue=15
# web.xml configuration
webxml.auth-method=CLIENT-CERT
# weblogic.xml configuration
weblogicxml.publisher.local-path=/t3/data/pub
weblogicxml.staticcontent.local-path=/t3/data
weblogicxml.jsp.debug=true
weblogicxml.jsp.pageCheckSeconds=1
weblogicxml.jsp.precompile=false
weblogicxml.jsp.precompileContinue=false
# log4j.properties configuration
log4j.configuration.file=file:/t3/envs/wlpdev1/iPortal/log4j.properties
log4j.log.dir=/t3/envs/wlpdev1/iPortal/logs
# application.properties configuration
app.portal.enviroment=internal
# config.properties configuration
env.portal.webservice.host=smpqsd01
env.portal.webservice.port=7041
env.search.beginUri=http://t3privdev.tms.toyota.com/t3Portal/internal
env.timer.webservice.host=smpqsd01
env.timer.webservice.port=7021
env.portal.id.webservice.host=smpqsd01
env.portal.id.webservice.port=7021
# portal.properties configuration
tas.email.url=http://t3privdev.tms.toyota.com/t3Portal
tas.editor.attachment.path=/t3/envs/wlpdev1/iPortal/attachment/
# brioreport.properties configuration
report.key.reportHost=smbrit03.tms.toyota.com
report.key.reportPort=1810
report.tas.report.url=/t3reporting/dataaccess/Browse?REQUEST_TYPE=GET_DOCUMENT&DOC_UUID=00000100f6bb076d-0000-eafc-0a311104&DocVersion=1&JScript=enable

View File

@ -1,84 +0,0 @@
unix.bea.dir=/t3/apps/wl/8.1.3
win.bea.dir=/bea
jdk.ver=jdk142_04
weblogic.ver=weblogic81
unix.cvsroot.dir=/t3/build/cruisecontrol/checkout
win.cvsroot.dir=/dev
win.deploy.dir=/dev/t3/library/deploy
unix.deploy.dir=/t3/envs/wlppp1
weblogic.domain.name=iPortal
weblogic.database.user=t3wlpint
weblogic.database.password=t3wlpintprod
weblogic.database.server=hppqsp11
weblogic.database.port=1521
weblogic.database.SID=T3IP
# Used by i/ePortal
refinery.database.user=t3datglobl
refinery.database.password=t3dgprod
refinery.database.server=hppqsp11
refinery.database.port=1521
refinery.database.SID=T3IP
refineryext.database.user=t3datglobl
refineryext.database.password=t3dgprod
refineryext.database.server=hppqsp11
refineryext.database.port=1521
refineryext.database.SID=T3IP
weblogic.admin.host=smpqsp01
weblogic.admin.port=7021
weblogic.admin.sslport=7022
weblogic.debug.port=8023
weblogic.system.user=system
weblogic.system.password=password
weblogic.NovellAuthenticator.host=smtbgp05.tms.toyota.com
weblogic.NovellAuthenticator.principal=cn=T3intPortalBroker,ou=svcaccounts,ou=spec,o=teds
weblogic.NovellAuthenticator.password=intPortalBrokert3
weblogic.IAExtension.SiteMinderAdmin=t3admin
weblogic.IAExtension.SiteMinderAdminPassword={3DES}FZxvhDswJrc=
weblogic.additional.security=Security:Name=myrealmIAExtension
weblogic.ExecuteQueue=100
# web.xml configuration
webxml.auth-method=CLIENT-CERT
# weblogic.xml configuration
weblogicxml.publisher.local-path=/t3/data/pub
weblogicxml.staticcontent.local-path=/t3/data
weblogicxml.jsp.debug=false
weblogicxml.jsp.pageCheckSeconds=-1
weblogicxml.jsp.precompile=true
weblogicxml.jsp.precompileContinue=true
# log4j.properties configuration
log4j.configuration.file=file:/t3/envs/wlppp1/iPortal/log4j.properties
log4j.log.dir=/t3/envs/wlppp1/iPortal/logs
# application.properties configuration
app.portal.enviroment=internal
# config.properties configuration
env.portal.webservice.host=smpqsp01
env.portal.webservice.port=7041
env.search.beginUri=http://t3.tms.toyota.com/t3Portal/internal
env.timer.webservice.host=smpqsp01
env.timer.webservice.port=7021
env.portal.id.webservice.host=smpqsp01
env.portal.id.webservice.port=7021
# portal.properties configuration
tas.email.url=http://t3.tms.toyota.com/t3Portal
tas.editor.attachment.path=/t3/envs/wlppp1/iPortal/attachment/
# brioreport.properties configuration
report.key.reportHost=smbrip10.tms.toyota.com
report.key.reportPort=1800
report.tas.report.url=/t3reporting/dataaccess/Browse?REQUEST_TYPE=GET_DOCUMENT&DOC_UUID=00000100966a65c0-0000-81b5-0a3f070a&DOC_VERSION=1&JScript=enable

View File

@ -1,83 +0,0 @@
unix.bea.dir=/t3/apps/wl/8.1.3
win.bea.dir=/bea
jdk.ver=jdk142_04
weblogic.ver=weblogic81
unix.cvsroot.dir=/t3/build/cruisecontrol/checkout
win.cvsroot.dir=/dev
win.deploy.dir=/dev/t3/library/deploy
unix.deploy.dir=/t3/envs/wlpqa1
weblogic.domain.name=iPortal
weblogic.database.user=t3wlpint
weblogic.database.password=t3wlpint
weblogic.database.server=hppqsq11
weblogic.database.port=1521
weblogic.database.SID=T3IA
# Used by i/ePortal
refinery.database.user=t3datglobl
refinery.database.password=t3datglobl
refinery.database.server=hppqsq11
refinery.database.port=1521
refinery.database.SID=T3IA
refineryext.database.user=t3datglobl
refineryext.database.password=t3datglobl
refineryext.database.server=hppqsq11
refineryext.database.port=1521
refineryext.database.SID=T3IA
weblogic.admin.host=smpqsq01
weblogic.admin.port=7021
weblogic.admin.sslport=7022
weblogic.debug.port=8023
weblogic.system.user=system
weblogic.system.password=password
weblogic.NovellAuthenticator.host=smtbgq15.tms.toyota.com
weblogic.NovellAuthenticator.principal=cn=T3intPortalBroker,ou=svcaccounts,ou=spec,o=teds
weblogic.NovellAuthenticator.password=intPortalBrokert3
weblogic.IAExtension.SiteMinderAdmin=t3admin
weblogic.IAExtension.SiteMinderAdminPassword=42T3amm
weblogic.additional.security=Security:Name=myrealmIAExtension
weblogic.ExecuteQueue=100
# web.xml configuration
webxml.auth-method=CLIENT-CERT
# weblogic.xml configuration
weblogicxml.publisher.local-path=/t3/data/pub
weblogicxml.staticcontent.local-path=/t3/data
weblogicxml.jsp.debug=false
weblogicxml.jsp.pageCheckSeconds=-1
weblogicxml.jsp.precompile=true
weblogicxml.jsp.precompileContinue=true
# log4j.properties configuration
log4j.configuration.file=file:/t3/envs/wlpqa1/iPortal/log4j.properties
log4j.log.dir=/t3/envs/wlpqa1/iPortal/logs
# application.properties configuration
app.portal.enviroment=internal
# config.properties configuration
env.portal.webservice.host=smpqsq01
env.portal.webservice.port=7041
env.search.beginUri=http://t3qa.tms.toyota.com/t3Portal/internal
env.timer.webservice.host=smpqsq01
env.timer.webservice.port=7021
env.portal.id.webservice.host=smpqsq01
env.portal.id.webservice.port=7021
# portal.properties configuration
tas.email.url=http://t3qa.tms.toyota.com/t3Portal
tas.editor.attachment.path=/t3/envs/wlpqa1/iPortal/attachment/
# brioreport.properties configuration
report.key.reportHost=smbrip11.tms.toyota.com
report.key.reportPort=1820
report.tas.report.url=/t3reporting/dataaccess/Browse?REQUEST_TYPE=GET_DOCUMENT&DOC_UUID=000001005330d663-0000-ea23-0a3f070b&DOC_VERSION=1&JScript=enable

View File

@ -1,81 +0,0 @@
unix.bea.dir=/t3/apps/wl/8.1.3
win.bea.dir=/bea
jdk.ver=jdk142_04
weblogic.ver=weblogic81
unix.cvsroot.dir=/t3/build/cruisecontrol/checkout
win.cvsroot.dir=/dev
win.deploy.dir=/dev/t3/library/deploy
unix.deploy.dir=/t3/envs/wlptest1
weblogic.domain.name=iPortal
weblogic.database.user=t3wlpint
weblogic.database.password=t3wlpint
weblogic.database.server=hppqsd01
weblogic.database.port=1521
weblogic.database.SID=T3DT
# Used by i/ePortal
refinery.database.user=t3datglobl
refinery.database.password=t3datglobl
refinery.database.server=hppqsd01
refinery.database.port=1521
refinery.database.SID=T3DT
refineryext.database.user=t3datglobl
refineryext.database.password=t3datglobl
refineryext.database.server=hppqsd01
refineryext.database.port=1521
refineryext.database.SID=T3DT
weblogic.admin.host=smpqst01
weblogic.admin.port=7021
weblogic.admin.sslport=7022
weblogic.debug.port=8023
weblogic.system.user=system
weblogic.system.password=password
weblogic.NovellAuthenticator.host=tau.tms.toyota.com
weblogic.NovellAuthenticator.principal=cn=T3intPortalBroker,ou=svcaccounts,ou=spec,o=teds
weblogic.NovellAuthenticator.password=intPortalBrokert3
weblogic.IAExtension.SiteMinderAdmin=siteminder
weblogic.IAExtension.SiteMinderAdminPassword={3DES}PeLrMhffwaQ=
weblogic.additional.security=Security:Name=myrealmIAExtension
weblogic.ExecuteQueue=15
# web.xml configuration
webxml.auth-method=CLIENT-CERT
# weblogic.xml configuration
weblogicxml.publisher.local-path=/t3/data/pub
weblogicxml.staticcontent.local-path=/t3/data
weblogicxml.jsp.debug=true
weblogicxml.jsp.pageCheckSeconds=1
weblogicxml.jsp.precompile=false
weblogicxml.jsp.precompileContinue=false
# log4j.properties configuration
log4j.configuration.file=file:/t3/envs/wlptest1/iPortal/log4j.properties
log4j.log.dir=/t3/envs/wlptest1/iPortal/logs
# application.properties configuration
app.portal.enviroment=internal
# config.properties configuration
env.portal.webservice.host=smpqst01
env.portal.webservice.port=7041
env.search.beginUri=http://t3test.tms.toyota.com/t3Portal/internal
env.timer.webservice.host=smpqst01
env.timer.webservice.port=7021
env.portal.id.webservice.host=smpqst01
env.portal.id.webservice.port=7021
# portal.properties configuration
tas.email.url=http://t3test.tms.toyota.com/t3Portal
tas.editor.attachment.path=/t3/envs/wlptest1/iPortal/attachment/
# brioreport.properties configuration
report.key.reportHost=smbrit03.tms.toyota.com
report.key.reportPort=1810
report.tas.report.url=/t3reporting/dataaccess/Browse?REQUEST_TYPE=GET_DOCUMENT&DOC_UUID=00000100f6bb076d-0000-eafc-0a311104&DocVersion=1&JScript=enable

View File

@ -1,30 +0,0 @@
#!/bin/sh
# -------------------------------------------------------------
# This process creates the application configuration properties
# ------------------------------------------------------------
envProperties=/t3/build/cruisecontrol/checkout/t3/library/config
templateProperties=/t3/build/cruisecontrol/checkout/t3/library/src/application/t3PortalApp/portal_properties/internal
envs="wlpdev1 wlptest1 wlpqa1 wlppp1"
for i in $envs
do
cp $envProperties/env.properties.iportal.${i} ${i}.properties
done
mv wlpdev1.properties dev.properties
mv wlptest1.properties test.properties
mv wlpqa1.properties qa.properties
mv wlppp1.properties prod.properties
mkdir env
mv *.properties env
mkdir app
cp $templateProperties/portal.properties app
cp $templateProperties/config.properties app
cp $templateProperties/brioreport.properties app

View File

@ -1,477 +0,0 @@
+qa = Environment for qa
+prod = Environment for prod
+dev = Environment for dev
+test = Environment for test
*app.portal.enviroment
{
qa = internal
prod = internal
dev = internal
test = internal
}
*env.portal.id.webservice.host
{
qa = smpqsq01
prod = smpqsp01
dev = smpqsd01
test = smpqst01
}
*env.portal.id.webservice.port
{
qa = 7021
prod = 7021
dev = 7021
test = 7021
}
*env.portal.webservice.host
{
qa = smpqsq01
prod = smpqsp01
dev = smpqsd01
test = smpqst01
}
*env.portal.webservice.port
{
qa = 7041
prod = 7041
dev = 7041
test = 7041
}
*env.search.beginUri
{
qa = http://t3qa.tms.toyota.com/t3Portal/internal
prod = http://t3.tms.toyota.com/t3Portal/internal
dev = http://t3privdev.tms.toyota.com/t3Portal/internal
test = http://t3test.tms.toyota.com/t3Portal/internal
}
*env.timer.webservice.host
{
qa = smpqsq01
prod = smpqsp01
dev = smpqsd01
test = smpqst01
}
*env.timer.webservice.port
{
qa = 7021
prod = 7021
dev = 7021
test = 7021
}
*jdk.ver
{
qa = jdk142_04
prod = jdk142_04
dev = jdk142_04
test = jdk142_04
}
*log4j.configuration.file
{
qa = file:/t3/envs/wlpqa1/iPortal/log4j.properties
prod = file:/t3/envs/wlppp1/iPortal/log4j.properties
dev = file:/t3/envs/wlpdev1/iPortal/log4j.properties
test = file:/t3/envs/wlptest1/iPortal/log4j.properties
}
*log4j.log.dir
{
qa = /t3/envs/wlpqa1/iPortal/logs
prod = /t3/envs/wlppp1/iPortal/logs
dev = /t3/envs/wlpdev1/iPortal/logs
test = /t3/envs/wlptest1/iPortal/logs
}
*refinery.database.SID
{
qa = T3IA
prod = T3IP
dev = T3DD
test = T3DT
}
*refinery.database.password
{
qa = t3datglobl
prod = t3dgprod
dev = t3datglobl
test = t3datglobl
}
*refinery.database.port
{
qa = 1521
prod = 1521
dev = 1521
test = 1521
}
*refinery.database.server
{
qa = hppqsq11
prod = hppqsp11
dev = hppqsd01
test = hppqsd01
}
*refinery.database.user
{
qa = t3datglobl
prod = t3datglobl
dev = t3datglobl
test = t3datglobl
}
*refineryext.database.SID
{
qa = T3IA
prod = T3IP
dev = T3DD
test = T3DT
}
*refineryext.database.password
{
qa = t3datglobl
prod = t3dgprod
dev = t3datglobl
test = t3datglobl
}
*refineryext.database.port
{
qa = 1521
prod = 1521
dev = 1521
test = 1521
}
*refineryext.database.server
{
qa = hppqsq11
prod = hppqsp11
dev = hppqsd01
test = hppqsd01
}
*refineryext.database.user
{
qa = t3datglobl
prod = t3datglobl
dev = t3datglobl
test = t3datglobl
}
*report.key.reportHost
{
qa = smbrip11.tms.toyota.com
prod = smbrip10.tms.toyota.com
dev = smbrit03.tms.toyota.com
test = smbrit03.tms.toyota.com
}
*report.key.reportPort
{
qa = 1820
prod = 1800
dev = 1810
test = 1810
}
*report.tas.report.url
{
qa = /t3reporting/dataaccess/Browse?REQUEST_TYPE=GET_DOCUMENT&DOC_UUID=000001005330d663-0000-ea23-0a3f070b&DOC_VERSION=1&JScript=enable
prod = /t3reporting/dataaccess/Browse?REQUEST_TYPE=GET_DOCUMENT&DOC_UUID=00000100966a65c0-0000-81b5-0a3f070a&DOC_VERSION=1&JScript=enable
dev = /t3reporting/dataaccess/Browse?REQUEST_TYPE=GET_DOCUMENT&DOC_UUID=00000100f6bb076d-0000-eafc-0a311104&DocVersion=1&JScript=enable
test = /t3reporting/dataaccess/Browse?REQUEST_TYPE=GET_DOCUMENT&DOC_UUID=00000100f6bb076d-0000-eafc-0a311104&DocVersion=1&JScript=enable
}
*tas.editor.attachment.path
{
qa = /t3/envs/wlpqa1/iPortal/attachment/
prod = /t3/envs/wlppp1/iPortal/attachment/
dev = /t3/envs/wlpdev1/iPortal/attachment/
test = /t3/envs/wlptest1/iPortal/attachment/
}
*tas.email.url
{
qa = http://t3qa.tms.toyota.com/t3Portal
prod = http://t3.tms.toyota.com/t3Portal
dev = http://t3privdev.tms.toyota.com/t3Portal
test = http://t3test.tms.toyota.com/t3Portal
}
*unix.bea.dir
{
qa = /t3/apps/wl/8.1.3
prod = /t3/apps/wl/8.1.3
dev = /t3/apps/wl/8.1.3
test = /t3/apps/wl/8.1.3
}
*unix.cvsroot.dir
{
qa = /t3/build/cruisecontrol/checkout
prod = /t3/build/cruisecontrol/checkout
dev = /t3/build/cruisecontrol/checkout
test = /t3/build/cruisecontrol/checkout
}
*unix.deploy.dir
{
qa = /t3/envs/wlpqa1
prod = /t3/envs/wlppp1
dev = /t3/envs/wlpdev1
test = /t3/envs/wlptest1
}
*weblogic.ExecuteQueue
{
qa = 100
prod = 100
dev = 15
test = 15
}
*weblogic.IAExtension.SiteMinderAdmin
{
qa = t3admin
prod = t3admin
dev = siteminder
test = siteminder
}
*weblogic.IAExtension.SiteMinderAdminPassword
{
qa = 42T3amm
prod = {3DES}FZxvhDswJrc=
dev = {3DES}3x8+x75ipmk=
test = {3DES}PeLrMhffwaQ=
}
*weblogic.NovellAuthenticator.host
{
qa = smtbgq15.tms.toyota.com
prod = smtbgp05.tms.toyota.com
dev = smtbgd01
test = tau.tms.toyota.com
}
*weblogic.NovellAuthenticator.password
{
qa = intPortalBrokert3
prod = intPortalBrokert3
dev = intportalbrokert3
test = intPortalBrokert3
}
*weblogic.NovellAuthenticator.principal
{
qa = cn=T3intPortalBroker,ou=svcaccounts,ou=spec,o=teds
prod = cn=T3intPortalBroker,ou=svcaccounts,ou=spec,o=teds
dev = cn=T3intPortalBroker,ou=svcaccounts,ou=spec,o=teds
test = cn=T3intPortalBroker,ou=svcaccounts,ou=spec,o=teds
}
*weblogic.additional.security
{
qa = Security:Name=myrealmIAExtension
prod = Security:Name=myrealmIAExtension
dev = Security:Name=myrealmIAExtension
test = Security:Name=myrealmIAExtension
}
*weblogic.admin.host
{
qa = smpqsq01
prod = smpqsp01
dev = smpqsd01
test = smpqst01
}
*weblogic.admin.port
{
qa = 7021
prod = 7021
dev = 7021
test = 7021
}
*weblogic.admin.sslport
{
qa = 7022
prod = 7022
dev = 7022
test = 7022
}
*weblogic.database.SID
{
qa = T3IA
prod = T3IP
dev = T3DD
test = T3DT
}
*weblogic.database.password
{
qa = t3wlpint
prod = t3wlpintprod
dev = t3wlpint
test = t3wlpint
}
*weblogic.database.port
{
qa = 1521
prod = 1521
dev = 1521
test = 1521
}
*weblogic.database.server
{
qa = hppqsq11
prod = hppqsp11
dev = hppqsd01
test = hppqsd01
}
*weblogic.database.user
{
qa = t3wlpint
prod = t3wlpint
dev = t3wlpint
test = t3wlpint
}
*weblogic.debug.port
{
qa = 8023
prod = 8023
dev = 8023
test = 8023
}
*weblogic.domain.name
{
qa = iPortal
prod = iPortal
dev = iPortal
test = iPortal
}
*weblogic.system.password
{
qa = password
prod = password
dev = password
test = password
}
*weblogic.system.user
{
qa = system
prod = system
dev = system
test = system
}
*weblogic.ver
{
qa = weblogic81
prod = weblogic81
dev = weblogic81
test = weblogic81
}
*weblogicxml.jsp.debug
{
qa = false
prod = false
dev = true
test = true
}
*weblogicxml.jsp.pageCheckSeconds
{
qa = -1
prod = -1
dev = 1
test = 1
}
*weblogicxml.jsp.precompile
{
qa = true
prod = true
dev = false
test = false
}
*weblogicxml.jsp.precompileContinue
{
qa = true
prod = true
dev = false
test = false
}
*weblogicxml.publisher.local-path
{
qa = /t3/data/pub
prod = /t3/data/pub
dev = /t3/data/pub
test = /t3/data/pub
}
*weblogicxml.staticcontent.local-path
{
qa = /t3/data
prod = /t3/data
dev = /t3/data
test = /t3/data
}
*webxml.auth-method
{
qa = CLIENT-CERT
prod = CLIENT-CERT
dev = CLIENT-CERT
test = CLIENT-CERT
}
*win.bea.dir
{
qa = /bea
prod = /bea
dev = /bea
test = /bea
}
*win.cvsroot.dir
{
qa = /dev
prod = /dev
dev = /dev
test = /dev
}
*win.deploy.dir
{
qa = /dev/t3/library/deploy
prod = /dev/t3/library/deploy
dev = /dev/t3/library/deploy
test = /dev/t3/library/deploy
}

View File

@ -1,52 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-parent</artifactId>
<version>2.0-beta-1-SNAPSHOT</version>
</parent>
<artifactId>maven-csharp-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>csharp-plugin</name>
<version>1.0-SNAPSHOT</version>
<inceptionYear>2005</inceptionYear>
<description>M2 csharp plugin</description>
<contributors>
<contributor>
<name>Gilles Dodinet</name>
<email>gdodinet@karmicsoft.com</email>
<organization>Karmic Software Research</organization>
</contributor>
</contributors>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
<version>2.0-beta-1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-project</artifactId>
<version>2.0-beta-1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>plexus</groupId>
<artifactId>plexus-compiler-api</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.5</version>
</dependency>
<dependency>
<groupId>ant</groupId>
<artifactId>ant-nodeps</artifactId>
<version>1.6.5</version>
</dependency>
</dependencies>
</project>

View File

@ -1,157 +0,0 @@
package org.apache.plugins.csharp.compiler;
/*
* Copyright 2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.apache.plugins.csharp.helpers.AntBuildListener;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.taskdefs.optional.dotnet.CSharp;
import org.codehaus.plexus.compiler.AbstractCompiler;
import org.codehaus.plexus.compiler.CompilerConfiguration;
import java.io.File;
import java.util.List;
import java.util.Map;
/**
* @author <a href="mailto:gdodinet@karmicsoft.com">Gilles Dodinet</a>
* @version $Id$
*/
public class CSharpCompiler
extends AbstractCompiler
{
private File basedir;
private AntBuildListener antBuildListener;
private String references;
public List compile( CompilerConfiguration config )
throws Exception
{
CSharp csc = createCompiler( config );
csc.execute();
return null;
}
private CSharp createCompiler( CompilerConfiguration config )
throws Exception
{
Map compilerOptions = config.getCompilerOptions();
CSharp csc = new CSharp();
Project antProject = new Project();
antProject.setBaseDir( basedir );
if ( antBuildListener == null )
{
antBuildListener = new AntBuildListener();
}
antProject.addBuildListener( antBuildListener );
csc.setProject( antProject );
csc.setOptimize( getBooleanOption( compilerOptions, "optimize", true ) );
csc.setUnsafe( getBooleanOption( compilerOptions, "unsafe", false ) );
csc.setIncremental( getBooleanOption( compilerOptions, "incremental", false ) );
csc.setFullPaths( getBooleanOption( compilerOptions, "fullpaths", true ) );
csc.setWarnLevel( getIntOption( compilerOptions, "warnLevel", 4 ) );
csc.setDebug( getBooleanOption( compilerOptions, "debug", true ) );
csc.setMainClass( (String) compilerOptions.get( "mainClass" ) );
String type = (String) compilerOptions.get( "type" );
csc.setTargetType( type );
csc.setReferences( references );
File destDir = new File( config.getOutputLocation() );
if ( !destDir.exists() )
{
destDir.mkdirs();
}
csc.setDestDir( destDir );
String destFileName = (String) compilerOptions.get( "destFile" );
if ( destFileName == null )
{
destFileName = (String) compilerOptions.get( "mainClass" );
}
csc.setDestFile( new File( destDir, destFileName + "." + getTypeExtension( type ) ) );
return csc;
}
/**
* @param type
* @return
* @throws Exception
*/
private String getTypeExtension( String type )
throws Exception
{
if ( "exe".equals( type ) || "winexe".equals( type ) )
{
return "exe";
}
if ( "library".equals( type ) || "module".equals( type ) )
{
return "dll";
}
throw new Exception( "Unrecognized type" );
}
private boolean getBooleanOption( Map options, String optionName, boolean defaultValue )
{
Boolean optionValue = (Boolean) options.get( optionName );
return optionValue != null ? optionValue.booleanValue() : defaultValue;
}
private int getIntOption( Map options, String optionName, int defaultValue )
{
Integer optionValue = (Integer) options.get( optionName );
return optionValue != null ? optionValue.intValue() : defaultValue;
}
/**
* @param basedir
*/
public void setBasedir( File basedir )
{
this.basedir = basedir;
}
/**
* @param antBuildListener The antBuildListener to set.
*/
public void setAntBuildListener( AntBuildListener antBuildListener )
{
this.antBuildListener = antBuildListener;
}
/**
* @param additionalModules The additionalModules to set.
*/
public void setReferences( String additionalModules )
{
this.references = additionalModules;
}
}

View File

@ -1,365 +0,0 @@
package org.apache.plugins.csharp.compiler;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.project.MavenProject;
import org.apache.plugins.csharp.helpers.AntBuildListener;
import org.codehaus.plexus.compiler.CompilerConfiguration;
import java.io.File;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
/*
* Copyright 2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @author <a href="mailto:gdodinet@karmicsoft.com">Gilles Dodinet</a>
* @version $Id$
* @description Compiles c# sources
* @goal compile
* @phase compile
* @requiresDependencyResolution compile
*/
public class CSharpCompilerMojo
extends AbstractMojo
{
/**
* @parameter
*/
private String debug = Boolean.TRUE.toString();
/**
* @parameter
*/
private String optimize = Boolean.TRUE.toString();
/**
* @parameter
*/
private String unsafe = Boolean.FALSE.toString();
/**
* @parameter
*/
private String incremental = Boolean.FALSE.toString();
/**
* @parameter
*/
private String fullPaths = Boolean.TRUE.toString();
/**
* @parameter
*/
private String warnLevel = "4";
/**
* @parameter
*/
private String mainClass;
/**
* @parameter expression="${project}"
* @required
* @readonly
*/
private MavenProject project;
/**
* @parameter expression="${project.build.outputDirectory}"
* @required
* @readonly
*/
private String outputDirectory;
/**
* @parameter
*/
private String destFile;
/**
* @parameter
* @required
*/
private String type = "library";
/**
* @parameter expression="${project.compileSourceRoots}"
* @required
* @readonly
*/
private List compileSourceRoots;
public void execute()
throws MojoExecutionException
{
CompilerConfiguration config = new CompilerConfiguration();
Map compilerOptions = new HashMap();
config.setOutputLocation( outputDirectory );
config.setSourceLocations( compileSourceRoots );
compilerOptions.put( "optimize", Boolean.valueOf( optimize ) );
compilerOptions.put( "unsafe", Boolean.valueOf( unsafe ) );
compilerOptions.put( "incremental", Boolean.valueOf( incremental ) );
compilerOptions.put( "fullPaths", Boolean.valueOf( fullPaths ) );
compilerOptions.put( "warnLevel", Integer.valueOf( warnLevel ) );
compilerOptions.put( "mainClass", mainClass );
compilerOptions.put( "destFile", destFile );
//until handlers ready
compilerOptions.put( "type", type );
//compilerOptions.put("type", project.getPackaging());
config.setCompilerOptions( compilerOptions );
CSharpCompiler compiler = new CSharpCompiler();
compiler.setBasedir( project.getBasedir() );
compiler.setAntBuildListener( new AntBuildListener( this.getLog() ) );
String artifactList = "";
Set artifacts = project.getArtifacts();
int u = 0;
for ( Iterator i = artifacts.iterator(); i.hasNext(); )
{
Artifact artifact = (Artifact) i.next();
if ( "dll".equals( artifact.getType() ) )
{
File file = artifact.getFile();
artifactList += file.getAbsolutePath();
if ( u < artifacts.size() - 1 )
{
artifactList += ":";
}
}
u++;
}
compiler.setReferences( artifactList );
try
{
compiler.compile( config );
}
catch ( Exception e )
{
throw new MojoExecutionException( "Error compiling C# sources", e );
}
}
/**
* @return Returns the debug.
*/
public String getDebug()
{
return debug;
}
/**
* @param debug The debug to set.
*/
public void setDebug( String debug )
{
this.debug = debug;
}
/**
* @return Returns the fullPaths.
*/
public String getFullPaths()
{
return fullPaths;
}
/**
* @param fullPaths The fullPaths to set.
*/
public void setFullPaths( String fullPaths )
{
this.fullPaths = fullPaths;
}
/**
* @return Returns the incremental.
*/
public String getIncremental()
{
return incremental;
}
/**
* @param incremental The incremental to set.
*/
public void setIncremental( String incremental )
{
this.incremental = incremental;
}
/**
* @return Returns the mainClass.
*/
public String getMainClass()
{
return mainClass;
}
/**
* @param mainClass The mainClass to set.
*/
public void setMainClass( String mainClass )
{
this.mainClass = mainClass;
}
/**
* @return Returns the optimize.
*/
public String getOptimize()
{
return optimize;
}
/**
* @param optimize The optimize to set.
*/
public void setOptimize( String optimize )
{
this.optimize = optimize;
}
/**
* @return Returns the outputDirectory.
*/
public String getOutputDirectory()
{
return outputDirectory;
}
/**
* @param outputDirectory The outputDirectory to set.
*/
public void setOutputDirectory( String outputDirectory )
{
this.outputDirectory = outputDirectory;
}
/**
* @return Returns the compileSourceRoots.
*/
public List getCompileSourceRoots()
{
return compileSourceRoots;
}
/**
* @param compileSourceRoots The compileSourceRoots to set.
*/
public void setCompileSourceRoots( List compileSourceRoots )
{
this.compileSourceRoots = compileSourceRoots;
}
/**
* @return Returns the project.
*/
public MavenProject getProject()
{
return project;
}
/**
* @param project The project to set.
*/
public void setProject( MavenProject project )
{
this.project = project;
}
/**
* @return Returns the unsafe.
*/
public String getUnsafe()
{
return unsafe;
}
/**
* @param unsafe The unsafe to set.
*/
public void setUnsafe( String unsafe )
{
this.unsafe = unsafe;
}
/**
* @return Returns the warnLevel.
*/
public String getWarnLevel()
{
return warnLevel;
}
/**
* @param warnLevel The warnLevel to set.
*/
public void setWarnLevel( String warnLevel )
{
this.warnLevel = warnLevel;
}
/**
* @return Returns the destFile.
*/
public String getDestFile()
{
return destFile;
}
/**
* @param destFile The destFile to set.
*/
public void setDestFile( String destFile )
{
this.destFile = destFile;
}
/**
* @return Returns the type.
*/
public String getType()
{
return type;
}
/**
* @param type The type to set.
*/
public void setType( String type )
{
this.type = type;
}
}

View File

@ -1,92 +0,0 @@
package org.apache.plugins.csharp.helpers;
/*
* Copyright 2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.apache.maven.plugin.logging.Log;
import org.apache.tools.ant.BuildEvent;
import org.apache.tools.ant.BuildListener;
import org.apache.tools.ant.Project;
/**
* @author <a href="mailto:gdodinet@karmicsoft.com">Gilles Dodinet</a>
* @version $Id$
*/
public final class AntBuildListener
implements BuildListener
{
private Log log;
public AntBuildListener()
{
}
public AntBuildListener( Log log )
{
this.log = log;
}
public void buildFinished( BuildEvent arg0 )
{
}
public void buildStarted( BuildEvent arg0 )
{
}
public void targetStarted( BuildEvent arg0 )
{
}
public void targetFinished( BuildEvent arg0 )
{
}
public void taskStarted( BuildEvent arg0 )
{
}
public void taskFinished( BuildEvent arg0 )
{
}
public void messageLogged( BuildEvent e )
{
if ( log == null )
{
System.out.println( e.getMessage() );
return;
}
switch ( e.getPriority() )
{
case Project.MSG_DEBUG:
log.debug( e.getMessage() );
break;
case Project.MSG_INFO :
log.info( e.getMessage() );
break;
case Project.MSG_WARN :
log.warn( e.getMessage() );
break;
case Project.MSG_ERR :
log.error( e.getMessage() );
break;
default :
break;
}
}
}

View File

@ -1,34 +0,0 @@
<component-set>
<components>
<component>
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
<role-hint>dll</role-hint>
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
<configuration>
<type>dll</type>
<extension>dll</extension>
</configuration>
</component>
<component>
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
<role-hint>exe</role-hint>
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
<configuration>
<type>exe</type>
<extension>exe</extension>
</configuration>
</component>
<component>
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
<role-hint>dotnetexe</role-hint>
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
<configuration>
<phases>
<compile>csharp:compile</compile>
<install>install:install</install>
<deploy>deploy:deploy</deploy>
</phases>
</configuration>
</component>
</components>
</component-set>

View File

@ -1,36 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven</groupId>
<artifactId>maven-csharp-plugin-test</artifactId>
<packaging>dotnetexe</packaging>
<name>csharp-plugin-test</name>
<version>1.0-SNAPSHOT</version>
<inceptionYear>2005</inceptionYear>
<description>M2 csharp plugin Test</description>
<contributors>
<contributor>
<name>Gilles Dodinet</name>
<email>gdodinet@karmicsoft.com</email>
<organization>Karmic Software Research</organization>
</contributor>
</contributors>
<build>
<sourceDirectory>src/main/csharp</sourceDirectory>
<plugins>
<plugin>
<extensions>true</extensions>
<artifactId>maven-csharp-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<configuration>
<mainClass>Com.Test.Test2</mainClass>
<destFile>Test2</destFile>
<type>exe</type>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,17 +0,0 @@
using System;
using System.Text;
namespace Com.Test {
public class Test2 {
public int MyProp {
get { return 1; }
}
[STAThread]
public static void Main(string[] args) {
System.Console.WriteLine("HELLO WORLD");
}
}
}

View File

@ -1 +0,0 @@
--no-plugin-registry --check-plugin-latest

View File

@ -1 +0,0 @@
target/out.txt

View File

@ -1,2 +0,0 @@
install
it0015:it0015

View File

@ -1,39 +0,0 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-it0015-plugin</artifactId>
<packaging>maven-plugin</packaging>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.0-beta-1</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-script-marmalade</artifactId>
<version>2.0-beta-1</version>
</dependency>
<dependency>
<groupId>marmalade</groupId>
<artifactId>marmalade-core</artifactId>
<version>1.0-alpha-4</version>
</dependency>
</dependencies>
<build>
<scriptSourceDirectory>src/main/scripts</scriptSourceDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
</build>
<distributionManagement>
<repository>
<id>central</id>
<name>Test Repository</name>
<url>file:/tmp/testRepo</url>
</repository>
</distributionManagement>
</project>

View File

@ -1,2 +0,0 @@
rm ${artifact:org.apache.maven.plugins:maven-it0015-plugin:1.0-SNAPSHOT:maven-plugin}
rm target/out.txt

View File

@ -1,17 +0,0 @@
package org.apache.maven.it0015.tags;
import org.codehaus.marmalade.metamodel.AbstractMarmaladeTagLibrary;
/**
* @author jdcasey
*/
public class IT0015TagLibrary
extends AbstractMarmaladeTagLibrary
{
public IT0015TagLibrary()
{
registerTag("writeFile", WriteFileTag.class);
}
}

View File

@ -1,66 +0,0 @@
package org.apache.maven.it0015.tags;
import org.codehaus.marmalade.model.AbstractMarmaladeTag;
import org.codehaus.marmalade.runtime.MarmaladeExecutionContext;
import org.codehaus.marmalade.runtime.MarmaladeExecutionException;
import org.codehaus.marmalade.runtime.TagExecutionException;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
/**
* @author jdcasey
*/
public class WriteFileTag
extends AbstractMarmaladeTag
{
public static final String FILE_ATTR = "path";
protected boolean alwaysProcessChildren()
{
return false;
}
protected void doExecute( MarmaladeExecutionContext context ) throws MarmaladeExecutionException
{
String content = (String) getBody(context, String.class);
String filename = (String) requireTagAttribute(FILE_ATTR, String.class, context);
System.out.println("Attempting to write to file: \'" + filename + "\' contents:");
System.out.println(content);
File file = new File(filename);
File dir = file.getParentFile();
if(dir != null && !dir.exists())
{
dir.mkdirs();
}
FileOutputStream fOut = null;
try
{
fOut = new FileOutputStream(file);
fOut.write(content.getBytes());
}
catch ( IOException e )
{
throw new TagExecutionException(getTagInfo(), "Cannot write content to file: " + file, e);
}
finally
{
if(fOut != null)
{
try
{
fOut.flush();
fOut.close();
}
catch(Exception e)
{
}
}
}
}
}

View File

@ -1 +0,0 @@
org.apache.maven.it0015.tags.IT0015TagLibrary

View File

@ -1,17 +0,0 @@
<mojo xmlns="marmalade:mojo">
<metadata>
<goal>it0015</goal>
<description>Output a file with specified contents to [outDir]</description>
<parameters>
<parameter>
<name>outDir</name>
<type>java.lang.String</type>
<expression>${project.build.directory}</expression>
<description>Output directory for files.</description>
</parameter>
</parameters>
</metadata>
<execute>
<it0015:writeFile xmlns:it0015="marmalade:it0015" path="${outDir}/out.txt">This is a test.</it0015:writeFile>
</execute>
</mojo>

View File

@ -1,2 +0,0 @@
updateReleaseInfo=true

View File

@ -1,10 +0,0 @@
<project>
<parent>
<artifactId>maven-archetypes</artifactId>
<groupId>org.apache.maven.archetypes</groupId>
<version>1.0-alpha-4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>maven-archetype-marmalade-mojo</artifactId>
<version>1.0-alpha-4-SNAPSHOT</version>
</project>

View File

@ -1,11 +0,0 @@
<archetype>
<id>mmld-plugin</id>
<sources>
<source>src/main/java/CopyFileTag.java</source>
<source>src/main/java/MyMojoTagLibrary.java</source>
</sources>
<resources>
<resource>src/main/resources/META-INF/marmalade/myMojo.def</resource>
<resource>src/main/resources/myMojo.mmld</resource>
</resources>
</archetype>

View File

@ -1,40 +0,0 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
<packaging>maven-plugin</packaging>
<version>${version}</version>
<name>Maven Marmalade Mojo Archetype</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.0-beta-2</version>
</dependency>
<dependency>
<groupId>marmalade</groupId>
<artifactId>marmalade-core</artifactId>
<version>1.0-alpha-4</version>
</dependency>
<dependency>
<groupId>marmalade</groupId>
<artifactId>marmalade-el-commons</artifactId>
<version>1.0-alpha-3</version>
</dependency>
<dependency>
<groupId>marmalade</groupId>
<artifactId>marmalade-tags-io</artifactId>
<version>1.0-alpha-3</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-script-marmalade</artifactId>
<version>2.0-beta-2</version>
</dependency>
</dependencies>
<build>
<scriptSourceDirectory>src/main/resources</scriptSourceDirectory>
</build>
</project>

View File

@ -1,36 +0,0 @@
package $package;
/*
* Copyright 2001-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.codehaus.marmalade.model.AbstractMarmaladeTag;
import org.codehaus.marmalade.runtime.MarmaladeExecutionContext;
import org.codehaus.marmalade.runtime.MarmaladeExecutionException;
/**
* @author jdcasey
*/
public class CopyFileTag
extends AbstractMarmaladeTag
{
protected void doExecute(MarmaladeExecutionContext context)
throws MarmaladeExecutionException
{
}
}

View File

@ -1,33 +0,0 @@
package $package;
/*
* Copyright 2001-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.codehaus.marmalade.metamodel.AbstractMarmaladeTagLibrary;
/**
* @author jdcasey
*/
public class MyMojoTagLibrary
extends AbstractMarmaladeTagLibrary
{
public MyMojoTagLibrary()
{
registerTag( "copyFile", CopyFileTag.class );
}
}

View File

@ -1,19 +0,0 @@
<?xml version="1.0"?>
<mojo xmlns="marmalade:mojo">
<metadata>
<goal>myMojo</goal>
<description>Output a file with specified contents to [outputDirectory]/touch.txt</description>
<parameters>
<parameter>
<name>outputDirectory</name>
<expression>${project.build.directory}</expression>
<description>Output directory for files.</description>
</parameter>
</parameters>
</metadata>
<execute>
<io:file xmlns:io="marmalade:io" path="${outputDirectory}/touch.txt" mkdirs="true">touch.txt</io:file>
<m:copyFile xmlns:m="marmalade:myMojo" source="${outputDirectory}/touch.txt" target="${outputDirectory}/touch2.txt"/>
</execute>
</mojo>

View File

@ -1,24 +0,0 @@
<model xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<artifactId>maven-plugin-parent</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<version>2.0-alpha-3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>maven-hello-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>Maven Hello World Plugin</name>
<version>1.0-SNAPSHOT</version>
<build>
<scriptSourceDirectory>src/main/scripts</scriptSourceDirectory>
<resources>
<resource>
<directory>src/main/scripts</directory>
<includes>
<include>**/*.mmld</include>
</includes>
</resource>
</resources>
</build>
</model>

View File

@ -1,20 +0,0 @@
<mojo xmlns="marmalade:mojo">
<metadata>
<goal>hello</goal>
<description>Say hello to the world.</description>
<parameters>
<parameter>
<name>salutation</name>
<expression>${salutation}</expression>
<default>Hello</default>
<description>The salutation to use when saying hello.</description>
</parameter>
</parameters>
</metadata>
<execute>
<c:out xmlns:c="marmalade:core">
${salutation}, World.
</c:out>
</execute>
</mojo>

View File

@ -1,39 +0,0 @@
<project>
<parent>
<artifactId>maven-plugin-tools</artifactId>
<groupId>org.apache.maven</groupId>
<version>2.0-beta-3-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>maven-plugin-tools-marmalade</artifactId>
<name>Maven Plugin Tools for Marmalade</name>
<version>2.0-beta-3-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-script-marmalade</artifactId>
<version>2.0-beta-3-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-tools-api</artifactId>
<version>2.0-beta-3-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>marmalade</groupId>
<artifactId>marmalade-core</artifactId>
<version>1.0-alpha-4</version>
<exclusions>
<exclusion>
<artifactId>plexus-utils</artifactId>
<groupId>plexus</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-descriptor</artifactId>
<version>2.0-beta-3-SNAPSHOT</version>
</dependency>
</dependencies>
</project>

View File

@ -1,142 +0,0 @@
package org.apache.maven.tools.plugin.extractor.marmalade;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException;
import org.apache.maven.plugin.descriptor.MojoDescriptor;
import org.apache.maven.plugin.descriptor.PluginDescriptor;
import org.apache.maven.script.marmalade.MarmaladeMojoExecutionDirectives;
import org.apache.maven.script.marmalade.tags.MojoTag;
import org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor;
import org.apache.maven.tools.plugin.extractor.ExtractionException;
import org.codehaus.marmalade.launch.MarmaladeLaunchException;
import org.codehaus.marmalade.launch.MarmaladeLauncher;
import org.codehaus.marmalade.model.MarmaladeScript;
import org.codehaus.marmalade.model.MarmaladeTag;
import org.codehaus.plexus.component.factory.marmalade.PlexusIntegratedLog;
import org.codehaus.plexus.logging.Logger;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* @author jdcasey
*/
public class MarmaladeMojoDescriptorExtractor
extends AbstractScriptedMojoDescriptorExtractor
{
protected String getScriptFileExtension()
{
return ".mmld";
}
protected List extractMojoDescriptors( Map sourceFilesKeyedByBasedir, PluginDescriptor pluginDescriptor )
throws ExtractionException, InvalidPluginDescriptorException
{
ClassLoader oldCl = Thread.currentThread().getContextClassLoader();
try
{
Thread.currentThread().setContextClassLoader( MarmaladeMojoDescriptorExtractor.class.getClassLoader() );
List descriptors = new ArrayList();
for ( Iterator mapIterator = sourceFilesKeyedByBasedir.entrySet().iterator(); mapIterator.hasNext(); )
{
Map.Entry entry = (Map.Entry) mapIterator.next();
String basedir = (String) entry.getKey();
Set scriptFiles = (Set) entry.getValue();
for ( Iterator it = scriptFiles.iterator(); it.hasNext(); )
{
File scriptFile = (File) it.next();
try
{
MarmaladeLauncher launcher = new MarmaladeLauncher().withInputFile( scriptFile );
Logger logger = getLogger();
if ( logger != null )
{
PlexusIntegratedLog log = new PlexusIntegratedLog();
log.enableLogging( logger );
launcher = launcher.withLog( log );
}
MarmaladeScript script = launcher.getMarmaladeScript();
MarmaladeTag rootTag = script.getRoot();
if ( rootTag instanceof MojoTag )
{
launcher.withVariable( MarmaladeMojoExecutionDirectives.SCRIPT_BASEPATH_INVAR, basedir );
launcher
.withVariable( MarmaladeMojoExecutionDirectives.PLUGIN_DESCRIPTOR, pluginDescriptor );
Map contextMap = launcher.run();
MojoDescriptor descriptor = (MojoDescriptor) contextMap
.get( MarmaladeMojoExecutionDirectives.METADATA_OUTVAR );
descriptors.add( descriptor );
}
else
{
getLogger().debug(
"Found non-mojo marmalade script at: " + scriptFile
+ ".\nIts root tag is {element: "
+ rootTag.getTagInfo().getElement() + ", class: "
+ rootTag.getClass().getName() + "}" );
}
}
catch ( IOException e )
{
throw new ExtractionException( "Error extracting mojo descriptor from Marmalade script: " + scriptFile, e );
}
catch ( MarmaladeLaunchException e )
{
Throwable cause = e.getCause();
if ( cause instanceof InvalidPluginDescriptorException )
{
throw (InvalidPluginDescriptorException) cause;
}
else
{
throw new ExtractionException( "Error extracting mojo descriptor from Marmalade script: " + scriptFile, e );
}
}
}
}
return descriptors;
}
finally
{
Thread.currentThread().setContextClassLoader( oldCl );
}
}
}

View File

@ -1,17 +0,0 @@
<component-set>
<components>
<!--
|
| MarmaladeMojoDescriptorExtractor, a MojoDescriptor extractor to read
| descriptors from marmalade-mojo's.
|
-->
<component>
<role>org.apache.maven.tools.plugin.extractor.MojoDescriptorExtractor</role>
<role-hint>marmalade</role-hint>
<implementation>org.apache.maven.tools.plugin.extractor.marmalade.MarmaladeMojoDescriptorExtractor</implementation>
</component>
</components>
</component-set>

View File

@ -1,132 +0,0 @@
package org.apache.maven.tools.plugin.extractor.marmalade;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.apache.maven.model.Build;
import org.apache.maven.model.Model;
import org.apache.maven.plugin.descriptor.MojoDescriptor;
import org.apache.maven.plugin.descriptor.PluginDescriptor;
import org.apache.maven.project.MavenProject;
import org.apache.maven.tools.plugin.extractor.MojoDescriptorExtractor;
import org.codehaus.plexus.PlexusTestCase;
import java.io.File;
import java.net.URL;
import java.util.List;
/**
* @author jdcasey
*/
public class MarmaladeMojoDescriptorExtractorTest
extends PlexusTestCase
{
private String findThisBasedir()
{
String myClassFile = getClass().getName().replace('.', '/') + ".class";
ClassLoader cloader = getClass().getClassLoader();
URL myClassResource = cloader.getResource( myClassFile );
String fullPath = myClassResource.getPath();
return fullPath.substring( 0, fullPath.length() - myClassFile.length() );
}
public void testShouldFindOneMojo()
throws Exception
{
File basedir = dirname( "testMojo.mmld" );
Model model = new Model();
model.setArtifactId( "testArtifactId" );
MavenProject project = new MavenProject( model );
project.setFile( new File( basedir, "pom.xml" ) );
System.out.println( "Basedir: " + basedir );
project.addScriptSourceRoot( basedir.getPath() );
Build build = new Build();
build.setOutputDirectory( findThisBasedir() );
project.setBuild( build );
MarmaladeMojoDescriptorExtractor extractor = (MarmaladeMojoDescriptorExtractor) lookup(
MojoDescriptorExtractor.ROLE, "marmalade" );
PluginDescriptor pluginDescriptor = new PluginDescriptor();
pluginDescriptor.setGoalPrefix( "test" );
List descriptors = extractor.execute( project, pluginDescriptor );
assertEquals( 1, descriptors.size() );
MojoDescriptor descriptor = (MojoDescriptor) descriptors.iterator().next();
assertEquals( pluginDescriptor, descriptor.getPluginDescriptor() );
assertEquals( "marmalade", descriptor.getLanguage() );
assertEquals( "testGoal", descriptor.getGoal() );
assertEquals( 1, descriptor.getParameters().size() );
}
// public void testShouldFindMojoDescriptorViaContainerDrivenExtractor()
// throws Exception
// {
// Embedder embedder = new Embedder();
// embedder.start(new ClassWorld("test",
// Thread.currentThread().getContextClassLoader()));
//
// MojoScanner scanner = (MojoScanner) embedder.lookup(MojoScanner.ROLE);
//
// Build build = new Build();
// build.setSourceDirectory(".");
//
// Model model = new Model();
// model.setBuild(build);
//
// MavenProject project = new MavenProject(model);
// project.setFile(new File(dirname("testMojo.mmld"), "pom.xml"));
//
// Set descriptors = scanner.execute(project);
// assertEquals(1, descriptors.size());
//
// MavenMojoDescriptor mmDesc =
// (MavenMojoDescriptor)descriptors.iterator().next();
// assertEquals("marmalade", mmDesc.getComponentFactory());
// assertEquals("testId", mmDesc.getMojoDescriptor().getId());
// assertEquals("testGoal", mmDesc.getMojoDescriptor().getGoal());
// assertEquals(1, mmDesc.getMojoDescriptor().getParameters().size());
// }
//
private File dirname( String resourceName )
{
ClassLoader cloader = Thread.currentThread().getContextClassLoader();
URL resource = cloader.getResource( resourceName );
File dir = null;
if ( resource != null )
{
File file = new File( resource.getPath() );
dir = file.getParentFile();
}
return dir;
}
}

View File

@ -1,20 +0,0 @@
<?xml version="1.0"?>
<mojo xmlns="marmalade:mojo">
<metadata>
<goal>testGoal</goal>
<description>This is a test mojo</description>
<parameters>
<parameter>
<name>testParam</name>
<default>TestValue</default>
<expression>${pom.file}</expression>
<required>true</required>
<description>This is a test parameter</description>
</parameter>
</parameters>
</metadata>
<execute>
<set xmlns="marmalade:core" var="testVar" extern="true">testVal</set>
</execute>
</mojo>

View File

@ -1,28 +0,0 @@
<project>
<parent>
<artifactId>maven-script</artifactId>
<groupId>org.apache.maven</groupId>
<version>2.0-beta-3-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>maven-script-marmalade</artifactId>
<name>Maven Marmalade Mojo Support</name>
<version>2.0-beta-3-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>marmalade</groupId>
<artifactId>marmalade-core</artifactId>
<version>1.0-alpha-4</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-descriptor</artifactId>
<version>2.0-beta-3-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>plexus</groupId>
<artifactId>plexus-marmalade-factory</artifactId>
<version>1.0-alpha-5</version>
</dependency>
</dependencies>
</project>

View File

@ -1,114 +0,0 @@
package org.apache.maven.script.marmalade;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.codehaus.marmalade.model.MarmaladeScript;
import org.codehaus.marmalade.runtime.DefaultContext;
import org.codehaus.marmalade.runtime.MarmaladeExecutionContext;
import org.codehaus.marmalade.runtime.MarmaladeExecutionException;
import org.codehaus.plexus.component.MapOrientedComponent;
import org.codehaus.plexus.component.repository.ComponentRequirement;
import org.codehaus.plexus.util.StringUtils;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.Map;
import java.util.TreeMap;
/**
* @author jdcasey
*/
public class MarmaladeMojo
extends AbstractMojo
implements MapOrientedComponent
{
private MarmaladeScript script;
private Map contextMap = new TreeMap();
public MarmaladeMojo( MarmaladeScript script )
{
this.script = script;
}
public void execute()
throws MojoExecutionException
{
MarmaladeExecutionContext context = new DefaultContext( contextMap );
StringWriter sOutWriter = new StringWriter();
PrintWriter outWriter = new PrintWriter( sOutWriter );
context.setOutWriter( outWriter );
StringWriter sErrWriter = new StringWriter();
PrintWriter errWriter = new PrintWriter( sErrWriter );
context.setErrWriter( errWriter );
try
{
script.execute( context );
}
catch ( MarmaladeExecutionException e )
{
throw new MojoExecutionException( "[ERROR] While executing mojo script.\n Error: " + e.getLocalizedMessage(), e );
}
StringBuffer output = sOutWriter.getBuffer();
if ( output.length() > 0 )
{
getLog().info( output );
}
StringBuffer error = sErrWriter.getBuffer();
if ( error.length() > 0 )
{
getLog().error( error );
}
// TODO: need to be able to pass back results
// Map externalizedVars = context.getExternalizedVariables();
// for ( Iterator it = externalizedVars.entrySet().iterator(); it.hasNext(); )
// {
// Map.Entry entry = (Map.Entry) it.next();
//
// request.addContextValue( entry.getKey(), entry.getValue() );
// }
}
public void addComponentRequirement( ComponentRequirement requirementDescriptor, Object requirementValue )
{
String key = requirementDescriptor.getFieldName();
if ( StringUtils.isEmpty( key ) )
{
key = requirementDescriptor.getRole();
}
contextMap.put( key, requirementValue );
}
public void setComponentConfiguration( Map componentConfiguration )
{
contextMap.putAll( componentConfiguration );
}
}

View File

@ -1,38 +0,0 @@
package org.apache.maven.script.marmalade;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @author jdcasey Created on Feb 8, 2005
*/
public final class MarmaladeMojoExecutionDirectives
{
public static final String METADATA_OUTVAR = "metadata";
public static final String SCRIPT_BASEPATH_INVAR = "basePath";
public static final String REQUEST_INVAR = "request";
public static final String RESPONSE_INVAR = "response";
public static final String PLUGIN_DESCRIPTOR = "pluginDescriptor";
private MarmaladeMojoExecutionDirectives()
{
}
}

View File

@ -1,50 +0,0 @@
package org.apache.maven.script.marmalade.tags;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.codehaus.marmalade.model.AbstractMarmaladeTag;
import org.codehaus.marmalade.runtime.MarmaladeExecutionContext;
import org.codehaus.marmalade.runtime.MarmaladeExecutionException;
import org.codehaus.marmalade.runtime.TagExecutionException;
/**
* @author jdcasey Created on Feb 8, 2005
*/
public abstract class AbstractBooleanValuedBodyTag
extends AbstractMarmaladeTag
{
protected boolean alwaysProcessChildren()
{
return false;
}
protected void doExecute( MarmaladeExecutionContext context ) throws MarmaladeExecutionException
{
Boolean bodyValue = (Boolean) getBody( context, Boolean.class );
if ( bodyValue == null )
{
throw new TagExecutionException( getTagInfo(), "Tag body must specify a valid boolean value." );
}
setValue( bodyValue );
}
protected abstract void setValue( Boolean value ) throws MarmaladeExecutionException;
}

View File

@ -1,44 +0,0 @@
package org.apache.maven.script.marmalade.tags;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.codehaus.marmalade.model.AbstractMarmaladeTag;
import org.codehaus.marmalade.runtime.MarmaladeExecutionContext;
import org.codehaus.marmalade.runtime.MarmaladeExecutionException;
/**
* @author jdcasey Created on Feb 8, 2005
*/
public abstract class AbstractStringValuedBodyTag
extends AbstractMarmaladeTag
{
protected boolean alwaysProcessChildren()
{
return false;
}
protected void doExecute( MarmaladeExecutionContext context ) throws MarmaladeExecutionException
{
String bodyValue = getRawBody( context );
setValue( bodyValue );
}
protected abstract void setValue( String value ) throws MarmaladeExecutionException;
}

View File

@ -1,34 +0,0 @@
package org.apache.maven.script.marmalade.tags;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.codehaus.marmalade.runtime.MarmaladeExecutionException;
/**
* @author jdcasey Created on Feb 8, 2005
*/
public class AggregatorTag
extends AbstractBooleanValuedBodyTag
{
protected void setValue( Boolean value ) throws MarmaladeExecutionException
{
MetadataTag metadataTag = (MetadataTag) requireParent( MetadataTag.class );
metadataTag.setAggregator( value.booleanValue() );
}
}

View File

@ -1,27 +0,0 @@
package org.apache.maven.script.marmalade.tags;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @author jdcasey
*/
public interface DescriptionParent
{
void setDescription( String description );
}

View File

@ -1,34 +0,0 @@
package org.apache.maven.script.marmalade.tags;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.codehaus.marmalade.runtime.MarmaladeExecutionException;
/**
* @author jdcasey Created on Feb 8, 2005
*/
public class DescriptionTag
extends AbstractStringValuedBodyTag
{
protected void setValue( String value ) throws MarmaladeExecutionException
{
DescriptionParent parent = (DescriptionParent) requireParent( DescriptionParent.class );
parent.setDescription( value );
}
}

View File

@ -1,35 +0,0 @@
package org.apache.maven.script.marmalade.tags;
/*
* Copyright 2001-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.codehaus.marmalade.runtime.MarmaladeExecutionException;
/**
* @author jdcasey Created on Feb 8, 2005
*/
public class ExecuteGoalTag
extends AbstractStringValuedBodyTag
{
protected void setValue( String value )
throws MarmaladeExecutionException
{
MetadataTag metadataTag = (MetadataTag) requireParent( MetadataTag.class );
metadataTag.setExecuteGoal( value );
}
}

View File

@ -1,34 +0,0 @@
package org.apache.maven.script.marmalade.tags;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.codehaus.marmalade.runtime.MarmaladeExecutionException;
/**
* @author jdcasey Created on Feb 8, 2005
*/
public class ExecuteLifecycleTag
extends AbstractStringValuedBodyTag
{
protected void setValue( String value ) throws MarmaladeExecutionException
{
MetadataTag metadataTag = (MetadataTag) requireParent( MetadataTag.class );
metadataTag.setExecuteLifecycle( value );
}
}

View File

@ -1,34 +0,0 @@
package org.apache.maven.script.marmalade.tags;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.codehaus.marmalade.runtime.MarmaladeExecutionException;
/**
* @author jdcasey Created on Feb 8, 2005
*/
public class ExecutePhaseTag
extends AbstractStringValuedBodyTag
{
protected void setValue( String value ) throws MarmaladeExecutionException
{
MetadataTag metadataTag = (MetadataTag) requireParent( MetadataTag.class );
metadataTag.setExecutePhase( value );
}
}

View File

@ -1,43 +0,0 @@
package org.apache.maven.script.marmalade.tags;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.codehaus.marmalade.model.AbstractMarmaladeTag;
import org.codehaus.marmalade.runtime.MarmaladeExecutionContext;
import org.codehaus.marmalade.runtime.MarmaladeExecutionException;
import java.util.Iterator;
/**
* Aggregator tag for the actual meat of the mojo. Simply a pass-through
* surrogate root tag for the eventual component-script (@see MojoTag).
*
* @author jdcasey Created on Feb 8, 2005
*/
public class ExecuteTag
extends AbstractMarmaladeTag
{
protected void doExecute( MarmaladeExecutionContext context ) throws MarmaladeExecutionException
{
for ( Iterator it = children().iterator(); it.hasNext(); )
{
it.next();
}
}
}

View File

@ -1,34 +0,0 @@
package org.apache.maven.script.marmalade.tags;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.codehaus.marmalade.runtime.MarmaladeExecutionException;
/**
* @author jdcasey Created on Feb 8, 2005
*/
public class ExecutionStrategyTag
extends AbstractStringValuedBodyTag
{
protected void setValue( String value ) throws MarmaladeExecutionException
{
MetadataTag metadataTag = (MetadataTag) requireParent( MetadataTag.class );
metadataTag.setExecutionStrategy( value );
}
}

View File

@ -1,34 +0,0 @@
package org.apache.maven.script.marmalade.tags;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.codehaus.marmalade.runtime.MarmaladeExecutionException;
/**
* @author jdcasey Created on Feb 8, 2005
*/
public class GoalTag
extends AbstractStringValuedBodyTag
{
protected void setValue( String value ) throws MarmaladeExecutionException
{
MetadataTag metadataTag = (MetadataTag) requireParent( MetadataTag.class );
metadataTag.setGoal( value );
}
}

View File

@ -1,34 +0,0 @@
package org.apache.maven.script.marmalade.tags;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.codehaus.marmalade.runtime.MarmaladeExecutionException;
/**
* @author jdcasey Created on Feb 8, 2005
*/
public class InheritByDefaultTag
extends AbstractBooleanValuedBodyTag
{
protected void setValue( Boolean value ) throws MarmaladeExecutionException
{
MetadataTag metadataTag = (MetadataTag) requireParent( MetadataTag.class );
metadataTag.setInheritByDefault( value.booleanValue() );
}
}

View File

@ -1,34 +0,0 @@
package org.apache.maven.script.marmalade.tags;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.codehaus.marmalade.runtime.MarmaladeExecutionException;
/**
* @author jdcasey Created on Feb 8, 2005
*/
public class InstantiationStrategyTag
extends AbstractStringValuedBodyTag
{
protected void setValue( String value ) throws MarmaladeExecutionException
{
MetadataTag metadataTag = (MetadataTag) requireParent( MetadataTag.class );
metadataTag.setInstantiationStrategy( value );
}
}

View File

@ -1,34 +0,0 @@
package org.apache.maven.script.marmalade.tags;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.codehaus.marmalade.runtime.MarmaladeExecutionException;
/**
* @author jdcasey Created on Feb 8, 2005
*/
public class LifecyclePhaseTag
extends AbstractStringValuedBodyTag
{
protected void setValue( String value ) throws MarmaladeExecutionException
{
MetadataTag metadataTag = (MetadataTag) requireParent( MetadataTag.class );
metadataTag.setLifecyclePhase( value );
}
}

View File

@ -1,251 +0,0 @@
package org.apache.maven.script.marmalade.tags;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.apache.maven.plugin.descriptor.DuplicateParameterException;
import org.apache.maven.plugin.descriptor.MojoDescriptor;
import org.apache.maven.plugin.descriptor.PluginDescriptor;
import org.apache.maven.script.marmalade.MarmaladeMojoExecutionDirectives;
import org.codehaus.marmalade.model.AbstractMarmaladeTag;
import org.codehaus.marmalade.runtime.MarmaladeExecutionContext;
import org.codehaus.marmalade.runtime.MarmaladeExecutionException;
import org.codehaus.marmalade.runtime.TagExecutionException;
import java.util.ArrayList;
import java.util.List;
/**
* Aggregator tag for the actual meat of the mojo.
*
* @author jdcasey Created on Feb 8, 2005
*/
public class MetadataTag
extends AbstractMarmaladeTag
implements DescriptionParent
{
private String goal;
private String requiresDependencyResolution = null;
private boolean requiresProject = true;
private String instantiationStrategy;
private String executionStrategy;
private List parameters = new ArrayList();
private String description;
private boolean aggregator = false;
private boolean inheritByDefault = true;
private boolean requiresOnline;
private String executePhase;
private String executeGoal;
private String executeLifecycle;
private String lifecyclePhase;
private boolean requiresReports;
protected boolean alwaysProcessChildren()
{
return false;
}
protected void doExecute( MarmaladeExecutionContext context )
throws MarmaladeExecutionException
{
processChildren( context );
MojoDescriptor descriptor = buildDescriptor( context );
context.setVariable( MarmaladeMojoExecutionDirectives.METADATA_OUTVAR, descriptor, true );
}
private MojoDescriptor buildDescriptor( MarmaladeExecutionContext context )
throws MarmaladeExecutionException
{
MojoDescriptor descriptor = new MojoDescriptor();
descriptor.setLanguage( "marmalade" );
descriptor.setComponentComposer( "map-oriented" );
descriptor.setComponentConfigurator( "map-oriented" );
descriptor.setPluginDescriptor(
(PluginDescriptor) context.getVariable( MarmaladeMojoExecutionDirectives.PLUGIN_DESCRIPTOR, null ) );
if ( notEmpty( goal ) )
{
descriptor.setGoal( goal );
}
if ( notEmpty( description ) )
{
descriptor.setDescription( description );
}
if ( notEmpty( executionStrategy ) )
{
descriptor.setExecutionStrategy( executionStrategy );
}
if ( notEmpty( instantiationStrategy ) )
{
descriptor.setInstantiationStrategy( instantiationStrategy );
}
if ( notEmpty( executeLifecycle ) )
{
descriptor.setExecuteLifecycle( executeLifecycle );
}
if ( notEmpty( executePhase ) )
{
descriptor.setExecutePhase( executePhase );
}
if ( notEmpty( executeGoal ) )
{
descriptor.setExecutePhase( executeGoal );
}
if ( notEmpty( lifecyclePhase ) )
{
descriptor.setPhase( lifecyclePhase );
}
try
{
descriptor.setParameters( parameters );
}
catch ( DuplicateParameterException e )
{
throw new TagExecutionException( getTagInfo(), "One or more mojo parameters is invalid.", e );
}
descriptor.setRequiresReports( requiresReports );
descriptor.setDependencyResolutionRequired( requiresDependencyResolution );
descriptor.setProjectRequired( requiresProject );
descriptor.setAggregator( aggregator );
descriptor.setInheritedByDefault( inheritByDefault );
descriptor.setOnlineRequired( requiresOnline );
String basePath = (String) context.getVariable( MarmaladeMojoExecutionDirectives.SCRIPT_BASEPATH_INVAR,
getExpressionEvaluator() );
if ( basePath != null )
{
if ( basePath.endsWith( "/" ) )
{
basePath = basePath.substring( 0, basePath.length() - 2 );
}
String implementationPath = getTagInfo().getSourceFile().substring( basePath.length() );
implementationPath = implementationPath.replace( '\\', '/' );
descriptor.setImplementation( implementationPath );
}
return descriptor;
}
private boolean notEmpty( String test )
{
return test != null && test.trim().length() > 0;
}
public void setGoal( String goal )
{
this.goal = goal;
}
public void setDescription( String description )
{
this.description = description;
}
public void setRequiresDependencyResolution( String requiresDependencyResolution )
{
this.requiresDependencyResolution = requiresDependencyResolution;
}
public void setRequiresProject( boolean requiresProject )
{
this.requiresProject = requiresProject;
}
public void setInstantiationStrategy( String instantiationStrategy )
{
this.instantiationStrategy = instantiationStrategy;
}
public void setExecutionStrategy( String executionStrategy )
{
this.executionStrategy = executionStrategy;
}
public void setParameters( List parameters )
{
this.parameters = parameters;
}
public void setAggregator( boolean aggregator )
{
this.aggregator = aggregator;
}
public void setInheritByDefault( boolean inheritByDefault )
{
this.inheritByDefault = inheritByDefault;
}
public void setRequiresOnline( boolean requiresOnline )
{
this.requiresOnline = requiresOnline;
}
public void setExecutePhase( String executePhase )
{
this.executePhase = executePhase;
}
public void setExecuteLifecycle( String executeLifecycle )
{
this.executeLifecycle = executeLifecycle;
}
public void setLifecyclePhase( String lifecyclePhase )
{
this.lifecyclePhase = lifecyclePhase;
}
public void setRequiresReports( boolean requiresReports )
{
this.requiresReports = requiresReports;
}
public void setExecuteGoal( String executeGoal )
{
this.executeGoal = executeGoal;
}
}

View File

@ -1,56 +0,0 @@
package org.apache.maven.script.marmalade.tags;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.codehaus.marmalade.metamodel.AbstractMarmaladeTagLibrary;
/**
* @author jdcasey
*/
public class MojoDefinitionTagLibrary
extends AbstractMarmaladeTagLibrary
{
public MojoDefinitionTagLibrary()
{
registerTag( "aggregator", AggregatorTag.class );
registerTag( "default", ParamDefaultTag.class );
registerTag( "description", DescriptionTag.class );
registerTag( "execute", ExecuteTag.class );
registerTag( "executionStrategy", ExecutionStrategyTag.class );
registerTag( "expression", ParamExpressionTag.class );
registerTag( "goal", GoalTag.class );
registerTag( "inheritByDefault", InheritByDefaultTag.class );
registerTag( "instantiationStrategy", InstantiationStrategyTag.class );
registerTag( "lifecyclePhase", LifecyclePhaseTag.class );
registerTag( "metadata", MetadataTag.class );
registerTag( "mojo", MojoTag.class );
registerTag( "name", ParamNameTag.class );
registerTag( "parameters", ParametersTag.class );
registerTag( "parameter", ParameterTag.class );
registerTag( "phase", LifecyclePhaseTag.class );
registerTag( "required", ParamRequiredTag.class );
registerTag( "requiresDependencyResolution", RequiresDependencyResolutionTag.class );
registerTag( "requiresProject", RequiresProjectTag.class );
registerTag( "requiresOnline", RequiresOnlineTag.class );
registerTag( "requirement", RequirementTag.class );
registerTag( "role", RequirementRoleTag.class );
registerTag( "roleHint", RequirementRoleHintTag.class );
registerTag( "type", ParamTypeTag.class );
}
}

View File

@ -1,78 +0,0 @@
package org.apache.maven.script.marmalade.tags;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.apache.maven.script.marmalade.MarmaladeMojo;
import org.codehaus.marmalade.model.AbstractMarmaladeTag;
import org.codehaus.marmalade.model.MarmaladeScript;
import org.codehaus.marmalade.model.MarmaladeTag;
import org.codehaus.marmalade.runtime.MarmaladeExecutionContext;
import org.codehaus.marmalade.runtime.MarmaladeExecutionException;
import org.codehaus.plexus.component.factory.marmalade.PlexusComponentTag;
import java.util.Iterator;
/**
* Root tag for marmalade-based mojos
*
* @author jdcasey Created on Feb 8, 2005
*/
public class MojoTag
extends AbstractMarmaladeTag
implements PlexusComponentTag
{
protected boolean alwaysProcessChildren()
{
return false;
}
protected void doExecute( MarmaladeExecutionContext context ) throws MarmaladeExecutionException
{
for ( Iterator it = children().iterator(); it.hasNext(); )
{
MarmaladeTag child = (MarmaladeTag) it.next();
if ( !(child instanceof ExecuteTag) )
{
child.execute( context );
}
}
}
public Object getComponent()
{
MarmaladeTag realRoot = null;
for ( Iterator it = children().iterator(); it.hasNext(); )
{
MarmaladeTag child = (MarmaladeTag) it.next();
if ( child instanceof ExecuteTag )
{
realRoot = child;
break;
}
}
if ( realRoot == null )
{
throw new IllegalStateException( "Mojo scripts MUST have a <execute> tag." );
}
MarmaladeScript script = new MarmaladeScript( getTagInfo().getSourceFile(), realRoot );
return new MarmaladeMojo( script );
}
}

View File

@ -1,34 +0,0 @@
package org.apache.maven.script.marmalade.tags;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.codehaus.marmalade.runtime.MarmaladeExecutionException;
/**
* @author jdcasey
*/
public class ParamDefaultTag
extends AbstractStringValuedBodyTag
{
protected void setValue( String value ) throws MarmaladeExecutionException
{
ParameterTag parent = (ParameterTag) requireParent( ParameterTag.class );
parent.setDefault( value );
}
}

Some files were not shown because too many files have changed in this diff Show More