Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mike Hugo
committed
Mar 30, 2012
1 parent
0028c0f
commit 69397e7
Showing
145 changed files
with
9,387 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<classpath> | ||
<classpathentry kind="src" path="src/java"/> | ||
<classpathentry kind="src" path="src/groovy"/> | ||
<classpathentry kind="src" path="grails-app/conf"/> | ||
<classpathentry kind="src" path="grails-app/controllers"/> | ||
<classpathentry kind="src" path="grails-app/domain"/> | ||
<classpathentry kind="src" path="grails-app/services"/> | ||
<classpathentry kind="src" path="grails-app/taglib"/> | ||
<classpathentry kind="src" path="test/integration"/> | ||
<classpathentry kind="src" path="test/unit"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="con" path="com.springsource.sts.grails.core.CLASSPATH_CONTAINER"/> | ||
<classpathentry kind="output" path="web-app/WEB-INF/classes"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
*.iws | ||
*Db.properties | ||
*Db.script | ||
.settings | ||
stacktrace.log | ||
/*.zip | ||
/plugin.xml | ||
/*.log | ||
/*DB.* | ||
/cobertura.ser | ||
.DS_Store | ||
/target/ | ||
/out/ | ||
/web-app/plugins | ||
/web-app/WEB-INF/classes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>gebish</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>com.springsource.sts.grails.core.nature</nature> | ||
<nature>org.eclipse.jdt.groovy.core.groovyNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#Grails Metadata file | ||
#Thu Mar 29 21:29:20 CDT 2012 | ||
app.grails.version=2.0.1 | ||
app.name=gebish | ||
app.servlet.version=2.5 | ||
app.version=0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,220 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project version="4"> | ||
<component name="AntConfiguration"> | ||
<defaultAnt bundledAnt="true" /> | ||
</component> | ||
<component name="ArtifactManager"> | ||
<artifact type="exploded-war" name="gebish:GrailsWeb exploded"> | ||
<root id="root"> | ||
<element id="javaee-facet-resources" facet="gebish/web/GrailsWeb" /> | ||
</root> | ||
</artifact> | ||
</component> | ||
<component name="CompilerConfiguration"> | ||
<option name="DEFAULT_COMPILER" value="Javac" /> | ||
<resourceExtensions /> | ||
<wildcardResourcePatterns> | ||
<entry name="?*.properties" /> | ||
<entry name="?*.xml" /> | ||
<entry name="?*.gif" /> | ||
<entry name="?*.png" /> | ||
<entry name="?*.jpeg" /> | ||
<entry name="?*.jpg" /> | ||
<entry name="?*.html" /> | ||
<entry name="?*.dtd" /> | ||
<entry name="?*.tld" /> | ||
<entry name="?*.ftl" /> | ||
</wildcardResourcePatterns> | ||
<annotationProcessing enabled="false" useClasspath="true" /> | ||
</component> | ||
<component name="CopyrightManager" default=""> | ||
<module2copyright /> | ||
</component> | ||
<component name="DependencyValidationManager"> | ||
<option name="SKIP_IMPORT_STATEMENTS" value="false" /> | ||
</component> | ||
<component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" /> | ||
<component name="EntryPointsManager"> | ||
<entry_points version="2.0" /> | ||
</component> | ||
<component name="IdProvider" IDEtalkID="15C3A285D39D62572159B3F1945BFABC" /> | ||
<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" auto-create-binding="false" can-attach-label="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" auto-create-binding="false" can-attach-label="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" auto-create-binding="false" can-attach-label="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" auto-create-binding="false" can-attach-label="true"> | ||
<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" auto-create-binding="true" can-attach-label="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" auto-create-binding="true" can-attach-label="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" auto-create-binding="true" can-attach-label="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" auto-create-binding="false" can-attach-label="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" auto-create-binding="true" can-attach-label="true"> | ||
<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" auto-create-binding="true" can-attach-label="true"> | ||
<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" auto-create-binding="true" can-attach-label="true"> | ||
<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" auto-create-binding="true" can-attach-label="true"> | ||
<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" auto-create-binding="true" can-attach-label="true"> | ||
<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" auto-create-binding="true" can-attach-label="true"> | ||
<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" auto-create-binding="true" can-attach-label="true"> | ||
<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" auto-create-binding="true" can-attach-label="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" auto-create-binding="true" can-attach-label="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" auto-create-binding="true" can-attach-label="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" auto-create-binding="true" can-attach-label="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" auto-create-binding="false" can-attach-label="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" auto-create-binding="true" can-attach-label="true"> | ||
<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" auto-create-binding="true" can-attach-label="false"> | ||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" /> | ||
</item> | ||
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false"> | ||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" /> | ||
</item> | ||
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false"> | ||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" /> | ||
</item> | ||
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false"> | ||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1"> | ||
<preferred-size width="-1" height="20" /> | ||
</default-constraints> | ||
</item> | ||
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false"> | ||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" /> | ||
</item> | ||
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false"> | ||
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" /> | ||
</item> | ||
</group> | ||
</component> | ||
<component name="ProjectModuleManager"> | ||
<modules> | ||
<module fileurl="file://$PROJECT_DIR$/gebish.iml" filepath="$PROJECT_DIR$/gebish.iml" /> | ||
<module fileurl="file://$PROJECT_DIR$/gebish-grailsPlugins.iml" filepath="$PROJECT_DIR$/gebish-grailsPlugins.iml" /> | ||
</modules> | ||
</component> | ||
<component name="ProjectResources"> | ||
<default-html-doctype>http://www.w3.org/1999/xhtml</default-html-doctype> | ||
</component> | ||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_5" assert-keyword="true" jdk-15="true" project-jdk-name="1.6" project-jdk-type="JavaSDK"> | ||
<output url="file://$PROJECT_DIR$/out" /> | ||
</component> | ||
<component name="VcsDirectoryMappings"> | ||
<mapping directory="" vcs="" /> | ||
<mapping directory="$PROJECT_DIR$/../../.." vcs="Git" /> | ||
</component> | ||
<component name="WebServicesPlugin" addRequiredLibraries="true" /> | ||
<component name="libraryTable"> | ||
<library name="Grails 2.0.1"> | ||
<CLASSES> | ||
<root url="jar:///opt/java/grails/dist/grails-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-bootstrap-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-core-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-crud-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-docs-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-hibernate-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-logging-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-plugin-async-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-plugin-codecs-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-plugin-controllers-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-plugin-converters-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-plugin-datasource-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-plugin-domain-class-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-plugin-filters-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-plugin-gsp-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-plugin-i18n-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-plugin-log4j-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-plugin-mimetypes-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-plugin-scaffolding-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-plugin-services-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-plugin-servlets-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-plugin-testing-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-plugin-tomcat-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-plugin-url-mappings-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-plugin-validation-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-resources-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-scripts-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-spring-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-test-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-test-suite-base-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-web-2.0.1.jar!/" /> | ||
<root url="jar:///opt/java/grails/dist/grails-webflow-2.0.1.jar!/" /> | ||
</CLASSES> | ||
<JAVADOC /> | ||
<SOURCES /> | ||
</library> | ||
</component> | ||
</project> | ||
|
5 changes: 5 additions & 0 deletions
5
BuildingQuality/sample-code/gebish/grails-app/conf/ApplicationResources.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
modules = { | ||
application { | ||
resource url:'js/application.js' | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
BuildingQuality/sample-code/gebish/grails-app/conf/BootStrap.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class BootStrap { | ||
|
||
def init = { servletContext -> | ||
} | ||
def destroy = { | ||
} | ||
} |
66 changes: 66 additions & 0 deletions
66
BuildingQuality/sample-code/gebish/grails-app/conf/BuildConfig.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
grails.servlet.version = "2.5" // Change depending on target container compliance (2.5 or 3.0) | ||
grails.project.class.dir = "target/classes" | ||
grails.project.test.class.dir = "target/test-classes" | ||
grails.project.test.reports.dir = "target/test-reports" | ||
grails.project.target.level = 1.6 | ||
grails.project.source.level = 1.6 | ||
//grails.project.war.file = "target/${appName}-${appVersion}.war" | ||
|
||
grails.project.dependency.resolution = { | ||
// inherit Grails' default dependencies | ||
inherits("global") { | ||
// uncomment to disable ehcache | ||
// excludes 'ehcache' | ||
} | ||
log "error" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose' | ||
checksums true // Whether to verify checksums on resolve | ||
|
||
def gebVersion = "0.6.3" | ||
def seleniumVersion = "2.20.0" | ||
|
||
|
||
repositories { | ||
inherits true // Whether to inherit repository definitions from plugins | ||
grailsPlugins() | ||
grailsHome() | ||
grailsCentral() | ||
mavenCentral() | ||
|
||
// uncomment these to enable remote dependency resolution from public Maven repositories | ||
//mavenCentral() | ||
//mavenLocal() | ||
//mavenRepo "http://snapshots.repository.codehaus.org" | ||
//mavenRepo "http://repository.codehaus.org" | ||
//mavenRepo "http://download.java.net/maven/2/" | ||
//mavenRepo "http://repository.jboss.com/maven2/" | ||
} | ||
dependencies { | ||
// specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg. | ||
|
||
// runtime 'mysql:mysql-connector-java:5.1.16' | ||
test("org.seleniumhq.selenium:selenium-htmlunit-driver:$seleniumVersion") { | ||
exclude "xml-apis" | ||
} | ||
test("org.seleniumhq.selenium:selenium-chrome-driver:$seleniumVersion") | ||
test("org.seleniumhq.selenium:selenium-firefox-driver:$seleniumVersion") | ||
test("org.seleniumhq.selenium:selenium-ie-driver:$seleniumVersion") | ||
|
||
// You usually only need one of these, but this project uses both | ||
test "org.codehaus.geb:geb-spock:$gebVersion" | ||
test "org.codehaus.geb:geb-junit4:$gebVersion" | ||
} | ||
|
||
plugins { | ||
runtime ":hibernate:$grailsVersion" | ||
runtime ":jquery:1.7.1" | ||
runtime ":resources:1.1.6" | ||
|
||
// Uncomment these (or add new ones) to enable additional resources capabilities | ||
//runtime ":zipped-resources:1.0" | ||
//runtime ":cached-resources:1.0" | ||
//runtime ":yui-minify-resources:0.1.4 | ||
build ":tomcat:$grailsVersion" | ||
|
||
test ":geb:$gebVersion" | ||
} | ||
} |
Oops, something went wrong.