Merge lp:~james-page/ubuntu/natty/groovy/fix-661230 into lp:ubuntu/natty/groovy
- Natty (11.04)
- fix-661230
- Merge into natty
Proposed by
James Page
Status: | Merged |
---|---|
Merge reported by: | James Page |
Merged at revision: | not available |
Proposed branch: | lp:~james-page/ubuntu/natty/groovy/fix-661230 |
Merge into: | lp:ubuntu/natty/groovy |
Diff against target: |
81860 lines (+37105/-21914) 512 files modified
.pc/.quilt_patches (+1/-0) .pc/.quilt_series (+1/-0) .pc/0001-start-scripts.patch/src/bin/startGroovy (+271/-0) .pc/0002-ant-build.diff.patch/build.xml (+902/-0) .pc/0002-ant-build.diff.patch/config/ant/build-setup.xml (+78/-0) .pc/0003-disable-bnd.diff.patch/build.xml (+910/-0) .pc/ant-build.diff/build.xml (+0/-865) .pc/ant-build.diff/config/ant/build-setup.xml (+0/-78) .pc/applied-patches (+3/-3) .pc/disable-bnd.diff/build.xml (+0/-872) .pc/start-scripts.patch/src/bin/startGroovy (+0/-272) build.properties (+3/-5) build.xml (+120/-82) config/ant/build-maven.xml (+16/-6) config/bnd/groovy-all-jdk14.bnd (+0/-4) config/bnd/groovy-jdk14.bnd (+0/-4) config/checkstyle/codeHeader.txt (+15/-0) config/checkstyle/config.xml (+3/-0) config/maven/groovy-tools.pom (+3/-3) config/maven/settings.xml (+10/-0) debian/README.Debian (+19/-0) debian/changelog (+46/-48) debian/compat (+1/-1) debian/control (+5/-5) debian/copyright (+18/-2) debian/groovy.links (+1/-0) debian/patches/0001-start-scripts.patch (+44/-0) debian/patches/0002-ant-build.diff.patch (+174/-0) debian/patches/0003-disable-bnd.diff.patch (+23/-0) debian/patches/ant-build.diff (+0/-172) debian/patches/disable-bnd.diff (+0/-13) debian/patches/series (+3/-3) debian/patches/start-scripts.patch (+0/-34) debian/rules (+2/-1) pom.xml (+75/-34) security/groovy.policy (+0/-4) src/bin/grape.bat (+3/-2) src/bin/groovy.bat (+3/-2) src/bin/groovyConsole.bat (+3/-2) src/bin/groovyc.bat (+3/-2) src/bin/groovydoc (+33/-0) src/bin/groovydoc.bat (+19/-0) src/bin/groovysh.bat (+3/-2) src/bin/java2groovy.bat (+1/-0) src/bin/startGroovy (+4/-5) src/bin/startGroovy.bat (+3/-2) src/examples/transforms/global/LoggingASTTransformation.groovy (+1/-1) src/examples/transforms/global/LoggingExample.groovy (+1/-1) src/examples/transforms/global/META-INF/services/org.codehaus.groovy.transform.ASTTransformation (+1/-2) src/examples/transforms/local/LoggingASTTransformation.groovy (+1/-1) src/examples/transforms/local/LoggingExample.groovy (+1/-1) src/examples/transforms/local/WithLogging.groovy (+2/-2) src/main/groovy/grape/GrapeIvy.groovy (+12/-7) src/main/groovy/inspect/swingui/TableSorter.java (+1/-4) src/main/groovy/io/FileType.java (+28/-0) src/main/groovy/io/FileVisitResult.java (+32/-0) src/main/groovy/jmx/builder/JmxBeanFactory.groovy (+56/-56) src/main/groovy/jmx/builder/JmxBeansFactory.groovy (+13/-4) src/main/groovy/jmx/builder/package-info.groovy (+20/-0) src/main/groovy/lang/Closure.java (+61/-3) src/main/groovy/lang/Delegate.java (+14/-3) src/main/groovy/lang/ExpandoMetaClass.java (+668/-514) src/main/groovy/lang/ExpandoMetaClassCreationHandle.java (+1/-1) src/main/groovy/lang/GroovyClassLoader.java (+137/-122) src/main/groovy/lang/GroovyCodeSource.java (+16/-1) src/main/groovy/lang/GroovyShell.java (+55/-6) src/main/groovy/lang/Immutable.java (+23/-8) src/main/groovy/lang/IntRange.java (+12/-4) src/main/groovy/lang/Lazy.java (+95/-23) src/main/groovy/lang/MapWithDefault.java (+102/-0) src/main/groovy/lang/MetaBeanProperty.java (+10/-5) src/main/groovy/lang/MetaClass.java (+4/-4) src/main/groovy/lang/MetaClassImpl.java (+47/-37) src/main/groovy/lang/MetaClassRegistry.java (+39/-16) src/main/groovy/lang/MutableMetaClass.java (+3/-3) src/main/groovy/lang/ObjectRange.java (+16/-4) src/main/groovy/lang/Range.java (+2/-2) src/main/groovy/lang/Reference.java (+8/-6) src/main/groovy/lang/Script.java (+39/-1) src/main/groovy/lang/Writable.java (+2/-2) src/main/groovy/mock/interceptor/Demand.groovy (+9/-6) src/main/groovy/mock/interceptor/Ignore.groovy (+43/-0) src/main/groovy/mock/interceptor/LooseExpectation.groovy (+16/-12) src/main/groovy/mock/interceptor/MockFor.groovy (+224/-45) src/main/groovy/mock/interceptor/MockInterceptor.groovy (+20/-9) src/main/groovy/mock/interceptor/MockProxyMetaClass.java (+106/-26) src/main/groovy/mock/interceptor/StrictExpectation.groovy (+14/-10) src/main/groovy/mock/interceptor/StubFor.groovy (+115/-65) src/main/groovy/servlet/AbstractHttpServlet.java (+33/-29) src/main/groovy/servlet/TemplateServlet.java (+22/-1) src/main/groovy/sql/BatchingStatementWrapper.java (+84/-0) src/main/groovy/sql/DataSet.java (+30/-5) src/main/groovy/sql/Sql.java (+703/-167) src/main/groovy/sql/SqlWithParams.java (+21/-0) src/main/groovy/swing/LookAndFeelHelper.groovy (+31/-3) src/main/groovy/swing/SwingBuilder.groovy (+2/-2) src/main/groovy/swing/factory/BindGroupFactory.groovy (+16/-5) src/main/groovy/swing/factory/RendererFactory.groovy (+1/-1) src/main/groovy/swing/impl/ClosureRenderer.java (+1/-1) src/main/groovy/text/XmlTemplateEngine.java (+2/-2) src/main/groovy/time/BaseDuration.java (+2/-2) src/main/groovy/time/TimeCategory.java (+9/-9) src/main/groovy/transform/IndexedProperty.java (+70/-0) src/main/groovy/transform/InheritConstructors.java (+112/-0) src/main/groovy/transform/Synchronized.java (+116/-0) src/main/groovy/ui/Console.groovy (+231/-77) src/main/groovy/ui/ConsoleActions.groovy (+19/-1) src/main/groovy/ui/ConsoleApplet.groovy (+16/-4) src/main/groovy/ui/ConsoleTextEditor.java (+1/-4) src/main/groovy/ui/ConsoleView.groovy (+2/-16) src/main/groovy/ui/GroovyMain.java (+4/-2) src/main/groovy/ui/SystemOutputInterceptor.java (+31/-7) src/main/groovy/ui/text/TextEditor.java (+4/-3) src/main/groovy/ui/view/BasicContentPane.groovy (+19/-4) src/main/groovy/ui/view/BasicMenuBar.groovy (+18/-0) src/main/groovy/ui/view/BasicStatusBar.groovy (+15/-0) src/main/groovy/ui/view/BasicToolBar.groovy (+16/-0) src/main/groovy/ui/view/Defaults.groovy (+15/-0) src/main/groovy/ui/view/GTKDefaults.groovy (+15/-0) src/main/groovy/ui/view/MacOSXDefaults.groovy (+15/-0) src/main/groovy/ui/view/MacOSXMenuBar.groovy (+18/-0) src/main/groovy/ui/view/WindowsDefaults.groovy (+15/-0) src/main/groovy/util/AntBuilder.java (+83/-39) src/main/groovy/util/CliBuilder.groovy (+287/-55) src/main/groovy/util/ConfigSlurper.groovy (+3/-2) src/main/groovy/util/GroovyScriptEngine.java (+78/-34) src/main/groovy/util/GroovyTestCase.java (+57/-17) src/main/groovy/util/GroovyTestSuite.java (+3/-3) src/main/groovy/util/JavadocAssertionTestBuilder.groovy (+138/-0) src/main/groovy/util/JavadocAssertionTestSuite.groovy (+119/-0) src/main/groovy/util/Node.java (+67/-2) src/main/groovy/util/NodeList.java (+22/-11) src/main/groovy/util/OrderBy.java (+8/-23) src/main/groovy/util/PermutationGenerator.java (+21/-6) src/main/groovy/util/ProxyGenerator.java (+19/-19) src/main/groovy/util/XmlNodePrinter.java (+15/-2) src/main/groovy/util/XmlParser.java (+11/-1) src/main/groovy/util/XmlSlurper.java (+33/-5) src/main/groovy/util/slurpersupport/Attribute.java (+14/-2) src/main/groovy/util/slurpersupport/Attributes.java (+18/-6) src/main/groovy/util/slurpersupport/FilteredAttributes.java (+8/-3) src/main/groovy/util/slurpersupport/FilteredNodeChildren.java (+9/-3) src/main/groovy/util/slurpersupport/GPathResult.java (+52/-88) src/main/groovy/util/slurpersupport/NoChildren.java (+7/-7) src/main/groovy/util/slurpersupport/Node.java (+14/-7) src/main/groovy/util/slurpersupport/NodeChild.java (+16/-4) src/main/groovy/util/slurpersupport/NodeChildren.java (+15/-15) src/main/groovy/util/slurpersupport/NodeIterator.java (+3/-2) src/main/groovy/util/slurpersupport/ReplacementNode.java (+7/-2) src/main/groovy/xml/SAXBuilder.java (+2/-2) src/main/groovy/xml/StaxBuilder.groovy (+34/-4) src/main/groovy/xml/StreamingMarkupBuilder.groovy (+29/-15) src/main/groovy/xml/XmlUtil.java (+134/-13) src/main/groovy/xml/dom/DOMCategory.java (+134/-6) src/main/org/codehaus/groovy/ant/Groovy.java (+36/-9) src/main/org/codehaus/groovy/ant/Groovyc.java (+114/-18) src/main/org/codehaus/groovy/ant/Groovydoc.java (+123/-52) src/main/org/codehaus/groovy/antlr/AntlrParserPlugin.java (+445/-406) src/main/org/codehaus/groovy/antlr/EnumHelper.java (+15/-0) src/main/org/codehaus/groovy/antlr/GroovySourceToken.java (+4/-5) src/main/org/codehaus/groovy/antlr/SourceInfo.java (+15/-0) src/main/org/codehaus/groovy/antlr/groovy.g (+106/-95) src/main/org/codehaus/groovy/antlr/java/Groovifier.java (+10/-4) src/main/org/codehaus/groovy/antlr/parser/GroovyLexer.java (+165/-131) src/main/org/codehaus/groovy/antlr/parser/GroovyLexer.smap (+2317/-2293) src/main/org/codehaus/groovy/antlr/parser/GroovyRecognizer.java (+1594/-1198) src/main/org/codehaus/groovy/antlr/parser/GroovyRecognizer.smap (+8019/-7793) src/main/org/codehaus/groovy/antlr/parser/GroovyTokenTypes.java (+95/-93) src/main/org/codehaus/groovy/antlr/parser/GroovyTokenTypes.txt (+95/-93) src/main/org/codehaus/groovy/antlr/treewalker/SourceCodeTraversal.java (+1/-1) src/main/org/codehaus/groovy/antlr/treewalker/TraversalHelper.java (+2/-2) src/main/org/codehaus/groovy/antlr/treewalker/Visitor.java (+2/-2) src/main/org/codehaus/groovy/ast/AnnotatedNode.java (+10/-1) src/main/org/codehaus/groovy/ast/ClassCodeVisitorSupport.java (+4/-0) src/main/org/codehaus/groovy/ast/ClassHelper.java (+4/-4) src/main/org/codehaus/groovy/ast/ClassNode.java (+70/-56) src/main/org/codehaus/groovy/ast/CompileUnit.java (+3/-3) src/main/org/codehaus/groovy/ast/EnumConstantClassNode.java (+36/-0) src/main/org/codehaus/groovy/ast/ImportNode.java (+7/-6) src/main/org/codehaus/groovy/ast/InnerClassNode.java (+10/-1) src/main/org/codehaus/groovy/ast/MethodNode.java (+23/-22) src/main/org/codehaus/groovy/ast/ModuleNode.java (+31/-11) src/main/org/codehaus/groovy/ast/Parameter.java (+15/-15) src/main/org/codehaus/groovy/ast/builder/AstBuilder.groovy (+15/-2) src/main/org/codehaus/groovy/ast/builder/AstBuilderTransformation.groovy (+15/-0) src/main/org/codehaus/groovy/ast/builder/AstSpecificationCompiler.groovy (+15/-1) src/main/org/codehaus/groovy/ast/builder/AstStringCompiler.groovy (+15/-1) src/main/org/codehaus/groovy/ast/expr/ConstructorCallExpression.java (+24/-19) src/main/org/codehaus/groovy/ast/expr/MethodCallExpression.java (+32/-9) src/main/org/codehaus/groovy/binding/AggregateBinding.java (+15/-0) src/main/org/codehaus/groovy/classgen/AnnotationVisitor.java (+43/-0) src/main/org/codehaus/groovy/classgen/AsmClassGenerator.java (+413/-351) src/main/org/codehaus/groovy/classgen/BytecodeHelper.java (+19/-12) src/main/org/codehaus/groovy/classgen/ClassCompletionVerifier.java (+118/-85) src/main/org/codehaus/groovy/classgen/CompileStack.java (+122/-45) src/main/org/codehaus/groovy/classgen/EnumVisitor.java (+27/-5) src/main/org/codehaus/groovy/classgen/ExtendedVerifier.java (+1/-1) src/main/org/codehaus/groovy/classgen/InnerClassVisitor.java (+151/-46) src/main/org/codehaus/groovy/classgen/ReturnAdder.java (+11/-7) src/main/org/codehaus/groovy/classgen/RuntimeIncompleteClassException.java (+0/-32) src/main/org/codehaus/groovy/classgen/VariableScopeVisitor.java (+8/-54) src/main/org/codehaus/groovy/classgen/Verifier.java (+182/-128) src/main/org/codehaus/groovy/classgen/VerifierCodeVisitor.java (+20/-45) src/main/org/codehaus/groovy/classgen/genArrayAccess.groovy (+15/-0) src/main/org/codehaus/groovy/classgen/genArrays.groovy (+15/-0) src/main/org/codehaus/groovy/classgen/genDgmMath.groovy (+15/-0) src/main/org/codehaus/groovy/classgen/genMathModification.groovy (+15/-0) src/main/org/codehaus/groovy/control/CompilationUnit.java (+50/-80) src/main/org/codehaus/groovy/control/CompilerConfiguration.java (+13/-2) src/main/org/codehaus/groovy/control/ResolveVisitor.java (+189/-48) src/main/org/codehaus/groovy/control/StaticImportVisitor.java (+241/-55) src/main/org/codehaus/groovy/groovydoc/GroovyRootDoc.java (+1/-1) src/main/org/codehaus/groovy/jsr223/GroovyCompiledScript.java (+23/-32) src/main/org/codehaus/groovy/jsr223/GroovyScriptEngineFactory.java (+31/-38) src/main/org/codehaus/groovy/jsr223/GroovyScriptEngineImpl.java (+12/-5) src/main/org/codehaus/groovy/reflection/CachedField.java (+8/-1) src/main/org/codehaus/groovy/reflection/ClassInfo.java (+4/-2) src/main/org/codehaus/groovy/reflection/ClassLoaderForClassArtifacts.java (+15/-0) src/main/org/codehaus/groovy/reflection/GeneratedMetaMethod.java (+197/-19) src/main/org/codehaus/groovy/reflection/MethodHandle.java (+15/-0) src/main/org/codehaus/groovy/reflection/ParameterTypes.java (+1/-1) src/main/org/codehaus/groovy/reflection/handlegen.groovy (+15/-0) src/main/org/codehaus/groovy/reflection/stdclasses/CachedClosureClass.java (+15/-0) src/main/org/codehaus/groovy/reflection/stdclasses/FloatCachedClass.java (+4/-1) src/main/org/codehaus/groovy/runtime/CurriedClosure.java (+66/-29) src/main/org/codehaus/groovy/runtime/DateGroovyMethods.java (+554/-0) src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java (+2884/-956) src/main/org/codehaus/groovy/runtime/DefaultGroovyMethodsSupport.java (+3/-3) src/main/org/codehaus/groovy/runtime/DefaultGroovyStaticMethods.java (+7/-6) src/main/org/codehaus/groovy/runtime/EncodingGroovyMethods.java (+225/-0) src/main/org/codehaus/groovy/runtime/GroovyCategorySupport.java (+25/-8) src/main/org/codehaus/groovy/runtime/HandleMetaClass.java (+1/-1) src/main/org/codehaus/groovy/runtime/InvokerHelper.java (+55/-13) src/main/org/codehaus/groovy/runtime/IteratorClosureAdapter.java (+5/-5) src/main/org/codehaus/groovy/runtime/MetaClassHelper.java (+0/-2) src/main/org/codehaus/groovy/runtime/MethodClosure.java (+8/-25) src/main/org/codehaus/groovy/runtime/MethodRankHelper.java (+71/-10) src/main/org/codehaus/groovy/runtime/NumberAwareComparator.java (+46/-0) src/main/org/codehaus/groovy/runtime/ReverseListIterator.java (+15/-0) src/main/org/codehaus/groovy/runtime/ScriptBytecodeAdapter.java (+5/-1) src/main/org/codehaus/groovy/runtime/StackTraceUtils.java (+4/-3) src/main/org/codehaus/groovy/runtime/SwingGroovyMethods.java (+24/-14) src/main/org/codehaus/groovy/runtime/callsite/AbstractCallSite.java (+5/-1) src/main/org/codehaus/groovy/runtime/callsite/CallSite.java (+15/-0) src/main/org/codehaus/groovy/runtime/callsite/ConstructorMetaClassSite.java (+15/-0) src/main/org/codehaus/groovy/runtime/callsite/ConstructorMetaMethodSite.java (+15/-0) src/main/org/codehaus/groovy/runtime/callsite/GetEffectivePogoPropertySite.java (+15/-0) src/main/org/codehaus/groovy/runtime/callsite/NullCallSite.java (+15/-0) src/main/org/codehaus/groovy/runtime/callsite/StaticMetaClassSite.java (+15/-0) src/main/org/codehaus/groovy/runtime/dgmimpl/NumberNumberMultiply.java (+15/-0) src/main/org/codehaus/groovy/runtime/dgmimpl/arrays/CharacterArrayGetAtMetaMethod.java (+15/-0) src/main/org/codehaus/groovy/runtime/dgmimpl/arrays/DoubleArrayGetAtMetaMethod.java (+15/-0) src/main/org/codehaus/groovy/runtime/dgmimpl/arrays/ObjectArrayPutAtMetaMethod.java (+12/-12) src/main/org/codehaus/groovy/runtime/metaclass/ClosureMetaClass.java (+23/-0) src/main/org/codehaus/groovy/runtime/metaclass/ConcurrentReaderHashMap.java (+42/-49) src/main/org/codehaus/groovy/runtime/metaclass/MemoryAwareConcurrentReadMap.java (+30/-36) src/main/org/codehaus/groovy/runtime/metaclass/MetaClassRegistryImpl.java (+36/-20) src/main/org/codehaus/groovy/runtime/metaclass/MixinInstanceMetaMethod.java (+15/-0) src/main/org/codehaus/groovy/runtime/metaclass/MixinInstanceMetaProperty.java (+15/-0) src/main/org/codehaus/groovy/runtime/typehandling/BigDecimalMath.java (+51/-59) src/main/org/codehaus/groovy/runtime/typehandling/BigIntegerMath.java (+1/-1) src/main/org/codehaus/groovy/runtime/typehandling/ClassDistance.java (+0/-160) src/main/org/codehaus/groovy/runtime/typehandling/DefaultTypeTransformation.java (+29/-10) src/main/org/codehaus/groovy/runtime/typehandling/FloatingPointMath.java (+1/-1) src/main/org/codehaus/groovy/runtime/typehandling/GroovyCastException.java (+20/-3) src/main/org/codehaus/groovy/runtime/typehandling/IntegerMath.java (+1/-1) src/main/org/codehaus/groovy/runtime/typehandling/LongMath.java (+1/-1) src/main/org/codehaus/groovy/runtime/typehandling/NumberMathModificationInfo.java (+15/-0) src/main/org/codehaus/groovy/runtime/wrappers/BooleanWrapper.java (+4/-6) src/main/org/codehaus/groovy/runtime/wrappers/ByteWrapper.java (+4/-7) src/main/org/codehaus/groovy/runtime/wrappers/CharWrapper.java (+4/-6) src/main/org/codehaus/groovy/runtime/wrappers/DoubleWrapper.java (+4/-6) src/main/org/codehaus/groovy/runtime/wrappers/FloatWrapper.java (+4/-6) src/main/org/codehaus/groovy/runtime/wrappers/GroovyObjectWrapper.java (+46/-52) src/main/org/codehaus/groovy/runtime/wrappers/IntWrapper.java (+4/-8) src/main/org/codehaus/groovy/runtime/wrappers/LongWrapper.java (+4/-6) src/main/org/codehaus/groovy/runtime/wrappers/PojoWrapper.java (+47/-54) src/main/org/codehaus/groovy/runtime/wrappers/ShortWrapper.java (+2/-3) src/main/org/codehaus/groovy/runtime/wrappers/Wrapper.java (+25/-252) src/main/org/codehaus/groovy/syntax/RuntimeParserException.java (+1/-2) src/main/org/codehaus/groovy/tools/DgmConverter.java (+158/-139) src/main/org/codehaus/groovy/tools/FileSystemCompiler.java (+15/-14) src/main/org/codehaus/groovy/tools/LoaderConfiguration.java (+17/-5) src/main/org/codehaus/groovy/tools/RootLoader.java (+1/-1) src/main/org/codehaus/groovy/tools/StringHelper.java (+15/-0) src/main/org/codehaus/groovy/tools/ast/TranformTestHelper.groovy (+17/-3) src/main/org/codehaus/groovy/tools/groovydoc/GroovyDocTool.java (+9/-3) src/main/org/codehaus/groovy/tools/groovydoc/GroovyDocWriter.java (+17/-10) src/main/org/codehaus/groovy/tools/groovydoc/GroovyRootDocBuilder.java (+83/-19) src/main/org/codehaus/groovy/tools/groovydoc/LinkArgument.java (+15/-0) src/main/org/codehaus/groovy/tools/groovydoc/Main.groovy (+240/-0) src/main/org/codehaus/groovy/tools/groovydoc/Main.properties (+67/-0) src/main/org/codehaus/groovy/tools/groovydoc/SimpleGroovyAbstractableElementDoc.java (+34/-0) src/main/org/codehaus/groovy/tools/groovydoc/SimpleGroovyClassDoc.java (+234/-47) src/main/org/codehaus/groovy/tools/groovydoc/SimpleGroovyClassDocAssembler.java (+125/-41) src/main/org/codehaus/groovy/tools/groovydoc/SimpleGroovyDoc.java (+23/-16) src/main/org/codehaus/groovy/tools/groovydoc/SimpleGroovyMemberDoc.java (+18/-19) src/main/org/codehaus/groovy/tools/groovydoc/SimpleGroovyPackageDoc.java (+6/-6) src/main/org/codehaus/groovy/tools/groovydoc/SimpleGroovyProgramElementDoc.java (+32/-25) src/main/org/codehaus/groovy/tools/groovydoc/SimpleGroovyRootDoc.java (+24/-5) src/main/org/codehaus/groovy/tools/groovydoc/SimpleGroovyTag.java (+15/-0) src/main/org/codehaus/groovy/tools/groovydoc/SimpleGroovyType.java (+1/-1) src/main/org/codehaus/groovy/tools/groovydoc/gstringTemplates/GroovyDocTemplateInfo.java (+40/-0) src/main/org/codehaus/groovy/tools/groovydoc/gstringTemplates/classLevel/classDocName.html (+44/-37) src/main/org/codehaus/groovy/tools/groovydoc/gstringTemplates/packageLevel/package-frame.html (+10/-10) src/main/org/codehaus/groovy/tools/groovydoc/gstringTemplates/packageLevel/package-summary.html (+10/-12) src/main/org/codehaus/groovy/tools/groovydoc/gstringTemplates/topLevel/allclasses-frame.html (+3/-1) src/main/org/codehaus/groovy/tools/groovydoc/gstringTemplates/topLevel/deprecated-list.html (+46/-49) src/main/org/codehaus/groovy/tools/groovydoc/gstringTemplates/topLevel/index-all.html (+1/-1) src/main/org/codehaus/groovy/tools/groovydoc/gstringTemplates/topLevel/overview-summary.html (+25/-1) src/main/org/codehaus/groovy/tools/gse/DependencyTracker.java (+16/-0) src/main/org/codehaus/groovy/tools/gse/StringSetMap.java (+19/-4) src/main/org/codehaus/groovy/tools/javac/JavaStubCompilationUnit.java (+2/-2) src/main/org/codehaus/groovy/tools/javac/JavaStubGenerator.java (+174/-96) src/main/org/codehaus/groovy/tools/shell/Groovysh.groovy (+13/-5) src/main/org/codehaus/groovy/tools/shell/IO.java (+4/-10) src/main/org/codehaus/groovy/tools/shell/Main.groovy (+26/-5) src/main/org/codehaus/groovy/tools/shell/Main.properties (+5/-1) src/main/org/codehaus/groovy/tools/shell/util/ANSI.java (+0/-421) src/main/org/codehaus/groovy/tools/shell/util/Logger.java (+8/-13) src/main/org/codehaus/groovy/tools/shell/util/MessageSource.java (+14/-18) src/main/org/codehaus/groovy/transform/ASTTransformationCollectorCodeVisitor.java (+0/-1) src/main/org/codehaus/groovy/transform/ASTTransformationVisitor.java (+4/-5) src/main/org/codehaus/groovy/transform/DelegateASTTransformation.java (+81/-32) src/main/org/codehaus/groovy/transform/GroovyASTTransformationClass.java (+15/-0) src/main/org/codehaus/groovy/transform/ImmutableASTTransformation.java (+83/-60) src/main/org/codehaus/groovy/transform/IndexedPropertyASTTransformation.java (+164/-0) src/main/org/codehaus/groovy/transform/InheritConstructorsASTTransformation.java (+119/-0) src/main/org/codehaus/groovy/transform/LazyASTTransformation.java (+104/-62) src/main/org/codehaus/groovy/transform/SingletonASTTransformation.java (+3/-3) src/main/org/codehaus/groovy/transform/SynchronizedASTTransformation.java (+106/-0) src/main/org/codehaus/groovy/transform/powerassert/AssertionRenderer.java (+28/-29) src/main/org/codehaus/groovy/util/AbstractConcurrentDoubleKeyMap.java (+15/-0) src/main/org/codehaus/groovy/util/AbstractConcurrentMap.java (+20/-5) src/main/org/codehaus/groovy/util/AbstractConcurrentMapBase.java (+17/-2) src/main/org/codehaus/groovy/util/Finalizable.java (+15/-0) src/main/org/codehaus/groovy/util/HashCodeHelper.java (+2/-5) src/main/org/codehaus/groovy/util/LazyReference.java (+15/-2) src/main/org/codehaus/groovy/util/LockableObject.java (+15/-0) src/main/org/codehaus/groovy/util/ManagedConcurrentMap.java (+15/-1) src/main/org/codehaus/groovy/util/ManagedLinkedList.java (+15/-15) src/main/org/codehaus/groovy/util/ManagedReference.java (+15/-0) src/main/org/codehaus/groovy/util/Reference.java (+15/-0) src/main/org/codehaus/groovy/util/ReferenceBundle.java (+15/-15) src/main/org/codehaus/groovy/util/ReferenceManager.java (+15/-0) src/main/org/codehaus/groovy/util/ReferenceType.java (+15/-0) src/main/org/codehaus/groovy/util/ReleaseInfo.java (+47/-38) src/main/org/codehaus/groovy/util/StringUtil.groovy (+51/-0) src/main/org/codehaus/groovy/vmplugin/VMPluginFactory.java (+18/-5) src/main/org/codehaus/groovy/vmplugin/v5/Java5.java (+8/-1) src/main/org/codehaus/groovy/vmplugin/v5/PluginDefaultGroovyMethods.java (+4/-2) src/main/org/codehaus/groovy/vmplugin/v5/TestNgUtils.java (+1/-1) src/main/org/codehaus/groovy/vmplugin/v6/Java6.java (+35/-0) src/main/org/codehaus/groovy/vmplugin/v6/PluginDefaultGroovyMethods.java (+92/-0) src/main/org/codehaus/groovy/vmplugin/v6/PluginStaticGroovyMethods.java (+42/-0) src/main/overview.html (+3/-1) src/main/overviewj.html (+21/-0) src/test/Outer3.groovy (+19/-0) src/test/Outer4.groovy (+19/-0) src/test/UberTestCaseGroovySourceCodehausPackages.java (+2/-1) src/test/UberTestCaseGroovySourceCodehausPackages_VM6.java (+30/-0) src/test/UberTestCaseGroovySourceRootPackage.java (+23/-52) src/test/UberTestCaseGroovySourceSubPackages.java (+9/-5) src/test/gls/CompilableTestSupport.groovy (+27/-28) src/test/gls/enums/EnumTest.groovy (+126/-28) src/test/gls/generics/GenericsTest.groovy (+30/-0) src/test/gls/innerClass/InnerClassTest.groovy (+24/-7) src/test/gls/invocation/ClassDuplicationTest.groovy (+21/-0) src/test/gls/invocation/MethodSelectionTest.groovy (+37/-0) src/test/gls/syntax/ParsingTest.groovy (+6/-0) src/test/groovy/ClosureCurryTest.groovy (+31/-1) src/test/groovy/DateTest.groovy (+6/-0) src/test/groovy/EqualsTest.groovy (+12/-1) src/test/groovy/FileTest.groovy (+342/-92) src/test/groovy/GroovyClosureMethodsTest.groovy (+12/-0) src/test/groovy/GroovyMethodsTest.groovy (+92/-78) src/test/groovy/GroovyTruthTest.groovy (+20/-0) src/test/groovy/ListTest.groovy (+2/-1) src/test/groovy/MapTest.groovy (+25/-0) src/test/groovy/Property2Test.groovy (+55/-70) src/test/groovy/PropertyTest.groovy (+2/-2) src/test/groovy/SortTest.groovy (+10/-1) src/test/groovy/StaticImportTarget.groovy (+1/-0) src/test/groovy/StaticImportTest.groovy (+186/-3) src/test/groovy/StringTest.groovy (+6/-0) src/test/groovy/SwitchTest.groovy (+1/-0) src/test/groovy/bugs/GROOVY3934Helper.groovy (+1/-0) src/test/groovy/bugs/Groovy1465Bug.groovy (+39/-0) src/test/groovy/bugs/Groovy3853Bug.groovy (+0/-34) src/test/groovy/bugs/Groovy3871Bug.groovy (+44/-0) src/test/groovy/bugs/Groovy3949Bug.groovy (+14/-0) src/test/groovy/bugs/Groovy3989Bug.groovy (+19/-0) src/test/groovy/bugs/Groovy4006Bug.groovy (+160/-0) src/test/groovy/bugs/Groovy4009Bug.groovy (+19/-0) src/test/groovy/bugs/Groovy4025Bug.groovy (+24/-0) src/test/groovy/bugs/Groovy4029Bug.groovy (+9/-0) src/test/groovy/bugs/Groovy4035Bug.groovy (+30/-0) src/test/groovy/bugs/Groovy4038Bug.groovy (+10/-0) src/test/groovy/bugs/Groovy4043Bug.groovy (+17/-0) src/test/groovy/bugs/Groovy4046Bug.groovy (+11/-0) src/test/groovy/bugs/Groovy4069Bug.groovy (+116/-0) src/test/groovy/bugs/Groovy4075Bug.groovy (+23/-0) src/test/groovy/bugs/Groovy4078Bug.groovy (+31/-0) src/test/groovy/bugs/Groovy4080Bug.groovy (+18/-0) src/test/groovy/bugs/Groovy4081Bug.groovy (+20/-0) src/test/groovy/bugs/Groovy4098Bug.groovy (+150/-0) src/test/groovy/bugs/Groovy4098Child.groovy (+35/-0) src/test/groovy/bugs/Groovy4098Parent.groovy (+23/-0) src/test/groovy/bugs/Groovy4104A.java (+29/-0) src/test/groovy/bugs/Groovy4104B.java (+19/-0) src/test/groovy/bugs/Groovy4104Bug.groovy (+31/-0) src/test/groovy/bugs/Groovy4106Bug.groovy (+25/-0) src/test/groovy/bugs/Groovy4107Bug.groovy (+34/-0) src/test/groovy/bugs/Groovy4111Bug.groovy (+38/-0) src/test/groovy/bugs/Groovy4116Bug.groovy (+63/-0) src/test/groovy/bugs/Groovy4119Bug.groovy (+35/-0) src/test/groovy/bugs/Groovy4120Bug.groovy (+54/-0) src/test/groovy/bugs/Groovy4121Bug.groovy (+45/-0) src/test/groovy/bugs/Groovy4129Bug.groovy (+32/-0) src/test/groovy/bugs/Groovy4131Bug.groovy (+30/-0) src/test/groovy/bugs/Groovy4133Bug.groovy (+31/-0) src/test/groovy/bugs/Groovy4134Bug.groovy (+26/-0) src/test/groovy/bugs/Groovy4139Bug.groovy (+31/-0) src/test/groovy/bugs/Groovy4145.groovy (+7/-0) src/test/groovy/bugs/Groovy4151Bug.groovy (+30/-0) src/test/groovy/bugs/Groovy4169Bug.groovy (+34/-0) src/test/groovy/bugs/Groovy4170Bug.groovy (+35/-0) src/test/groovy/bugs/Groovy4188Bug.groovy (+36/-0) src/test/groovy/bugs/Groovy4190Bug.groovy (+48/-0) src/test/groovy/bugs/Groovy4191Bug.groovy (+28/-0) src/test/groovy/bugs/Groovy4193Bug.groovy (+28/-0) src/test/groovy/bugs/Groovy4202Bug.groovy (+18/-0) src/test/groovy/bugs/Groovy4206Bug.groovy (+16/-0) src/test/groovy/bugs/Groovy4235Bug.groovy (+15/-0) src/test/groovy/bugs/Groovy4241Bug.groovy (+22/-0) src/test/groovy/bugs/Groovy4243Bug.groovy (+31/-0) src/test/groovy/bugs/Groovy4246Bug.groovy (+44/-0) src/test/groovy/bugs/Groovy4247Bug.groovy (+19/-0) src/test/groovy/bugs/Groovy4252Bug.groovy (+83/-0) src/test/groovy/bugs/Groovy4264Bug.groovy (+66/-0) src/test/groovy/bugs/Groovy4272Bug.groovy (+29/-0) src/test/groovy/bugs/Groovy4273Bug.groovy (+62/-0) src/test/groovy/bugs/Groovy4285Bug.groovy (+38/-0) src/test/groovy/bugs/Groovy4293Bug.groovy (+37/-0) src/test/groovy/bugs/GroovyInnerEnumBug.groovy (+29/-0) src/test/groovy/bugs/Groovy_2473Bug.groovy (+2/-2) src/test/groovy/bugs/MyConstants4272.java (+13/-0) src/test/groovy/bugs/MyConstantsASTTransformation4272.groovy (+30/-0) src/test/groovy/bugs/SynchronizedBytecodeBug.groovy (+15/-1) src/test/groovy/execute/ExecuteTest.groovy (+139/-0) src/test/groovy/execute/ExecuteTest_Windows.groovy (+15/-0) src/test/groovy/grape/GrabErrorIsolationTest.groovy (+53/-0) src/test/groovy/lang/ClassReloadingTest.groovy (+26/-0) src/test/groovy/lang/ExceptionTest.groovy (+72/-0) src/test/groovy/lang/GroovyClassLoaderTest.groovy (+16/-18) src/test/groovy/lang/GroovyCodeSourceTest.groovy (+79/-0) src/test/groovy/lang/GroovyShellTest.java (+43/-1) src/test/groovy/lang/ReferenceSerializationTest.groovy (+96/-0) src/test/groovy/lang/StripMarginTest.groovy (+75/-0) src/test/groovy/lang/SyntheticReturnTest.groovy (+2/-2) src/test/groovy/lang/gcldeadlock/DeadlockBugUtil.groovy (+3/-0) src/test/groovy/lang/gcldeadlock/GroovyClassLoaderDeadlockTest.java (+62/-0) src/test/groovy/lang/gcldeadlock/script0.groovy (+3/-0) src/test/groovy/lang/gcldeadlock/script1.groovy (+3/-0) src/test/groovy/mock/interceptor/HalfMockTest.groovy (+124/-0) src/test/groovy/mock/interceptor/MockCallSequenceTest.groovy (+67/-5) src/test/groovy/mock/interceptor/MockForJavaTest.groovy (+4/-4) src/test/groovy/mock/interceptor/StubForJavaTest.groovy (+10/-5) src/test/groovy/operator/BitwiseOperatorsTest.groovy (+17/-22) src/test/groovy/security/SecurityTestSupport.java (+4/-4) src/test/groovy/servlet/AbstractHttpServletTest.groovy (+14/-4) src/test/groovy/sql/SqlBatchTest.groovy (+17/-0) src/test/groovy/sql/SqlCacheTest.groovy (+2/-0) src/test/groovy/sql/SqlCompleteTest.groovy (+42/-0) src/test/groovy/swing/SwingMetaMethodsTest.groovy (+2/-0) src/test/groovy/text/XmlTemplateEngineTest.java (+7/-0) src/test/groovy/time/TimeCategoryTest.groovy (+20/-4) src/test/groovy/util/AntTest.groovy (+3/-0) src/test/groovy/util/CliBuilderTest.groovy (+389/-301) src/test/groovy/util/ConfigSlurperTest.groovy (+34/-2) src/test/groovy/util/GroovyScriptEngineTest.groovy (+111/-11) src/test/groovy/util/JavadocAssertionTestBuilderTest.groovy (+132/-0) src/test/groovy/util/XmlParserTest.groovy (+25/-0) src/test/groovy/util/XmlSlurperTest.groovy (+25/-0) src/test/groovy/xml/BuilderTestSupport.groovy (+9/-0) src/test/groovy/xml/GpathSyntaxTestSupport.groovy (+168/-6) src/test/groovy/xml/MarkupBuilderTest.groovy (+13/-7) src/test/groovy/xml/StreamingMarkupBuilderTest.groovy (+5/-0) src/test/groovy/xml/dom/DOMCategoryTest.groovy (+15/-1) src/test/groovy/xml/vm6/StaxBuilderTest.groovy (+17/-12) src/test/org/codehaus/groovy/ant/GroovyTest.xml (+1/-1) src/test/org/codehaus/groovy/ast/LineColumnCheck.txt (+6/-6) src/test/org/codehaus/groovy/jsr223/JSR223SecurityTest.java (+132/-0) src/test/org/codehaus/groovy/jsr223/SugarTest.groovy (+16/-0) src/test/org/codehaus/groovy/jsr223/vm6/JavascriptTest.groovy (+19/-0) src/test/org/codehaus/groovy/runtime/DateGDKTest.groovy (+22/-6) src/test/org/codehaus/groovy/runtime/DefaultGroovyMethodsTest.java (+46/-1) src/test/org/codehaus/groovy/runtime/MinusTest.groovy (+95/-80) src/test/org/codehaus/groovy/runtime/StringAsClassTest.groovy (+17/-1) src/test/org/codehaus/groovy/tools/FileSystemCompilerTest.java (+14/-45) src/test/org/codehaus/groovy/tools/groovydoc/GroovyDocToolTest.java (+36/-24) src/test/org/codehaus/groovy/tools/gse/DependencyTest.java (+9/-9) src/test/org/codehaus/groovy/transform/DelegateTransformTest.groovy (+79/-4) src/test/org/codehaus/groovy/transform/ImmutableTransformTest.groovy (+57/-0) src/test/org/codehaus/groovy/transform/IndexedPropertyTransformTest.groovy (+47/-0) src/test/org/codehaus/groovy/transform/InheritConstructorsTransformTest.groovy (+46/-0) src/test/org/codehaus/groovy/transform/LazyTransformTest.groovy (+29/-1) src/test/org/codehaus/groovy/transform/SynchronizedTransformTest.groovy (+43/-0) src/test/org/codehaus/groovy/transform/TransformsAndCustomClassLoadersTest.groovy (+1/-1) src/test/org/codehaus/groovy/transform/powerassert/AssertionRenderingTest.groovy (+2/-2) src/test/org/codehaus/groovy/transform/powerassert/ValueRenderingTest.groovy (+43/-5) src/tools/org/codehaus/groovy/tools/DocGenerator.groovy (+45/-19) |
To merge this branch: | bzr merge lp:~james-page/ubuntu/natty/groovy/fix-661230 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Chuck Short | Pending | ||
Review via email: mp+51179@code.launchpad.net |
Commit message
Description of the change
Sync groovy from debain testing and apply Ubuntu specific change to fix FTBFS with ant 1.8 (default ant in Ubuntu)
To post a comment you must log in.
- 19. By James Page
-
Fixed package maintainer
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added file '.pc/.quilt_patches' | |||
2 | --- .pc/.quilt_patches 1970-01-01 00:00:00 +0000 | |||
3 | +++ .pc/.quilt_patches 2011-02-24 17:57:34 +0000 | |||
4 | @@ -0,0 +1,1 @@ | |||
5 | 1 | debian/patches | ||
6 | 0 | 2 | ||
7 | === added file '.pc/.quilt_series' | |||
8 | --- .pc/.quilt_series 1970-01-01 00:00:00 +0000 | |||
9 | +++ .pc/.quilt_series 2011-02-24 17:57:34 +0000 | |||
10 | @@ -0,0 +1,1 @@ | |||
11 | 1 | series | ||
12 | 0 | 2 | ||
13 | === added directory '.pc/0001-start-scripts.patch' | |||
14 | === added directory '.pc/0001-start-scripts.patch/src' | |||
15 | === added directory '.pc/0001-start-scripts.patch/src/bin' | |||
16 | === added file '.pc/0001-start-scripts.patch/src/bin/startGroovy' | |||
17 | --- .pc/0001-start-scripts.patch/src/bin/startGroovy 1970-01-01 00:00:00 +0000 | |||
18 | +++ .pc/0001-start-scripts.patch/src/bin/startGroovy 2011-02-24 17:57:34 +0000 | |||
19 | @@ -0,0 +1,271 @@ | |||
20 | 1 | # -*- mode:sh -*- | ||
21 | 2 | |||
22 | 3 | ############################################################################## | ||
23 | 4 | ## ## | ||
24 | 5 | ## Groovy JVM Bootstrap for UN*X ## | ||
25 | 6 | ## ## | ||
26 | 7 | ############################################################################## | ||
27 | 8 | |||
28 | 9 | ## | ||
29 | 10 | ## $Revision: 19979 $ | ||
30 | 11 | ## $Date: 2010-05-08 13:15:13 +0200 (Sa, 08. Mai 2010) $ | ||
31 | 12 | ## | ||
32 | 13 | |||
33 | 14 | PROGNAME=`basename "$0"` | ||
34 | 15 | |||
35 | 16 | #DIRNAME=`dirname "$0"` | ||
36 | 17 | |||
37 | 18 | SCRIPT_PATH="$0" | ||
38 | 19 | |||
39 | 20 | # Use the maximum available, or set MAX_FD != -1 to use that value. | ||
40 | 21 | MAX_FD="maximum" | ||
41 | 22 | |||
42 | 23 | warn ( ) { | ||
43 | 24 | echo "${PROGNAME}: $*" | ||
44 | 25 | } | ||
45 | 26 | |||
46 | 27 | die ( ) { | ||
47 | 28 | warn "$*" | ||
48 | 29 | exit 1 | ||
49 | 30 | } | ||
50 | 31 | |||
51 | 32 | earlyInit ( ) { | ||
52 | 33 | return | ||
53 | 34 | } | ||
54 | 35 | |||
55 | 36 | lateInit ( ) { | ||
56 | 37 | return | ||
57 | 38 | } | ||
58 | 39 | |||
59 | 40 | GROOVY_STARTUP="$HOME/.groovy/startup" | ||
60 | 41 | if [ -r "$GROOVY_STARTUP" ] ; then | ||
61 | 42 | . "$GROOVY_STARTUP" | ||
62 | 43 | fi | ||
63 | 44 | |||
64 | 45 | earlyInit | ||
65 | 46 | |||
66 | 47 | # OS specific support (must be 'true' or 'false'). | ||
67 | 48 | cygwin=false | ||
68 | 49 | msys=false | ||
69 | 50 | darwin=false | ||
70 | 51 | case "`uname`" in | ||
71 | 52 | CYGWIN* ) | ||
72 | 53 | cygwin=true | ||
73 | 54 | ;; | ||
74 | 55 | Darwin* ) | ||
75 | 56 | darwin=true | ||
76 | 57 | ;; | ||
77 | 58 | MINGW* ) | ||
78 | 59 | msys=true | ||
79 | 60 | ;; | ||
80 | 61 | esac | ||
81 | 62 | |||
82 | 63 | if [ "$1" = "-cp" -o "$1" = "-classpath" -o "$1" = "--classpath" ] ; then | ||
83 | 64 | CP=$2 | ||
84 | 65 | shift 2 | ||
85 | 66 | fi | ||
86 | 67 | |||
87 | 68 | # Attempt to set JAVA_HOME if it's not already set. | ||
88 | 69 | if [ -z "$JAVA_HOME" ] ; then | ||
89 | 70 | if $darwin ; then | ||
90 | 71 | [ -z "$JAVA_HOME" -a -d "/Library/Java/Home" ] && export JAVA_HOME="/Library/Java/Home" | ||
91 | 72 | [ -z "$JAVA_HOME" -a -d "/System/Library/Frameworks/JavaVM.framework/Home" ] && export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home" | ||
92 | 73 | else | ||
93 | 74 | javaExecutable="`which javac`" | ||
94 | 75 | [ -z "$javaExecutable" -o "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ] && die "JAVA_HOME not set and cannot find javac to deduce location, please set JAVA_HOME." | ||
95 | 76 | # readlink(1) is not available as standard on Solaris 10. | ||
96 | 77 | readLink=`which readlink` | ||
97 | 78 | [ `expr "$readLink" : '\([^ ]*\)'` = "no" ] && die "JAVA_HOME not set and readlink not available, please set JAVA_HOME." | ||
98 | 79 | javaExecutable="`readlink -f \"$javaExecutable\"`" | ||
99 | 80 | javaHome="`dirname \"$javaExecutable\"`" | ||
100 | 81 | javaHome=`expr "$javaHome" : '\(.*\)/bin'` | ||
101 | 82 | JAVA_HOME="$javaHome" | ||
102 | 83 | export JAVA_HOME | ||
103 | 84 | |||
104 | 85 | fi | ||
105 | 86 | fi | ||
106 | 87 | |||
107 | 88 | # For Cygwin, ensure paths are in UNIX format before anything is touched. | ||
108 | 89 | if $cygwin ; then | ||
109 | 90 | [ -n "$GROOVY_HOME" ] && GROOVY_HOME=`cygpath --unix "$GROOVY_HOME"` | ||
110 | 91 | [ -n "$JAVACMD" ] && JAVACMD=`cygpath --unix "$JAVACMD"` | ||
111 | 92 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` | ||
112 | 93 | [ -n "$CP" ] && CP=`cygpath --path --unix "$CP"` | ||
113 | 94 | else | ||
114 | 95 | if [ -n "$GROOVY_HOME" -a `expr "$GROOVY_HOME":'\/$'` ] ; then | ||
115 | 96 | GROOVY_HOME=`echo $GROOVY_HOME | sed -e 's/\/$//'` | ||
116 | 97 | fi | ||
117 | 98 | fi | ||
118 | 99 | |||
119 | 100 | # For MSYS, ensure paths are in appropriate format. | ||
120 | 101 | if $msys | ||
121 | 102 | then | ||
122 | 103 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`( cd "$JAVA_HOME" ; pwd )` | ||
123 | 104 | fi | ||
124 | 105 | |||
125 | 106 | # Attempt to set GROOVY_HOME if it is not already set. | ||
126 | 107 | if [ -z "$GROOVY_HOME" -o ! -d "$GROOVY_HOME" ] ; then | ||
127 | 108 | # Resolve links: $0 may be a link to groovy's home. | ||
128 | 109 | PRG="$0" | ||
129 | 110 | # Need this for relative symlinks. | ||
130 | 111 | while [ -h "$PRG" ] ; do | ||
131 | 112 | ls=`ls -ld "$PRG"` | ||
132 | 113 | link=`expr "$ls" : '.*-> \(.*\)$'` | ||
133 | 114 | if expr "$link" : '/.*' > /dev/null; then | ||
134 | 115 | PRG="$link" | ||
135 | 116 | else | ||
136 | 117 | PRG=`dirname "$PRG"`"/$link" | ||
137 | 118 | fi | ||
138 | 119 | done | ||
139 | 120 | SAVED="`pwd`" | ||
140 | 121 | cd "`dirname \"$PRG\"`/.." | ||
141 | 122 | GROOVY_HOME="`pwd -P`" | ||
142 | 123 | cd "$SAVED" | ||
143 | 124 | fi | ||
144 | 125 | |||
145 | 126 | # Set the default Groovy config if no specific one is mentioned. | ||
146 | 127 | if [ -z "$GROOVY_CONF" ] ; then | ||
147 | 128 | GROOVY_CONF="$GROOVY_HOME/conf/groovy-starter.conf" | ||
148 | 129 | fi | ||
149 | 130 | STARTER_CLASSPATH="$GROOVY_HOME/lib/@GROOVYJAR@" | ||
150 | 131 | |||
151 | 132 | # Create the final classpath. Setting a classpath using the -cp or -classpath option means not to use the | ||
152 | 133 | # global classpath. Groovy behaves then the same as the java interpreter | ||
153 | 134 | if [ -n "$CP" ] ; then | ||
154 | 135 | CP="$CP":. | ||
155 | 136 | elif [ -n "$CLASSPATH" ] ; then | ||
156 | 137 | CP="$CLASSPATH":. | ||
157 | 138 | else | ||
158 | 139 | CP=. | ||
159 | 140 | fi | ||
160 | 141 | |||
161 | 142 | # Determine the Java command to use to start the JVM. | ||
162 | 143 | if [ -z "$JAVACMD" ] ; then | ||
163 | 144 | if [ -n "$JAVA_HOME" ] ; then | ||
164 | 145 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then | ||
165 | 146 | # IBM's JDK on AIX uses strange locations for the executables | ||
166 | 147 | JAVACMD="$JAVA_HOME/jre/sh/java" | ||
167 | 148 | else | ||
168 | 149 | JAVACMD="$JAVA_HOME/bin/java" | ||
169 | 150 | fi | ||
170 | 151 | else | ||
171 | 152 | JAVACMD="java" | ||
172 | 153 | fi | ||
173 | 154 | fi | ||
174 | 155 | if [ ! -x "$JAVACMD" ] ; then | ||
175 | 156 | die "JAVA_HOME is not defined correctly, can not execute: $JAVACMD" | ||
176 | 157 | fi | ||
177 | 158 | if [ -z "$JAVA_HOME" ] ; then | ||
178 | 159 | warn "JAVA_HOME environment variable is not set" | ||
179 | 160 | fi | ||
180 | 161 | |||
181 | 162 | # Increase the maximum file descriptors if we can. | ||
182 | 163 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then | ||
183 | 164 | MAX_FD_LIMIT=`ulimit -H -n` | ||
184 | 165 | if [ $? -eq 0 ] ; then | ||
185 | 166 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then | ||
186 | 167 | MAX_FD="$MAX_FD_LIMIT" | ||
187 | 168 | fi | ||
188 | 169 | ulimit -n $MAX_FD | ||
189 | 170 | if [ $? -ne 0 ] ; then | ||
190 | 171 | warn "Could not set maximum file descriptor limit: $MAX_FD" | ||
191 | 172 | fi | ||
192 | 173 | else | ||
193 | 174 | warn "Could not query businessSystem maximum file descriptor limit: $MAX_FD_LIMIT" | ||
194 | 175 | fi | ||
195 | 176 | fi | ||
196 | 177 | |||
197 | 178 | # Setup Profiler | ||
198 | 179 | useprofiler=false | ||
199 | 180 | if [ "$PROFILER" != "" ] ; then | ||
200 | 181 | if [ -r "$PROFILER" ] ; then | ||
201 | 182 | . $PROFILER | ||
202 | 183 | useprofiler=true | ||
203 | 184 | else | ||
204 | 185 | die "Profiler file not found: $PROFILER" | ||
205 | 186 | fi | ||
206 | 187 | fi | ||
207 | 188 | |||
208 | 189 | # For Darwin, use classes.jar for TOOLS_JAR | ||
209 | 190 | TOOLS_JAR="$JAVA_HOME/lib/tools.jar" | ||
210 | 191 | #if $darwin; then | ||
211 | 192 | # TOOLS_JAR="/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes/classes.jar" | ||
212 | 193 | #fi | ||
213 | 194 | |||
214 | 195 | # For Darwin, add GROOVY_APP_NAME to the JAVA_OPTS as -Xdock:name | ||
215 | 196 | if $darwin; then | ||
216 | 197 | JAVA_OPTS="$JAVA_OPTS -Xdock:name=$GROOVY_APP_NAME -Xdock:icon=$GROOVY_HOME/bin/groovy.icns" | ||
217 | 198 | fi | ||
218 | 199 | |||
219 | 200 | # For Cygwin, switch paths to Windows format before running java | ||
220 | 201 | if $cygwin ; then | ||
221 | 202 | GROOVY_HOME=`cygpath --mixed "$GROOVY_HOME"` | ||
222 | 203 | JAVA_HOME=`cygpath --mixed "$JAVA_HOME"` | ||
223 | 204 | GROOVY_CONF=`cygpath --mixed "$GROOVY_CONF"` | ||
224 | 205 | CP=`cygpath --path --mixed "$CP"` | ||
225 | 206 | TOOLS_JAR=`cygpath --mixed "$TOOLS_JAR"` | ||
226 | 207 | STARTER_CLASSPATH=`cygpath --path --mixed "$STARTER_CLASSPATH"` | ||
227 | 208 | |||
228 | 209 | # We build the pattern for arguments to be converted via cygpath | ||
229 | 210 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` | ||
230 | 211 | SEP="" | ||
231 | 212 | for dir in $ROOTDIRSRAW ; do | ||
232 | 213 | ROOTDIRS="$ROOTDIRS$SEP$dir" | ||
233 | 214 | SEP="|" | ||
234 | 215 | done | ||
235 | 216 | OURCYGPATTERN="(^($ROOTDIRS))" | ||
236 | 217 | # Add a user-defined pattern to the cygpath arguments | ||
237 | 218 | if [ "$GROOVY_CYGPATTERN" != "" ] ; then | ||
238 | 219 | OURCYGPATTERN="$OURCYGPATTERN|($GROOVY_CYGPATTERN)" | ||
239 | 220 | fi | ||
240 | 221 | # Now convert the arguments - kludge to limit ourselves to /bin/sh | ||
241 | 222 | i=0 | ||
242 | 223 | for arg in "$@" ; do | ||
243 | 224 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` | ||
244 | 225 | if [ $CHECK -ne 0 ] ; then | ||
245 | 226 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` | ||
246 | 227 | else | ||
247 | 228 | eval `echo args$i`="\"$arg\"" | ||
248 | 229 | fi | ||
249 | 230 | i=`expr $i + 1` | ||
250 | 231 | done | ||
251 | 232 | case $i in | ||
252 | 233 | 0) set -- ;; | ||
253 | 234 | 1) set -- "$args0" ;; | ||
254 | 235 | 2) set -- "$args0" "$args1" ;; | ||
255 | 236 | 3) set -- "$args0" "$args1" "$args2" ;; | ||
256 | 237 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;; | ||
257 | 238 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; | ||
258 | 239 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; | ||
259 | 240 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; | ||
260 | 241 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; | ||
261 | 242 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; | ||
262 | 243 | esac | ||
263 | 244 | |||
264 | 245 | fi | ||
265 | 246 | |||
266 | 247 | startGroovy ( ) { | ||
267 | 248 | CLASS=$1 | ||
268 | 249 | shift | ||
269 | 250 | # Start the Profiler or the JVM | ||
270 | 251 | if $useprofiler ; then | ||
271 | 252 | runProfiler | ||
272 | 253 | else | ||
273 | 254 | exec "$JAVACMD" $JAVA_OPTS \ | ||
274 | 255 | -classpath "$STARTER_CLASSPATH" \ | ||
275 | 256 | -Dscript.name="$SCRIPT_PATH" \ | ||
276 | 257 | -Dprogram.name="$PROGNAME" \ | ||
277 | 258 | -Dgroovy.starter.conf="$GROOVY_CONF" \ | ||
278 | 259 | -Dgroovy.home="$GROOVY_HOME" \ | ||
279 | 260 | -Dtools.jar="$TOOLS_JAR" \ | ||
280 | 261 | $STARTER_MAIN_CLASS \ | ||
281 | 262 | --main $CLASS \ | ||
282 | 263 | --conf "$GROOVY_CONF" \ | ||
283 | 264 | --classpath "$CP" \ | ||
284 | 265 | "$@" | ||
285 | 266 | fi | ||
286 | 267 | } | ||
287 | 268 | |||
288 | 269 | STARTER_MAIN_CLASS=org.codehaus.groovy.tools.GroovyStarter | ||
289 | 270 | |||
290 | 271 | lateInit | ||
291 | 0 | 272 | ||
292 | === added directory '.pc/0002-ant-build.diff.patch' | |||
293 | === added file '.pc/0002-ant-build.diff.patch/build.xml' | |||
294 | --- .pc/0002-ant-build.diff.patch/build.xml 1970-01-01 00:00:00 +0000 | |||
295 | +++ .pc/0002-ant-build.diff.patch/build.xml 2011-02-24 17:57:34 +0000 | |||
296 | @@ -0,0 +1,902 @@ | |||
297 | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
298 | 2 | |||
299 | 3 | <!-- | ||
300 | 4 | Ant build script for Groovy. | ||
301 | 5 | |||
302 | 6 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in | ||
303 | 7 | compliance with the License. You may obtain a copy of the License at | ||
304 | 8 | |||
305 | 9 | http://www.apache.org/licenses/LICENSE-2.0 | ||
306 | 10 | |||
307 | 11 | Unless required by applicable law or agreed to in writing, software distributed under the License is | ||
308 | 12 | distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
309 | 13 | implied. See the License for the specific language governing permissions and limitations under the License. | ||
310 | 14 | |||
311 | 15 | This work is copyright by the author(s) and is part of a greater work collectively copyright by Codehaus on | ||
312 | 16 | behalf of the Groovy community. See the NOTICE.txt file distributed with this work for additional information. | ||
313 | 17 | |||
314 | 18 | Author : Russel Winder | ||
315 | 19 | Author : Paul King | ||
316 | 20 | $Revision: 20245 $ ($LastChangedBy: paulk $) | ||
317 | 21 | $Date: 2010-06-07 02:45:33 +0200 (Mo, 07. Jun 2010) $ | ||
318 | 22 | --> | ||
319 | 23 | |||
320 | 24 | <project name="Groovy" default="createJars" basedir="."> | ||
321 | 25 | |||
322 | 26 | <property file="local.build.properties"/> | ||
323 | 27 | <property file="build.properties"/> | ||
324 | 28 | <property name="ant.requiredVersion" value="1.6.5"/> | ||
325 | 29 | |||
326 | 30 | <!-- config/ant/build-maven.xml imports config/ant/build-setup.xml where all the paths are defined. --> | ||
327 | 31 | <import file="config/ant/build-maven.xml"/> | ||
328 | 32 | <import file="config/ant/build-checkstyle.xml"/> | ||
329 | 33 | <import file="config/ant/build-cobertura.xml"/> | ||
330 | 34 | |||
331 | 35 | <condition property="_skipTests_"> | ||
332 | 36 | <or> | ||
333 | 37 | <equals arg1="${test}" arg2="false"/> | ||
334 | 38 | <istrue value="${skipTests}"/> | ||
335 | 39 | </or> | ||
336 | 40 | </condition> | ||
337 | 41 | |||
338 | 42 | <condition property="_skipExamples_"> | ||
339 | 43 | <istrue value="${skipExamples}"/> | ||
340 | 44 | </condition> | ||
341 | 45 | |||
342 | 46 | <condition property="_skipDocs_"> | ||
343 | 47 | <istrue value="${skipDocs}"/> | ||
344 | 48 | </condition> | ||
345 | 49 | |||
346 | 50 | <condition property="_skipOsgi_"> | ||
347 | 51 | <istrue value="${skipOsgi}"/> | ||
348 | 52 | </condition> | ||
349 | 53 | |||
350 | 54 | <condition property="_skipFetch_"> | ||
351 | 55 | <istrue value="${skipFetch}"/> | ||
352 | 56 | </condition> | ||
353 | 57 | |||
354 | 58 | <condition property="_skipEmbeddable_"> | ||
355 | 59 | <istrue value="${skipEmbeddable}"/> | ||
356 | 60 | </condition> | ||
357 | 61 | |||
358 | 62 | <condition property="_forceServerSettings_"> | ||
359 | 63 | <istrue value="${forceServerSettings}"/> | ||
360 | 64 | </condition> | ||
361 | 65 | |||
362 | 66 | <condition property="groovy.build.vm4"> | ||
363 | 67 | <contains string="${ant.java.version}" substring="1.4"/> | ||
364 | 68 | </condition> | ||
365 | 69 | |||
366 | 70 | <condition property="groovy.build.vm6"> | ||
367 | 71 | <contains string="${ant.java.version}" substring="1.6"/> | ||
368 | 72 | </condition> | ||
369 | 73 | |||
370 | 74 | <presetdef name="javac"> | ||
371 | 75 | <javac memoryMaximumSize="500m"/> | ||
372 | 76 | </presetdef> | ||
373 | 77 | |||
374 | 78 | <target name="-initCoverage"> | ||
375 | 79 | <condition property="_forceCoverage_"> | ||
376 | 80 | <and> | ||
377 | 81 | <not> | ||
378 | 82 | <istrue value="${skipTests}"/> | ||
379 | 83 | </not> | ||
380 | 84 | <istrue value="${forceCoverage}"/> | ||
381 | 85 | </and> | ||
382 | 86 | </condition> | ||
383 | 87 | </target> | ||
384 | 88 | |||
385 | 89 | <target name="ensureGrammars" description="Ensure all the Antlr generated files are up to date."> | ||
386 | 90 | <mkdir dir="${groovyParserDirectory}"/> | ||
387 | 91 | <antlr target="${antlrDirectory}/groovy.g" outputdirectory="${groovyParserDirectory}"> | ||
388 | 92 | <classpath refid="compilePath"/> | ||
389 | 93 | </antlr> | ||
390 | 94 | <antlr target="${javaParserDirectory}/java.g" outputdirectory="${javaParserDirectory}"> | ||
391 | 95 | <classpath refid="compilePath"/> | ||
392 | 96 | </antlr> | ||
393 | 97 | </target> | ||
394 | 98 | |||
395 | 99 | <target name="-init" depends="-fetchDependencies"/> | ||
396 | 100 | |||
397 | 101 | <target name="-banner"> | ||
398 | 102 | <echo message="Java Runtime Environment version: ${java.version}"/> | ||
399 | 103 | <echo message="Java Runtime Environment vendor: ${java.vendor}"/> | ||
400 | 104 | <echo message="Ant version: ${ant.version}"/> | ||
401 | 105 | <echo message="Operating system name: ${os.name}"/> | ||
402 | 106 | <echo message="Operating system architecture: ${os.arch}"/> | ||
403 | 107 | <echo message="Operating system version: ${os.version}"/> | ||
404 | 108 | <echo message="Base directory: ${basedir}"/> | ||
405 | 109 | <echo message="Java Home: ${java.home}"/> | ||
406 | 110 | </target> | ||
407 | 111 | |||
408 | 112 | <target name="-jvm14BuildWarning" if="groovy.build.vm4"> | ||
409 | 113 | <fail>Aborting! | ||
410 | 114 | |||
411 | 115 | ================================================ | ||
412 | 116 | ERROR: You must build Groovy with a 1.5+ JDK | ||
413 | 117 | ================================================ | ||
414 | 118 | </fail> | ||
415 | 119 | </target> | ||
416 | 120 | |||
417 | 121 | <target name="-checkAntVersion" depends="-excludeLegacyAntVersion" | ||
418 | 122 | description="Check that we are running on the required version of Ant."/> | ||
419 | 123 | |||
420 | 124 | <target name="-excludeLegacyAntVersion"> | ||
421 | 125 | <!-- antversion didn't exist in early versions of ant so we have | ||
422 | 126 | a legacy check to provide a nicer error message in this case --> | ||
423 | 127 | <fail message="You are using ant ${ant.version}, please build using ant ${ant.requiredVersion}+"> | ||
424 | 128 | <condition> | ||
425 | 129 | <or> | ||
426 | 130 | <contains string="${ant.version}" substring="1.1"></contains> | ||
427 | 131 | <contains string="${ant.version}" substring="1.2"></contains> | ||
428 | 132 | <contains string="${ant.version}" substring="1.3"></contains> | ||
429 | 133 | <contains string="${ant.version}" substring="1.4"></contains> | ||
430 | 134 | <contains string="${ant.version}" substring="1.5"></contains> | ||
431 | 135 | <and> | ||
432 | 136 | <contains string="${ant.version}" substring="1.6"></contains> | ||
433 | 137 | <not> | ||
434 | 138 | <contains string="${ant.version}" substring="${ant.requiredVersion}"></contains> | ||
435 | 139 | </not> | ||
436 | 140 | </and> | ||
437 | 141 | </or> | ||
438 | 142 | </condition> | ||
439 | 143 | </fail> | ||
440 | 144 | </target> | ||
441 | 145 | |||
442 | 146 | <!-- add back in if we make 1.7+ minimal required version for build again | ||
443 | 147 | <target name="-ensureRequiredAntVersion"> | ||
444 | 148 | <fail message="You are using ant ${ant.version}, please install using ant ${ant.requiredVersion}+"/> | ||
445 | 149 | <condition><not><antversion atleast="${ant.requiredVersion}"/></not></condition> | ||
446 | 150 | </fail> | ||
447 | 151 | </target> | ||
448 | 152 | --> | ||
449 | 153 | |||
450 | 154 | <target name="compileMain" depends="stagedcompile" | ||
451 | 155 | description="Compile the Java and Groovy code in the main source."> | ||
452 | 156 | </target> | ||
453 | 157 | |||
454 | 158 | <target name="stagedcompile" depends="-init,ensureGrammars,-jvm14BuildWarning" unless="uber"> | ||
455 | 159 | <mkdir dir="${mainClassesDirectory}"/> | ||
456 | 160 | <mkdir dir="${toolsClassesDirectory}"/> | ||
457 | 161 | <mkdir dir="${mainClassesDirectory}/META-INF"/> | ||
458 | 162 | |||
459 | 163 | <javac srcdir="${mainSourceDirectory}" includeantruntime="false" destdir="${mainClassesDirectory}" | ||
460 | 164 | deprecation="on" debug="yes" source="1.5" target="1.5" fork="true" classpathref="compilePath"> | ||
461 | 165 | <exclude name="groovy/ui/**/*.java"/> | ||
462 | 166 | </javac> | ||
463 | 167 | <java classname="org.codehaus.groovy.tools.DgmConverter" | ||
464 | 168 | fork="yes" | ||
465 | 169 | failonerror="true"> | ||
466 | 170 | <classpath refid="compilePath"/> | ||
467 | 171 | <classpath path="${mainClassesDirectory}"/> | ||
468 | 172 | </java> | ||
469 | 173 | <antcall inheritrefs="true" target="-stagedcompile-groovy"/> | ||
470 | 174 | <antcall target="-includeResources"/> | ||
471 | 175 | </target> | ||
472 | 176 | |||
473 | 177 | <target name="-stagedcompile-groovy" depends="-initGroovyc"> | ||
474 | 178 | <groovyc srcdir="${mainSourceDirectory}" destdir="${mainClassesDirectory}" fork="true" | ||
475 | 179 | memorymaximumsize="${groovycMain_mx}"> | ||
476 | 180 | <classpath> | ||
477 | 181 | <pathelement path="${mainClassesDirectory}"/> | ||
478 | 182 | <path refid="compilePath"/> | ||
479 | 183 | </classpath> | ||
480 | 184 | <javac deprecation="on" debug="yes" source="1.5" target="1.5"/> | ||
481 | 185 | </groovyc> | ||
482 | 186 | </target> | ||
483 | 187 | |||
484 | 188 | <property name="vm5GroovySourceFiles" value="**/*.groovy"/> | ||
485 | 189 | <property name="vm5JavaSourceFiles" value="**/*.java"/> | ||
486 | 190 | <property name="vm6GroovySourceFiles" value="groovy/**/vm6/*Test.groovy,org/codehaus/groovy/**/vm6/*Test.groovy"/> | ||
487 | 191 | |||
488 | 192 | <target name="-initGroovyc"> | ||
489 | 193 | <path id="groovyMainClasses"> | ||
490 | 194 | <pathelement path="${mainClassesDirectory}"/> | ||
491 | 195 | <path refid="compilePath"/> | ||
492 | 196 | </path> | ||
493 | 197 | <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpathref="groovyMainClasses"/> | ||
494 | 198 | </target> | ||
495 | 199 | |||
496 | 200 | <target name="compileTest" depends="compileMain,compileTestOnly" | ||
497 | 201 | description="Compile the Java and Groovy code in the test source."/> | ||
498 | 202 | |||
499 | 203 | <target name="-cleanTest"> | ||
500 | 204 | <delete dir="${testClassesDirectory}"/> | ||
501 | 205 | </target> | ||
502 | 206 | |||
503 | 207 | <target name="compileTestOnly" unless="_skipTests_"> | ||
504 | 208 | <mkdir dir="${testClassesDirectory}"/> | ||
505 | 209 | <antcall inheritrefs="true" target="-compileTest"/> | ||
506 | 210 | </target> | ||
507 | 211 | |||
508 | 212 | <target name="-compileTest" depends="-initGroovyc,-compileTest_vm6"> | ||
509 | 213 | <groovyc srcdir="${testSourceDirectory}" | ||
510 | 214 | destdir="${testClassesDirectory}" | ||
511 | 215 | includes="${vm5GroovySourceFiles},${vm5JavaSourceFiles}" | ||
512 | 216 | excludes="${vm6GroovySourceFiles}" | ||
513 | 217 | fork="true" | ||
514 | 218 | memorymaximumsize="${groovycTest_mx}"> | ||
515 | 219 | <classpath> | ||
516 | 220 | <pathelement path="${testClassesDirectory}"/> | ||
517 | 221 | <path refid="groovyMainClasses"/> | ||
518 | 222 | <path refid="testLibPath"/> | ||
519 | 223 | </classpath> | ||
520 | 224 | <javac source="1.5" target="1.5" nowarn="on"/> | ||
521 | 225 | </groovyc> | ||
522 | 226 | </target> | ||
523 | 227 | |||
524 | 228 | <target name="-compileTest_vm6" if="groovy.build.vm6"> | ||
525 | 229 | <groovyc srcdir="${testSourceDirectory}" | ||
526 | 230 | destdir="${testClassesDirectory}" | ||
527 | 231 | includes="${vm6GroovySourceFiles}" | ||
528 | 232 | fork="true" | ||
529 | 233 | memorymaximumsize="${groovycTest_mx}"> | ||
530 | 234 | <classpath> | ||
531 | 235 | <pathelement path="${testClassesDirectory}"/> | ||
532 | 236 | <path refid="groovyMainClasses"/> | ||
533 | 237 | <path refid="testLibPath"/> | ||
534 | 238 | </classpath> | ||
535 | 239 | <!-- currently not needed, add in if/when required --> | ||
536 | 240 | <!--<javac source="1.5" target="1.5" nowarn="on"/>--> | ||
537 | 241 | </groovyc> | ||
538 | 242 | </target> | ||
539 | 243 | |||
540 | 244 | <target name="compileExamples" depends="-init,-initGroovyc,compileMain,-includeExamplesResources" | ||
541 | 245 | unless="_skipExamples_" | ||
542 | 246 | description="Compile the Java and Groovy code in the examples source directory."> | ||
543 | 247 | <mkdir dir="${examplesClassesDirectory}"/> | ||
544 | 248 | <echo message="Compiling example code."/> | ||
545 | 249 | |||
546 | 250 | <groovyc srcdir="${examplesSourceDirectory}/webapps/groovlet-examples/WEB-INF/groovy" | ||
547 | 251 | destdir="${examplesClassesDirectory}" | ||
548 | 252 | fork="true" | ||
549 | 253 | memorymaximumsize="${groovycExamples_mx}"> | ||
550 | 254 | <classpath> | ||
551 | 255 | <pathelement path="${mainClassesDirectory}"/> | ||
552 | 256 | <path refid="compilePath"/> | ||
553 | 257 | <path refid="examplesPath"/> | ||
554 | 258 | </classpath> | ||
555 | 259 | </groovyc> | ||
556 | 260 | <javac srcdir="${examplesSourceDirectory}" | ||
557 | 261 | destdir="${examplesClassesDirectory}" | ||
558 | 262 | source="1.5" | ||
559 | 263 | target="1.5" | ||
560 | 264 | fork="true"> | ||
561 | 265 | <classpath> | ||
562 | 266 | <pathelement path="${mainClassesDirectory}"/> | ||
563 | 267 | <pathelement path="${examplesClassesDirectory}"/> | ||
564 | 268 | <path refid="compilePath"/> | ||
565 | 269 | <path refid="examplesPath"/> | ||
566 | 270 | </classpath> | ||
567 | 271 | </javac> | ||
568 | 272 | <groovyc srcdir="${examplesSourceDirectory}" | ||
569 | 273 | destdir="${examplesClassesDirectory}" | ||
570 | 274 | fork="true" | ||
571 | 275 | memorymaximumsize="${groovycExamples_mx}" | ||
572 | 276 | excludes="webapps/groovlet-examples/WEB-INF/groovy/**/*.groovy,org/codehaus/groovy/grails/compiler/injection/**/*.java"> | ||
573 | 277 | <classpath> | ||
574 | 278 | <pathelement path="${mainClassesDirectory}"/> | ||
575 | 279 | <pathelement path="${examplesClassesDirectory}"/> | ||
576 | 280 | <path refid="compilePath"/> | ||
577 | 281 | <path refid="examplesPath"/> | ||
578 | 282 | </classpath> | ||
579 | 283 | <javac source="1.5" target="1.5"/> | ||
580 | 284 | </groovyc> | ||
581 | 285 | |||
582 | 286 | </target> | ||
583 | 287 | |||
584 | 288 | <target name="-initializeReports"> | ||
585 | 289 | <mkdir dir="${reportsDirectory}"/> | ||
586 | 290 | </target> | ||
587 | 291 | |||
588 | 292 | <condition property="_shouldBeHeadless_"> | ||
589 | 293 | <or> | ||
590 | 294 | <istrue value="${java.awt.headless}"/> | ||
591 | 295 | <!--<os name="Mac OS X"/>--> | ||
592 | 296 | </or> | ||
593 | 297 | </condition> | ||
594 | 298 | |||
595 | 299 | <target name="-testInit" depends="-initHeadless"> | ||
596 | 300 | <property name="headlessArg" value=""/> | ||
597 | 301 | <property name="junitJvmArgs" | ||
598 | 302 | value="-Xms${groovyJUnit_ms} -XX:PermSize=${groovyJUnit_permSize} -XX:MaxPermSize=${groovyJUnit_maxPermSize} ${headlessArg} -Dgroovy.testdb.props=${groovy.testdb.props} -DjavadocAssertion.src.dir=./src/main"/> | ||
599 | 303 | </target> | ||
600 | 304 | |||
601 | 305 | <target name="-initHeadless" if="_shouldBeHeadless_"> | ||
602 | 306 | <property name="headlessArg" value="-Djava.awt.headless=true"/> | ||
603 | 307 | <echo message="Setting headless mode ..."/> | ||
604 | 308 | </target> | ||
605 | 309 | |||
606 | 310 | <target name="test" | ||
607 | 311 | depends="-banner,-checkAntVersion,-initializeReports,compileTest,-coverageInstrument,-testInit,-testOne,-testAll,-reportTestFailed" | ||
608 | 312 | description="Compile and test all the classes (or just one class if testCase property is defined)."/> | ||
609 | 313 | |||
610 | 314 | <target name="clean-test" depends="clean,test" | ||
611 | 315 | description="Clean and compile and test all the classes (or just one class if testCase property is defined)."/> | ||
612 | 316 | |||
613 | 317 | <condition property="_testOne_"> | ||
614 | 318 | <and> | ||
615 | 319 | <not> | ||
616 | 320 | <istrue value="${_skipTests_}"/> | ||
617 | 321 | </not> | ||
618 | 322 | <isset property="testCase"/> | ||
619 | 323 | </and> | ||
620 | 324 | </condition> | ||
621 | 325 | |||
622 | 326 | <target name="-testOne" if="_testOne_" depends="-initGroovyc"> | ||
623 | 327 | <mkdir dir="${junitRawDirectory}"/> | ||
624 | 328 | <junit printsummary="true" fork="true" includeantruntime="false" failureproperty="testFailed" | ||
625 | 329 | maxmemory="${groovyJUnit_mx}" dir="${basedir}"> | ||
626 | 330 | <sysproperty key="apple.awt.UIElement" value="true"/> | ||
627 | 331 | <!-- keeps the dock from showing the AWT startup --> | ||
628 | 332 | <jvmarg line="${junitJvmArgs}"/> | ||
629 | 333 | <test name="${testCase}" todir="${junitRawDirectory}"/> | ||
630 | 334 | <formatter type="brief" usefile="false"/> | ||
631 | 335 | <classpath> | ||
632 | 336 | <pathelement path="${instrumentedClassesDirectory}"/> | ||
633 | 337 | <pathelement path="src/test"/> | ||
634 | 338 | <path refid="groovyMainClasses"/> | ||
635 | 339 | <path refid="testLibPath"/> | ||
636 | 340 | <pathelement path="${testClassesDirectory}"/> | ||
637 | 341 | <path refid="coberturaPath"/> | ||
638 | 342 | </classpath> | ||
639 | 343 | <assertions> | ||
640 | 344 | <enable/> | ||
641 | 345 | </assertions> | ||
642 | 346 | </junit> | ||
643 | 347 | </target> | ||
644 | 348 | |||
645 | 349 | <condition property="_testAll_"> | ||
646 | 350 | <and> | ||
647 | 351 | <not> | ||
648 | 352 | <istrue value="${_skipTests_}"/> | ||
649 | 353 | </not> | ||
650 | 354 | <not> | ||
651 | 355 | <isset property="_testOne_"/> | ||
652 | 356 | </not> | ||
653 | 357 | </and> | ||
654 | 358 | </condition> | ||
655 | 359 | |||
656 | 360 | <target name="-collectOptionalTests"> | ||
657 | 361 | <condition property="networkTests.fileset.includes" value="groovy/grape/*Test.class" else="-nothing-"> | ||
658 | 362 | <istrue value="${junit.network}"/> | ||
659 | 363 | </condition> | ||
660 | 364 | <fileset id="optionalTests.fileset" dir="${testClassesDirectory}" includes="${networkTests.fileset.includes}"/> | ||
661 | 365 | </target> | ||
662 | 366 | |||
663 | 367 | <target name="-collect15tests" unless="groovy.build.vm6"> | ||
664 | 368 | <fileset id="ubertests.fileset" dir="${testClassesDirectory}" includes="UberTest*.class" excludes="Uber*VM6.class"/> | ||
665 | 369 | </target> | ||
666 | 370 | |||
667 | 371 | <target name="-collect16tests" if="groovy.build.vm6"> | ||
668 | 372 | <fileset id="ubertests.fileset" dir="${testClassesDirectory}" includes="UberTest*.class"/> | ||
669 | 373 | </target> | ||
670 | 374 | |||
671 | 375 | <target name="-testAll" if="_testAll_" depends="-collect15tests,-collect16tests,-collectOptionalTests,-initGroovyc"> | ||
672 | 376 | <mkdir dir="${junitRawDirectory}"/> | ||
673 | 377 | <junit printsummary="true" fork="true" includeantruntime="false" failureproperty="testFailed" | ||
674 | 378 | maxmemory="${groovyJUnit_mx}" dir="${basedir}"> | ||
675 | 379 | <jvmarg line="${junitJvmArgs}"/> | ||
676 | 380 | <sysproperty key="apple.awt.UIElement" value="true"/> | ||
677 | 381 | <!-- keeps the dock from showing the AWT startup --> | ||
678 | 382 | <formatter type="xml"/> | ||
679 | 383 | <formatter type="plain" unless="noTextReports"/> | ||
680 | 384 | <batchtest todir="${junitRawDirectory}"> | ||
681 | 385 | <fileset refid="ubertests.fileset"/> | ||
682 | 386 | <fileset refid="optionalTests.fileset"/> | ||
683 | 387 | </batchtest> | ||
684 | 388 | <classpath> | ||
685 | 389 | <pathelement path="${instrumentedClassesDirectory}"/> | ||
686 | 390 | <pathelement path="src/test"/> | ||
687 | 391 | <path refid="groovyMainClasses"/> | ||
688 | 392 | <path refid="testLibPath"/> | ||
689 | 393 | <pathelement path="${testClassesDirectory}"/> | ||
690 | 394 | <path refid="coberturaPath"/> | ||
691 | 395 | </classpath> | ||
692 | 396 | <assertions> | ||
693 | 397 | <enable/> | ||
694 | 398 | </assertions> | ||
695 | 399 | </junit> | ||
696 | 400 | <mkdir dir="${junitReportsDirectory}"/> | ||
697 | 401 | <junitreport tofile="${junitRawDirectory}/Results.xml"> | ||
698 | 402 | <fileset dir="${junitRawDirectory}" includes="TEST-*.xml"/> | ||
699 | 403 | <report format="frames" todir="${junitReportsDirectory}"/> | ||
700 | 404 | </junitreport> | ||
701 | 405 | </target> | ||
702 | 406 | |||
703 | 407 | <target name="-reportTestFailed" depends="-coverageReport" if="testFailed"> | ||
704 | 408 | <fail message="Test failed, not processing further targets."/> | ||
705 | 409 | </target> | ||
706 | 410 | |||
707 | 411 | <target name="-coverageInstrument" depends="-initCoverage,-coberturaInit" if="_forceCoverage_"> | ||
708 | 412 | <mkdir dir="${instrumentedClassesDirectory}"/> | ||
709 | 413 | <coberturaInstrument classesDirectory="${mainClassesDirectory}"/> | ||
710 | 414 | </target> | ||
711 | 415 | |||
712 | 416 | <target name="-coverageReport" depends="-initCoverage" if="_forceCoverage_"> | ||
713 | 417 | <coberturaReport reportDirectory="${reportsDirectory}/cobertura" sourceDirectory="${mainSourceDirectory}"/> | ||
714 | 418 | </target> | ||
715 | 419 | |||
716 | 420 | <target name="-actuallyCreateJars" | ||
717 | 421 | depends="-makeManifest,-initializeJars,-createBaseJar,-createEmbeddableJar" | ||
718 | 422 | unless="testFailed"/> | ||
719 | 423 | |||
720 | 424 | <target name="-makeManifest"> | ||
721 | 425 | <mkdir dir="${mainClassesDirectory}/META-INF"/> | ||
722 | 426 | <copy todir="${mainClassesDirectory}/META-INF" file="LICENSE.txt"/> | ||
723 | 427 | <makeManifest file="${mainClassesDirectory}/META-INF/MANIFEST.MF"/> | ||
724 | 428 | </target> | ||
725 | 429 | |||
726 | 430 | <macrodef name="makeManifest"> | ||
727 | 431 | <attribute name="file"/> | ||
728 | 432 | <attribute name="bundleEnvironment" default="J2SE-1.5"/> | ||
729 | 433 | <sequential> | ||
730 | 434 | <manifest file="@{file}"> | ||
731 | 435 | <attribute name="Built-By" value="${user.name}"/> | ||
732 | 436 | <attribute name="Extension-Name" value="groovy"/> | ||
733 | 437 | <attribute name="Specification-Title" value="Groovy: a powerful, dynamic language for the JVM"/> | ||
734 | 438 | <attribute name="Specification-Version" value="${groovyVersion}"/> | ||
735 | 439 | <attribute name="Specification-Vendor" value="The Codehaus"/> | ||
736 | 440 | <attribute name="Implementation-Title" value="Groovy: a powerful, dynamic language for the JVM"/> | ||
737 | 441 | <attribute name="Implementation-Version" value="${groovyVersion}"/> | ||
738 | 442 | <attribute name="Implementation-Vendor" value="The Codehaus"/> | ||
739 | 443 | <attribute name="Bundle-ManifestVersion" value="2"/> | ||
740 | 444 | <attribute name="Bundle-Name" value="Groovy Runtime"/> | ||
741 | 445 | <attribute name="Bundle-Description" value="Groovy Runtime"/> | ||
742 | 446 | <attribute name="Bundle-Version" value="${groovyBundleVersion}"/> | ||
743 | 447 | <attribute name="Bundle-Vendor" value="The Codehaus"/> | ||
744 | 448 | <attribute name="Bundle-ClassPath" value="."/> | ||
745 | 449 | <attribute name="Bundle-RequiredExecutionEnvironment" value="@{bundleEnvironment}"/> | ||
746 | 450 | <attribute name="Eclipse-BuddyPolicy" value="dependent"/> | ||
747 | 451 | <attribute name="Eclipse-LazyStart" value="true"/> | ||
748 | 452 | <attribute name="DynamicImport-Package" value="*"/> | ||
749 | 453 | </manifest> | ||
750 | 454 | </sequential> | ||
751 | 455 | </macrodef> | ||
752 | 456 | |||
753 | 457 | <target name="-includeResources" depends="-includeGroovyDocTemplates"> | ||
754 | 458 | <copy todir="${mainClassesDirectory}"> | ||
755 | 459 | <fileset dir="${mainSourceDirectory}"> | ||
756 | 460 | <include name="META-INF/services/*"/> | ||
757 | 461 | <include name="groovy/grape/*.xml"/> | ||
758 | 462 | <include name="groovy/ui/*.properties"/> | ||
759 | 463 | <include name="groovy/ui/**/*.png"/> | ||
760 | 464 | <include name="groovy/inspect/swingui/AstBrowserProperties.groovy"/> | ||
761 | 465 | <include name="org/codehaus/groovy/tools/shell/**/*.properties"/> | ||
762 | 466 | <include name="org/codehaus/groovy/tools/groovydoc/**/*.properties"/> | ||
763 | 467 | <include name="org/codehaus/groovy/tools/shell/**/*.xml"/> | ||
764 | 468 | <include name="org/codehaus/groovy/antlib.xml"/> | ||
765 | 469 | </fileset> | ||
766 | 470 | </copy> | ||
767 | 471 | <antcall target="-includeReleaseInfo"/> | ||
768 | 472 | </target> | ||
769 | 473 | |||
770 | 474 | <target name="-includeReleaseInfo"> | ||
771 | 475 | <copy file="${mainSourceDirectory}/META-INF/groovy-release-info.properties" | ||
772 | 476 | todir="${mainClassesDirectory}/META-INF" overwrite="true"> | ||
773 | 477 | </copy> | ||
774 | 478 | <tstamp> | ||
775 | 479 | <format property="release.date" pattern="dd-MMM-yyyy"/> | ||
776 | 480 | <format property="release.time" pattern="hh:mm aa"/> | ||
777 | 481 | </tstamp> | ||
778 | 482 | <replace file="${mainClassesDirectory}/META-INF/groovy-release-info.properties"> | ||
779 | 483 | <replacefilter token="##ImplementationVersion##" value="${groovyVersion}"/> | ||
780 | 484 | <replacefilter token="##BundleVersion##" value="${groovyBundleVersion}"/> | ||
781 | 485 | <replacefilter token="##BuildDate##" value="${release.date}"/> | ||
782 | 486 | <replacefilter token="##BuildTime##" value="${release.time}"/> | ||
783 | 487 | </replace> | ||
784 | 488 | </target> | ||
785 | 489 | |||
786 | 490 | <target name="-includeExamplesResources" depends="-includeGroovyDocTemplates"> | ||
787 | 491 | <copy todir="${examplesClassesDirectory}"> | ||
788 | 492 | <fileset dir="${examplesSourceDirectory}"> | ||
789 | 493 | <include name="/swing/binding/caricature/resources/*.gif"/> | ||
790 | 494 | </fileset> | ||
791 | 495 | </copy> | ||
792 | 496 | </target> | ||
793 | 497 | |||
794 | 498 | <target name="-includeGroovyDocTemplates"> | ||
795 | 499 | <copy todir="${mainClassesDirectory}"> | ||
796 | 500 | <fileset dir="${mainSourceDirectory}"> | ||
797 | 501 | <include name="org/codehaus/groovy/tools/groovydoc/gstringTemplates/*/*.*"/> | ||
798 | 502 | </fileset> | ||
799 | 503 | <fileset dir="${toolsSourceDirectory}"> | ||
800 | 504 | <include name="org/codehaus/groovy/tools/groovy.ico"/> | ||
801 | 505 | </fileset> | ||
802 | 506 | </copy> | ||
803 | 507 | </target> | ||
804 | 508 | |||
805 | 509 | <target name="-initializeJars" depends="test" unless="_skipDocs_"> | ||
806 | 510 | <delete dir="${targetDistDirectory}" quiet="true"/> | ||
807 | 511 | <mkdir dir="${targetDistDirectory}"/> | ||
808 | 512 | </target> | ||
809 | 513 | |||
810 | 514 | <target name="-createBaseJar" unless="testFailed"> | ||
811 | 515 | <jar destfile="${targetDistDirectory}/groovy.jar" basedir="${mainClassesDirectory}" | ||
812 | 516 | excludes="*.groovy" manifest="${mainClassesDirectory}/META-INF/MANIFEST.MF"/> | ||
813 | 517 | <jar destfile="${targetDistDirectory}/groovy-${groovyVersion}-sources.jar" basedir="${mainSourceDirectory}"/> | ||
814 | 518 | </target> | ||
815 | 519 | |||
816 | 520 | <target name="-jarjarInit" unless="_skipEmbeddable_"> | ||
817 | 521 | <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpathref="toolsPath"/> | ||
818 | 522 | </target> | ||
819 | 523 | |||
820 | 524 | <target name="-createEmbeddableJar" depends="-jarjarInit,-actuallyCreateEmbeddableJar" unless="testFailed"/> | ||
821 | 525 | |||
822 | 526 | <target name="-actuallyCreateEmbeddableJar" unless="_skipEmbeddable_"> | ||
823 | 527 | <delete dir="${stagingDirectory}" quiet="true"/> | ||
824 | 528 | <mkdir dir="${stagingDirectory}"/> | ||
825 | 529 | <unzip dest="${stagingDirectory}"> | ||
826 | 530 | <fileset dir="${runtimeLibDirectory}"> | ||
827 | 531 | <include name="antlr*.jar"/> | ||
828 | 532 | <include name="asm*.jar"/> | ||
829 | 533 | <exclude name="asm-attr*.jar"/> | ||
830 | 534 | <exclude name="asm-util*.jar"/> | ||
831 | 535 | <exclude name="asm-analysis*.jar"/> | ||
832 | 536 | </fileset> | ||
833 | 537 | </unzip> | ||
834 | 538 | <unzip dest="${stagingDirectory}"> | ||
835 | 539 | <fileset dir="${targetDistDirectory}"> | ||
836 | 540 | <include name="groovy.jar"/> | ||
837 | 541 | </fileset> | ||
838 | 542 | </unzip> | ||
839 | 543 | <copy toDir="${stagingDirectory}/META-INF"> | ||
840 | 544 | <fileset dir="${basedir}/config/build"> | ||
841 | 545 | <include name="*LICENSE.txt"/> | ||
842 | 546 | </fileset> | ||
843 | 547 | </copy> | ||
844 | 548 | <!-- add commons-cli --> | ||
845 | 549 | <unzip dest="${stagingDirectory}"> | ||
846 | 550 | <patternset> | ||
847 | 551 | <!-- no need for the manifest file, we have our own --> | ||
848 | 552 | <exclude name="META-INF/MANIFEST.MF"/> | ||
849 | 553 | </patternset> | ||
850 | 554 | <globmapper from="META-INF/LICENSE.txt" to="META-INF/CLI-LICENSE.txt"/> | ||
851 | 555 | <fileset dir="${runtimeLibDirectory}"> | ||
852 | 556 | <include name="commons-cli-*.jar"/> | ||
853 | 557 | </fileset> | ||
854 | 558 | </unzip> | ||
855 | 559 | <makeManifest file="${stagingDirectory}/META-INF/MANIFEST.MF"/> | ||
856 | 560 | <!-- TODO try to make use of jarjar keep ability --> | ||
857 | 561 | <jarjar jarfile="${targetDistDirectory}/groovy-all.jar" | ||
858 | 562 | manifest="${stagingDirectory}/META-INF/MANIFEST.MF"> | ||
859 | 563 | <fileset dir="${stagingDirectory}" | ||
860 | 564 | excludes="groovy/util/CliBuilder*.class,groovy/util/OptionAccessor*.class,org/codehaus/groovy/tools/shell/util/HelpFormatter*.class"/> | ||
861 | 565 | <rule pattern="antlr.**" result="groovyjarjarantlr.@1"/> | ||
862 | 566 | <rule pattern="org.objectweb.**" result="groovyjarjarasm.@1"/> | ||
863 | 567 | <rule pattern="org.apache.commons.cli.**" result="groovyjarjarcommonscli.@1"/> | ||
864 | 568 | </jarjar> | ||
865 | 569 | <jar destfile="${targetDistDirectory}/groovy-all.jar" update="true" | ||
866 | 570 | basedir="${stagingDirectory}" | ||
867 | 571 | includes="groovy/util/CliBuilder*.class,groovy/util/OptionAccessor*.class,org/codehaus/groovy/tools/shell/util/HelpFormatter*.class"/> | ||
868 | 572 | |||
869 | 573 | <copy file="${targetDistDirectory}/groovy-${groovyVersion}-sources.jar" | ||
870 | 574 | tofile="${targetDistDirectory}/groovy-all-${groovyVersion}-sources.jar"/> | ||
871 | 575 | <delete dir="${stagingDirectory}" quiet="true"/> | ||
872 | 576 | </target> | ||
873 | 577 | |||
874 | 578 | <target name="createJars" depends="-checkAntVersion,test,-actuallyCreateJars" | ||
875 | 579 | description="Build Groovy and create the jarfiles."/> | ||
876 | 580 | |||
877 | 581 | <target name="updateJarsForOsgi" unless="_skipOsgi_"> | ||
878 | 582 | <taskdef resource="aQute/bnd/ant/taskdef.properties" classpathref="toolsPath"/> | ||
879 | 583 | <copy todir="${targetDistDirectory}"> | ||
880 | 584 | <fileset dir="config/bnd" includes="groovy*.bnd"/> | ||
881 | 585 | <filterset> | ||
882 | 586 | <filter token="GROOVY_BUNDLE_VERSION" value="${groovyBundleVersion}"/> | ||
883 | 587 | </filterset> | ||
884 | 588 | </copy> | ||
885 | 589 | <property name="jarsToWrap" value="groovy.jar,groovy-all.jar"/> | ||
886 | 590 | <property name="runtimeJars" refid="runtimePath"/> | ||
887 | 591 | <bndwrap definitions="${targetDistDirectory}" output="${targetDistDirectory}" failok="true" | ||
888 | 592 | classpath="${runtimeJars}"> | ||
889 | 593 | <fileset dir="${targetDistDirectory}" includes="${jarsToWrap}"/> | ||
890 | 594 | </bndwrap> | ||
891 | 595 | <delete dir="${targetDistDirectory}" includes="${jarsToWrap}"/> | ||
892 | 596 | <move todir="${targetDistDirectory}"> | ||
893 | 597 | <fileset dir="${targetDistDirectory}" includes="groovy*.bar"/> | ||
894 | 598 | <globmapper from="groovy*.bar" to="groovy*-${groovyVersion}.jar"/> | ||
895 | 599 | </move> | ||
896 | 600 | <delete dir="${targetDistDirectory}" includes="groovy*.bnd"/> | ||
897 | 601 | </target> | ||
898 | 602 | |||
899 | 603 | <target name="skipOsgi" if="_skipOsgi_"> | ||
900 | 604 | <move todir="${targetDistDirectory}"> | ||
901 | 605 | <fileset dir="${targetDistDirectory}" includes="groovy*.jar"/> | ||
902 | 606 | <globmapper from="groovy*.jar" to="groovy*-${groovyVersion}.jar"/> | ||
903 | 607 | </move> | ||
904 | 608 | </target> | ||
905 | 609 | |||
906 | 610 | <target name="install" depends="createJars,updateJarsForOsgi,skipOsgi" unless="testFailed" | ||
907 | 611 | description="Create an installation hierarchy in target/install."> | ||
908 | 612 | |||
909 | 613 | <!-- | ||
910 | 614 | FIXME: It's not really a good idea to delete stuff, as it tends to negate Ant's (or other tools) | ||
911 | 615 | ability to run faster incremental builds. | ||
912 | 616 | --> | ||
913 | 617 | <delete dir="${installDirectory}" quiet="true"/> | ||
914 | 618 | <mkdir dir="${installDirectory}"/> | ||
915 | 619 | |||
916 | 620 | <!-- Install license files --> | ||
917 | 621 | <copy todir="${installDirectory}"> | ||
918 | 622 | <fileset dir="${basedir}"> | ||
919 | 623 | <include name="LICENSE.txt"/> | ||
920 | 624 | <include name="NOTICE.txt"/> | ||
921 | 625 | </fileset> | ||
922 | 626 | </copy> | ||
923 | 627 | <unzip dest="${installDirectory}"> | ||
924 | 628 | <patternset> | ||
925 | 629 | <include name="META-INF/*-LICENSE.txt"/> | ||
926 | 630 | </patternset> | ||
927 | 631 | <mapper type="flatten"/> | ||
928 | 632 | <fileset file="${targetDistDirectory}/groovy-all-${groovyVersion}.jar"/> | ||
929 | 633 | </unzip> | ||
930 | 634 | <fixcrlf srcdir="${installDirectory}" eol="crlf" includes="*.txt"/> | ||
931 | 635 | |||
932 | 636 | <!-- Install generated artifacts and runtime dependencies --> | ||
933 | 637 | <mkdir dir="${installDirectory}/lib"/> | ||
934 | 638 | <copy todir="${installDirectory}/lib"> | ||
935 | 639 | <fileset dir="${targetDistDirectory}" includes="groovy-${groovyVersion}.jar"/> | ||
936 | 640 | <fileset dir="${runtimeLibDirectory}" includes="*.jar"/> | ||
937 | 641 | </copy> | ||
938 | 642 | |||
939 | 643 | <!-- Install the embeddable bits --> | ||
940 | 644 | <mkdir dir="${installDirectory}/embeddable"/> | ||
941 | 645 | <copy todir="${installDirectory}/embeddable"> | ||
942 | 646 | <fileset dir="${targetDistDirectory}" includes="groovy-all-${groovyVersion}.jar"/> | ||
943 | 647 | </copy> | ||
944 | 648 | |||
945 | 649 | <!-- Install configuration files --> | ||
946 | 650 | <mkdir dir="${installDirectory}/conf"/> | ||
947 | 651 | <copy toDir="${installDirectory}/conf"> | ||
948 | 652 | <fileset dir="${sourceDirectory}/conf" includes="*"/> | ||
949 | 653 | </copy> | ||
950 | 654 | |||
951 | 655 | <!-- Install scripts --> | ||
952 | 656 | <mkdir dir="${installDirectory}/bin"/> | ||
953 | 657 | <copy toDir="${installDirectory}/bin"> | ||
954 | 658 | <fileset dir="${sourceDirectory}/bin" includes="*"/> | ||
955 | 659 | <filterset> | ||
956 | 660 | <filter token="GROOVYJAR" value="groovy-${groovyVersion}.jar"/> | ||
957 | 661 | </filterset> | ||
958 | 662 | </copy> | ||
959 | 663 | <!-- icon --> | ||
960 | 664 | <copy todir="${installDirectory}/bin" flatten="true"> | ||
961 | 665 | <fileset dir="${toolsSourceDirectory}"> | ||
962 | 666 | <include name="org/codehaus/groovy/tools/groovy.ico"/> | ||
963 | 667 | </fileset> | ||
964 | 668 | </copy> | ||
965 | 669 | |||
966 | 670 | <!-- Tweak scripts for platform compatibility --> | ||
967 | 671 | <fixcrlf srcdir="${installDirectory}/bin" eol="lf" excludes="*.bat, *.icns"/> | ||
968 | 672 | <fixcrlf srcdir="${installDirectory}/bin" eol="crlf" includes="*.bat"/> | ||
969 | 673 | <chmod perm="ugo+x"> | ||
970 | 674 | <fileset dir="${installDirectory}/bin" includes="*,*.*"/> | ||
971 | 675 | </chmod> | ||
972 | 676 | </target> | ||
973 | 677 | |||
974 | 678 | <target name="checkstyle" depends="-init,-initializeReports,-checkstyleInit" | ||
975 | 679 | description="Create the code style reports."> | ||
976 | 680 | <checkAndReport | ||
977 | 681 | reportDirectory="${reportsDirectory}/checkstyle" | ||
978 | 682 | sourceDirectory="${mainSourceDirectory}" | ||
979 | 683 | excludes="org/codehaus/groovy/antlr/parser/*,org/codehaus/groovy/antlr/java/*,org/codehaus/groovy/syntax/Types.java"> | ||
980 | 684 | <path> | ||
981 | 685 | <pathelement path="${mainClassesDirectory}"/> | ||
982 | 686 | <path refid="testLibPath"/> | ||
983 | 687 | </path> | ||
984 | 688 | </checkAndReport> | ||
985 | 689 | </target> | ||
986 | 690 | |||
987 | 691 | <target name="-compileTools" depends="-initGroovyc,compileMain"> | ||
988 | 692 | <groovyc srcdir="${toolsSourceDirectory}" destdir="${toolsClassesDirectory}" fork="true"> | ||
989 | 693 | <classpath> | ||
990 | 694 | <path refid="toolsPath"/> | ||
991 | 695 | <pathelement path="${mainClassesDirectory}"/> | ||
992 | 696 | <path refid="compilePath"/> | ||
993 | 697 | </classpath> | ||
994 | 698 | </groovyc> | ||
995 | 699 | <copy todir="${toolsClassesDirectory}"> | ||
996 | 700 | <fileset dir="${toolsSourceDirectory}"> | ||
997 | 701 | <include name="**/*.html"/> | ||
998 | 702 | </fileset> | ||
999 | 703 | </copy> | ||
1000 | 704 | </target> | ||
1001 | 705 | |||
1002 | 706 | <target name="cruiseReportExtras"> | ||
1003 | 707 | <mkdir dir="${cruiseReportRootDirectory}"/> | ||
1004 | 708 | <copy todir="${cruiseReportRootDirectory}"> | ||
1005 | 709 | <fileset dir="cruise/html"/> | ||
1006 | 710 | </copy> | ||
1007 | 711 | </target> | ||
1008 | 712 | |||
1009 | 713 | <target name="cruiseInit"> | ||
1010 | 714 | <property name="noTextReports" value="true"/> | ||
1011 | 715 | <property name="forceCoverage" value="true"/> | ||
1012 | 716 | <delete dir="${reportsDirectory}" quiet="true" failonerror="false"/> | ||
1013 | 717 | <delete dir="${junitRawDirectory}" quiet="true" failonerror="false"/> | ||
1014 | 718 | </target> | ||
1015 | 719 | |||
1016 | 720 | <target name="cruise" depends="cruiseInit,fulldist,cruiseReportExtras"/> | ||
1017 | 721 | |||
1018 | 722 | <target name="-docInit"> | ||
1019 | 723 | <mkdir dir="${docsDirectory}"/> | ||
1020 | 724 | <property name="docFooter" value="Copyright &copy; 2003-2010 The Codehaus. All rights reserved."/> | ||
1021 | 725 | <property name="title" value="Groovy ${groovyVersion}"/> | ||
1022 | 726 | </target> | ||
1023 | 727 | |||
1024 | 728 | <target name="doc" depends="javadoc, groovydoc" description="Create the documentation."/> | ||
1025 | 729 | |||
1026 | 730 | <target name="javadoc" depends="-fetchDependencies,-docInit,-jvm14BuildWarning,ensureGrammars" | ||
1027 | 731 | unless="_skipDocs_" description="Create the javadoc documentation."> | ||
1028 | 732 | <javadoc destdir="${docsDirectory}/api" author="true" version="true" | ||
1029 | 733 | windowtitle="${title}" doctitle="${title}" | ||
1030 | 734 | encoding="ISO-8859-1" useexternalfile="true" source="1.5" | ||
1031 | 735 | footer="${docFooter}" | ||
1032 | 736 | overview="src/main/overviewj.html" | ||
1033 | 737 | maxmemory="${javaDoc_mx}" | ||
1034 | 738 | > | ||
1035 | 739 | <classpath> | ||
1036 | 740 | <path path="${mainClassesDirectory}"/> | ||
1037 | 741 | <path refid="compilePath"/> | ||
1038 | 742 | </classpath> | ||
1039 | 743 | <fileset dir="${mainSourceDirectory}" includes="**/*.java"/> | ||
1040 | 744 | <link href="http://java.sun.com/javase/6/docs/api"/> | ||
1041 | 745 | <link href="http://www.dpml.net/api/ant/1.7.0"/> | ||
1042 | 746 | <link href="http://junit.sourceforge.net/junit3.8.1/javadoc"/> | ||
1043 | 747 | <link href="http://java.sun.com/j2ee/1.4/docs/api"/> | ||
1044 | 748 | <link href="http://www.antlr2.org/javadoc"/> | ||
1045 | 749 | <link href="http://commons.apache.org/cli/api-release"/> | ||
1046 | 750 | </javadoc> | ||
1047 | 751 | <mkdir dir="${targetDistDirectory}"/> | ||
1048 | 752 | <jar basedir="${docsDirectory}/api" destfile="${targetDistDirectory}/groovy-${groovyVersion}-javadoc.jar"/> | ||
1049 | 753 | <copy toFile="${targetDistDirectory}/groovy-all-${groovyVersion}-javadoc.jar"> | ||
1050 | 754 | <fileset file="${targetDistDirectory}/groovy-${groovyVersion}-javadoc.jar"/> | ||
1051 | 755 | </copy> | ||
1052 | 756 | </target> | ||
1053 | 757 | |||
1054 | 758 | <target name="groovydoc" depends="-fetchDependencies" unless="_skipDocs_"> | ||
1055 | 759 | <path id="groovydocpath"> | ||
1056 | 760 | <path path="${mainClassesDirectory}"/> | ||
1057 | 761 | <path refid="runtimePath"/> | ||
1058 | 762 | </path> | ||
1059 | 763 | <antforked target="realgroovydoc" maxmemory="${groovyDoc_mx}" classpathref="groovydocpath"/> | ||
1060 | 764 | </target> | ||
1061 | 765 | |||
1062 | 766 | <target name="realgroovydoc" depends="-fetchDependencies,-docInit,-includeGroovyDocTemplates,docGDK"> | ||
1063 | 767 | <taskdef name="groovydoc" classname="org.codehaus.groovy.ant.Groovydoc"> | ||
1064 | 768 | <classpath> | ||
1065 | 769 | <path path="${mainClassesDirectory}"/> | ||
1066 | 770 | <path refid="compilePath"/> | ||
1067 | 771 | </classpath> | ||
1068 | 772 | </taskdef> | ||
1069 | 773 | <groovydoc | ||
1070 | 774 | destdir="${docsDirectory}/gapi" | ||
1071 | 775 | sourcepath="${mainSourceDirectory}" | ||
1072 | 776 | packagenames="**.*" | ||
1073 | 777 | use="true" | ||
1074 | 778 | windowtitle="${title}" | ||
1075 | 779 | doctitle="${title}" | ||
1076 | 780 | header="${title}" | ||
1077 | 781 | footer="${docFooter}" | ||
1078 | 782 | overview="src/main/overview.html"> | ||
1079 | 783 | <link packages="javax.servlet.,javax.management." href="http://java.sun.com/j2ee/1.4/docs/api"/> | ||
1080 | 784 | <link packages="java.,org.xml.,javax.,org.xml." href="http://java.sun.com/javase/6/docs/api"/> | ||
1081 | 785 | <link packages="org.apache.ant.,org.apache.tools.ant." href="http://www.dpml.net/api/ant/1.7.0"/> | ||
1082 | 786 | <link packages="org.junit.,junit." href="http://junit.sourceforge.net/junit3.8.1/javadoc"/> | ||
1083 | 787 | <link packages="org.apache.commons.cli." href="http://commons.apache.org/cli/api-release"/> | ||
1084 | 788 | <link packages="antlr." href="http://www.antlr2.org/javadoc"/> | ||
1085 | 789 | </groovydoc> | ||
1086 | 790 | </target> | ||
1087 | 791 | |||
1088 | 792 | <target name="docGDK" depends="-fetchDependencies,-compileTools" description="Create the GDK documentation"> | ||
1089 | 793 | <java classname="org.codehaus.groovy.tools.DocGenerator" fork="yes" failonerror="true"> | ||
1090 | 794 | <classpath> | ||
1091 | 795 | <pathelement path="${toolsClassesDirectory}"/> | ||
1092 | 796 | <path refid="toolsPath"/> | ||
1093 | 797 | <pathelement path="${mainClassesDirectory}"/> | ||
1094 | 798 | </classpath> | ||
1095 | 799 | <arg value="org.codehaus.groovy.runtime.DefaultGroovyMethods"/> | ||
1096 | 800 | <arg value="org.codehaus.groovy.runtime.SqlGroovyMethods"/> | ||
1097 | 801 | <arg value="org.codehaus.groovy.runtime.SwingGroovyMethods"/> | ||
1098 | 802 | <arg value="org.codehaus.groovy.runtime.XmlGroovyMethods"/> | ||
1099 | 803 | <arg value="org.codehaus.groovy.runtime.EncodingGroovyMethods"/> | ||
1100 | 804 | <arg value="org.codehaus.groovy.runtime.DateGroovyMethods"/> | ||
1101 | 805 | <arg value="org.codehaus.groovy.runtime.DefaultGroovyStaticMethods"/> | ||
1102 | 806 | <arg value="org.codehaus.groovy.vmplugin.v5.PluginDefaultGroovyMethods"/> | ||
1103 | 807 | <arg value="org.codehaus.groovy.vmplugin.v6.PluginDefaultGroovyMethods"/> | ||
1104 | 808 | </java> | ||
1105 | 809 | <copy todir="target/html/groovy-jdk" file="src/tools/org/codehaus/groovy/tools/groovy.ico"/> | ||
1106 | 810 | <copy todir="target/html/groovy-jdk" file="src/tools/org/codehaus/groovy/tools/stylesheet.css"/> | ||
1107 | 811 | </target> | ||
1108 | 812 | |||
1109 | 813 | <target name="clean" description="Clean up build artifacts."> | ||
1110 | 814 | <delete dir="${targetDirectory}" quiet="true"/> | ||
1111 | 815 | <delete file="cobertura.ser" quiet="true" failonerror="false"/> | ||
1112 | 816 | <delete quiet="true"> | ||
1113 | 817 | <fileset dir="." includes="**/*~"/> | ||
1114 | 818 | <fileset dir="${groovyParserDirectory}" includes="Groovy*.*"/> | ||
1115 | 819 | <fileset dir="${javaParserDirectory}" | ||
1116 | 820 | includes="JavaLexer.java,JavaRecognizer.java,JavaTokenTypes.java,JavaTokenTypes.txt,*.smap"/> | ||
1117 | 821 | </delete> | ||
1118 | 822 | </target> | ||
1119 | 823 | |||
1120 | 824 | <target name="deploy" depends="-mavenDeployInit,install,doc,-deployDefault,-deployFromServer" | ||
1121 | 825 | description="Deploy jars to maven repository."/> | ||
1122 | 826 | |||
1123 | 827 | <target name="-deployDefault" unless="_forceServerSettings_"> | ||
1124 | 828 | <mavenDeploy version="${groovyVersion}" prefix="groovy"/> | ||
1125 | 829 | <mavenDeploy version="${groovyVersion}" prefix="groovy-all"/> | ||
1126 | 830 | </target> | ||
1127 | 831 | |||
1128 | 832 | <target name="-deployFromServer" if="_forceServerSettings_"> | ||
1129 | 833 | <copy tofile="target/settings.xml"> | ||
1130 | 834 | <fileset file="config/maven/settings.xml"/> | ||
1131 | 835 | <filterset> | ||
1132 | 836 | <filter token="groovy.deploy.username" value="${groovy.deploy.username}"/> | ||
1133 | 837 | <filter token="groovy.deploy.password" value="${groovy.deploy.password}"/> | ||
1134 | 838 | </filterset> | ||
1135 | 839 | </copy> | ||
1136 | 840 | <mavenDeploySettings version="${groovyVersion}" prefix="groovy" settings="target/settings.xml"/> | ||
1137 | 841 | <mavenDeploySettings version="${groovyVersion}" prefix="groovy-all" settings="target/settings.xml"/> | ||
1138 | 842 | <delete file="target/settings.xml"/> | ||
1139 | 843 | </target> | ||
1140 | 844 | |||
1141 | 845 | <target name="installRepo" depends="-mavenInit,install,doc" | ||
1142 | 846 | description="Deploy artifacts to local maven repository."> | ||
1143 | 847 | <mavenInstallRepo version="${groovyVersion}" prefix="groovy"/> | ||
1144 | 848 | <mavenInstallRepo version="${groovyVersion}" prefix="groovy-all"/> | ||
1145 | 849 | </target> | ||
1146 | 850 | |||
1147 | 851 | <target name="quality" depends="install,checkstyle" description="install plus checkstyle"/> | ||
1148 | 852 | |||
1149 | 853 | <target name="release" depends="deploy,compileExamples" description="deploy plus compileExamples"/> | ||
1150 | 854 | |||
1151 | 855 | <target name="fulldist" depends="dist,compileExamples,checkstyle" description="dist plus examples plus checkstyle"/> | ||
1152 | 856 | |||
1153 | 857 | <target name="dist" depends="install,doc" description="Create everything needed for a distribution."> | ||
1154 | 858 | <zip destfile="${targetDistDirectory}/groovy-binary-${groovyVersion}.zip" | ||
1155 | 859 | comment="The Groovy ${groovyVersion} binary distribution."> | ||
1156 | 860 | |||
1157 | 861 | <!-- Make unix scripts executable --> | ||
1158 | 862 | <zipfileset dir="${installDirectory}" prefix="groovy-${groovyVersion}" filemode="775"> | ||
1159 | 863 | <include name="bin/*"/> | ||
1160 | 864 | <exclude name="bin/*.*"/> | ||
1161 | 865 | <exclude name="bin/startGroovy*"/> | ||
1162 | 866 | </zipfileset> | ||
1163 | 867 | |||
1164 | 868 | <!-- Include the other scripts as is --> | ||
1165 | 869 | <zipfileset dir="${installDirectory}" prefix="groovy-${groovyVersion}"> | ||
1166 | 870 | <include name="bin/*.*"/> | ||
1167 | 871 | <include name="bin/startGroovy*"/> | ||
1168 | 872 | </zipfileset> | ||
1169 | 873 | |||
1170 | 874 | <!-- Include everything else as is too --> | ||
1171 | 875 | <zipfileset dir="${installDirectory}" prefix="groovy-${groovyVersion}"> | ||
1172 | 876 | <exclude name="bin/**"/> | ||
1173 | 877 | <include name="**"/> | ||
1174 | 878 | </zipfileset> | ||
1175 | 879 | </zip> | ||
1176 | 880 | |||
1177 | 881 | <zip destfile="${targetDistDirectory}/groovy-docs-${groovyVersion}.zip" | ||
1178 | 882 | comment="The Groovy ${groovyVersion} documentation distribution."> | ||
1179 | 883 | <zipfileset dir="${wikiPdfDirectory}" includes="wiki-snapshot.pdf" prefix="groovy-${groovyVersion}/pdf"/> | ||
1180 | 884 | <zipfileset dir="${docsDirectory}" prefix="groovy-${groovyVersion}/html"/> | ||
1181 | 885 | </zip> | ||
1182 | 886 | |||
1183 | 887 | <zip destfile="${targetDistDirectory}/groovy-src-${groovyVersion}.zip" | ||
1184 | 888 | comment="The Groovy ${groovyVersion} source distribution."> | ||
1185 | 889 | <zipfileset dir="${basedir}" prefix="groovy-${groovyVersion}"> | ||
1186 | 890 | <!-- Exclude generated bits as well as any other bits that shouldn't make it in --> | ||
1187 | 891 | <exclude name="${targetDirectory}/**"/> | ||
1188 | 892 | <exclude name="classes/**"/> | ||
1189 | 893 | <exclude name="cruise/**"/> | ||
1190 | 894 | <exclude name=".clover/*"/> | ||
1191 | 895 | <exclude name="local.build.properties"/> | ||
1192 | 896 | <exclude name="cobertura.ser"/> | ||
1193 | 897 | <exclude name="junitvmwatcher*.properties"/> | ||
1194 | 898 | </zipfileset> | ||
1195 | 899 | </zip> | ||
1196 | 900 | </target> | ||
1197 | 901 | |||
1198 | 902 | </project> | ||
1199 | 0 | 903 | ||
1200 | === added directory '.pc/0002-ant-build.diff.patch/config' | |||
1201 | === added directory '.pc/0002-ant-build.diff.patch/config/ant' | |||
1202 | === added file '.pc/0002-ant-build.diff.patch/config/ant/build-setup.xml' | |||
1203 | --- .pc/0002-ant-build.diff.patch/config/ant/build-setup.xml 1970-01-01 00:00:00 +0000 | |||
1204 | +++ .pc/0002-ant-build.diff.patch/config/ant/build-setup.xml 2011-02-24 17:57:34 +0000 | |||
1205 | @@ -0,0 +1,78 @@ | |||
1206 | 1 | <?xml version="1.0"?> | ||
1207 | 2 | |||
1208 | 3 | <!-- | ||
1209 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in | ||
1210 | 5 | compliance with the License. You may obtain a copy of the License at | ||
1211 | 6 | |||
1212 | 7 | http://www.apache.org/licenses/LICENSE-2.0 | ||
1213 | 8 | |||
1214 | 9 | Unless required by applicable law or agreed to in writing, software distributed under the License is | ||
1215 | 10 | distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
1216 | 11 | implied. See the License for the specific language governing permissions and limitations under the License. | ||
1217 | 12 | |||
1218 | 13 | This work is copyright by the author(s) and is part of a greater work collectively copyright by the | ||
1219 | 14 | Groovy community. See the NOTICE.txt file distributed with this work for additional information. | ||
1220 | 15 | |||
1221 | 16 | Author : Paul King | ||
1222 | 17 | $Revision: 5519 $ ($LastChangedBy: paulk $) | ||
1223 | 18 | $Date: 2007-03-11 19:14:07 +1000 (Sun, 11 Mar 2007) $ | ||
1224 | 19 | --> | ||
1225 | 20 | |||
1226 | 21 | <project name="build-setup" default="" basedir="../.."> | ||
1227 | 22 | |||
1228 | 23 | <property name="bootstrapDirectory" location="bootstrap"/> | ||
1229 | 24 | <property name="sourceDirectory" value="src"/> | ||
1230 | 25 | <property name="wikiPdfDirectory" value="src"/> | ||
1231 | 26 | <property name="mainSourceDirectory" location="${sourceDirectory}/main"/> | ||
1232 | 27 | <property name="testSourceDirectory" value="${sourceDirectory}/test"/> | ||
1233 | 28 | <property name="toolsSourceDirectory" location="${sourceDirectory}/tools"/> | ||
1234 | 29 | <property name="examplesSourceDirectory" location="${sourceDirectory}/examples"/> | ||
1235 | 30 | |||
1236 | 31 | <property name="targetDirectory" value="target"/> | ||
1237 | 32 | <property name="installDirectory" value="${targetDirectory}/install"/> | ||
1238 | 33 | <property name="cruiseReportRootDirectory" value="${targetDirectory}/root"/> | ||
1239 | 34 | <property name="stagingDirectory" value="${targetDirectory}/staging"/> | ||
1240 | 35 | <property name="docsDirectory" value="${targetDirectory}/html"/> | ||
1241 | 36 | <property name="mainClassesDirectory" value="${targetDirectory}/classes"/> | ||
1242 | 37 | <property name="testClassesDirectory" value="${targetDirectory}/test-classes"/> | ||
1243 | 38 | <property name="toolsClassesDirectory" value="${targetDirectory}/tools-classes"/> | ||
1244 | 39 | <property name="mainStubsDirectory" value="${targetDirectory}/stubs"/> | ||
1245 | 40 | <property name="testStubsDirectory" value="${targetDirectory}/test-stubs"/> | ||
1246 | 41 | |||
1247 | 42 | <property name="examplesClassesDirectory" value="${targetDirectory}/examples-classes"/> | ||
1248 | 43 | <property name="instrumentedClassesDirectory" value="${targetDirectory}/instrumented-classes"/> | ||
1249 | 44 | <property name="reportsDirectory" value="${targetDirectory}/reports"/> | ||
1250 | 45 | <property name="targetLibDirectory" value="${targetDirectory}/lib"/> | ||
1251 | 46 | <property name="targetDistDirectory" value="${targetDirectory}/dist"/> | ||
1252 | 47 | |||
1253 | 48 | <property name="antlrDirectory" value="${mainSourceDirectory}/org/codehaus/groovy/antlr"/> | ||
1254 | 49 | <property name="groovyParserDirectory" value="${antlrDirectory}/parser"/> | ||
1255 | 50 | <property name="javaParserDirectory" value="${antlrDirectory}/java"/> | ||
1256 | 51 | |||
1257 | 52 | <property name="compileLibDirectory" value="${targetLibDirectory}/compile"/> | ||
1258 | 53 | <property name="testLibDirectory" value="${targetLibDirectory}/test"/> | ||
1259 | 54 | <property name="runtimeLibDirectory" value="${targetLibDirectory}/runtime"/> | ||
1260 | 55 | <property name="toolsLibDirectory" value="${targetLibDirectory}/tools"/> | ||
1261 | 56 | <property name="examplesLibDirectory" value="${targetLibDirectory}/examples"/> | ||
1262 | 57 | <property name="extrasLibDirectory" value="${targetLibDirectory}/extras"/> | ||
1263 | 58 | <property name="junitRawDirectory" value="${targetDirectory}/test-reports"/> | ||
1264 | 59 | <property name="junitReportsDirectory" value="${reportsDirectory}/junit"/> | ||
1265 | 60 | <property name="relativePathToRealBasedir" value="."/> | ||
1266 | 61 | |||
1267 | 62 | <macrodef name="antforked"> | ||
1268 | 63 | <attribute name="target"/> | ||
1269 | 64 | <attribute name="maxmemory" default="256m"/> | ||
1270 | 65 | <attribute name="classpathref" default="runtimePath"/> | ||
1271 | 66 | <sequential> | ||
1272 | 67 | <java classname="org.apache.tools.ant.launch.Launcher" fork="true" maxmemory="@{maxmemory}" failonerror="true"> | ||
1273 | 68 | <classpath refid="@{classpathref}"/> | ||
1274 | 69 | <jvmarg value="-Duser.home=${user.home}" /> | ||
1275 | 70 | <arg value="@{target}"/> | ||
1276 | 71 | <arg value="-DskipFetch=${skipFetch}"/> | ||
1277 | 72 | <arg value="-DruntimeLibDirectory=${runtimeLibDirectory}"/> | ||
1278 | 73 | <arg value="-DtoolsLibDirectory=${toolsLibDirectory}" /> | ||
1279 | 74 | </java> | ||
1280 | 75 | </sequential> | ||
1281 | 76 | </macrodef> | ||
1282 | 77 | |||
1283 | 78 | </project> | ||
1284 | 0 | 79 | ||
1285 | === added directory '.pc/0003-disable-bnd.diff.patch' | |||
1286 | === added file '.pc/0003-disable-bnd.diff.patch/build.xml' | |||
1287 | --- .pc/0003-disable-bnd.diff.patch/build.xml 1970-01-01 00:00:00 +0000 | |||
1288 | +++ .pc/0003-disable-bnd.diff.patch/build.xml 2011-02-24 17:57:34 +0000 | |||
1289 | @@ -0,0 +1,910 @@ | |||
1290 | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
1291 | 2 | |||
1292 | 3 | <!-- | ||
1293 | 4 | Ant build script for Groovy. | ||
1294 | 5 | |||
1295 | 6 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in | ||
1296 | 7 | compliance with the License. You may obtain a copy of the License at | ||
1297 | 8 | |||
1298 | 9 | http://www.apache.org/licenses/LICENSE-2.0 | ||
1299 | 10 | |||
1300 | 11 | Unless required by applicable law or agreed to in writing, software distributed under the License is | ||
1301 | 12 | distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
1302 | 13 | implied. See the License for the specific language governing permissions and limitations under the License. | ||
1303 | 14 | |||
1304 | 15 | This work is copyright by the author(s) and is part of a greater work collectively copyright by Codehaus on | ||
1305 | 16 | behalf of the Groovy community. See the NOTICE.txt file distributed with this work for additional information. | ||
1306 | 17 | |||
1307 | 18 | Author : Russel Winder | ||
1308 | 19 | Author : Paul King | ||
1309 | 20 | $Revision: 20245 $ ($LastChangedBy: paulk $) | ||
1310 | 21 | $Date: 2010-06-07 02:45:33 +0200 (Mo, 07. Jun 2010) $ | ||
1311 | 22 | --> | ||
1312 | 23 | |||
1313 | 24 | <project name="Groovy" default="createJars" basedir="."> | ||
1314 | 25 | |||
1315 | 26 | <property file="local.build.properties"/> | ||
1316 | 27 | <property file="build.properties"/> | ||
1317 | 28 | <property name="ant.requiredVersion" value="1.6.5"/> | ||
1318 | 29 | |||
1319 | 30 | <!-- config/ant/build-maven.xml imports config/ant/build-setup.xml where all the paths are defined. --> | ||
1320 | 31 | <import file="config/ant/build-setup.xml"/> | ||
1321 | 32 | <import file="config/ant/build-checkstyle.xml"/> | ||
1322 | 33 | <import file="config/ant/build-cobertura.xml"/> | ||
1323 | 34 | |||
1324 | 35 | <path id="compilePath"> | ||
1325 | 36 | <path path="${java.class.path}" /> | ||
1326 | 37 | </path> | ||
1327 | 38 | <path id="toolsPath"> | ||
1328 | 39 | <path path="${java.class.path}" /> | ||
1329 | 40 | </path> | ||
1330 | 41 | |||
1331 | 42 | <condition property="_skipTests_"> | ||
1332 | 43 | <or> | ||
1333 | 44 | <equals arg1="${test}" arg2="false"/> | ||
1334 | 45 | <istrue value="${skipTests}"/> | ||
1335 | 46 | </or> | ||
1336 | 47 | </condition> | ||
1337 | 48 | |||
1338 | 49 | <condition property="_skipExamples_"> | ||
1339 | 50 | <istrue value="${skipExamples}"/> | ||
1340 | 51 | </condition> | ||
1341 | 52 | |||
1342 | 53 | <condition property="_skipDocs_"> | ||
1343 | 54 | <istrue value="${skipDocs}"/> | ||
1344 | 55 | </condition> | ||
1345 | 56 | |||
1346 | 57 | <condition property="_skipOsgi_"> | ||
1347 | 58 | <istrue value="${skipOsgi}"/> | ||
1348 | 59 | </condition> | ||
1349 | 60 | |||
1350 | 61 | <condition property="_skipFetch_"> | ||
1351 | 62 | <istrue value="${skipFetch}"/> | ||
1352 | 63 | </condition> | ||
1353 | 64 | |||
1354 | 65 | <condition property="_skipEmbeddable_"> | ||
1355 | 66 | <istrue value="${skipEmbeddable}"/> | ||
1356 | 67 | </condition> | ||
1357 | 68 | |||
1358 | 69 | <condition property="_forceServerSettings_"> | ||
1359 | 70 | <istrue value="${forceServerSettings}"/> | ||
1360 | 71 | </condition> | ||
1361 | 72 | |||
1362 | 73 | <condition property="groovy.build.vm4"> | ||
1363 | 74 | <contains string="${ant.java.version}" substring="1.4"/> | ||
1364 | 75 | </condition> | ||
1365 | 76 | |||
1366 | 77 | <condition property="groovy.build.vm6"> | ||
1367 | 78 | <contains string="${ant.java.version}" substring="1.6"/> | ||
1368 | 79 | </condition> | ||
1369 | 80 | |||
1370 | 81 | <presetdef name="javac"> | ||
1371 | 82 | <javac memoryMaximumSize="500m"/> | ||
1372 | 83 | </presetdef> | ||
1373 | 84 | |||
1374 | 85 | <target name="-initCoverage"> | ||
1375 | 86 | <condition property="_forceCoverage_"> | ||
1376 | 87 | <and> | ||
1377 | 88 | <not> | ||
1378 | 89 | <istrue value="${skipTests}"/> | ||
1379 | 90 | </not> | ||
1380 | 91 | <istrue value="${forceCoverage}"/> | ||
1381 | 92 | </and> | ||
1382 | 93 | </condition> | ||
1383 | 94 | </target> | ||
1384 | 95 | |||
1385 | 96 | <target name="ensureGrammars" description="Ensure all the Antlr generated files are up to date."> | ||
1386 | 97 | <mkdir dir="${groovyParserDirectory}"/> | ||
1387 | 98 | <antlr target="${antlrDirectory}/groovy.g" outputdirectory="${groovyParserDirectory}"> | ||
1388 | 99 | <classpath refid="compilePath"/> | ||
1389 | 100 | </antlr> | ||
1390 | 101 | <antlr target="${javaParserDirectory}/java.g" outputdirectory="${javaParserDirectory}"> | ||
1391 | 102 | <classpath refid="compilePath"/> | ||
1392 | 103 | </antlr> | ||
1393 | 104 | </target> | ||
1394 | 105 | |||
1395 | 106 | <target name="-init"> | ||
1396 | 107 | <xslt in="pom.xml" out="${targetDirectory}/groovy-all.pom" style="config/maven/groovy-all.xsl"/> | ||
1397 | 108 | </target> | ||
1398 | 109 | |||
1399 | 110 | <target name="-banner"> | ||
1400 | 111 | <echo message="Java Runtime Environment version: ${java.version}"/> | ||
1401 | 112 | <echo message="Java Runtime Environment vendor: ${java.vendor}"/> | ||
1402 | 113 | <echo message="Ant version: ${ant.version}"/> | ||
1403 | 114 | <echo message="Operating system name: ${os.name}"/> | ||
1404 | 115 | <echo message="Operating system architecture: ${os.arch}"/> | ||
1405 | 116 | <echo message="Operating system version: ${os.version}"/> | ||
1406 | 117 | <echo message="Base directory: ${basedir}"/> | ||
1407 | 118 | <echo message="Java Home: ${java.home}"/> | ||
1408 | 119 | </target> | ||
1409 | 120 | |||
1410 | 121 | <target name="-jvm14BuildWarning" if="groovy.build.vm4"> | ||
1411 | 122 | <fail>Aborting! | ||
1412 | 123 | |||
1413 | 124 | ================================================ | ||
1414 | 125 | ERROR: You must build Groovy with a 1.5+ JDK | ||
1415 | 126 | ================================================ | ||
1416 | 127 | </fail> | ||
1417 | 128 | </target> | ||
1418 | 129 | |||
1419 | 130 | <target name="-checkAntVersion" depends="-excludeLegacyAntVersion" | ||
1420 | 131 | description="Check that we are running on the required version of Ant."/> | ||
1421 | 132 | |||
1422 | 133 | <target name="-excludeLegacyAntVersion"> | ||
1423 | 134 | <!-- antversion didn't exist in early versions of ant so we have | ||
1424 | 135 | a legacy check to provide a nicer error message in this case --> | ||
1425 | 136 | <fail message="You are using ant ${ant.version}, please build using ant ${ant.requiredVersion}+"> | ||
1426 | 137 | <condition> | ||
1427 | 138 | <or> | ||
1428 | 139 | <contains string="${ant.version}" substring="1.1"></contains> | ||
1429 | 140 | <contains string="${ant.version}" substring="1.2"></contains> | ||
1430 | 141 | <contains string="${ant.version}" substring="1.3"></contains> | ||
1431 | 142 | <contains string="${ant.version}" substring="1.4"></contains> | ||
1432 | 143 | <contains string="${ant.version}" substring="1.5"></contains> | ||
1433 | 144 | <and> | ||
1434 | 145 | <contains string="${ant.version}" substring="1.6"></contains> | ||
1435 | 146 | <not> | ||
1436 | 147 | <contains string="${ant.version}" substring="${ant.requiredVersion}"></contains> | ||
1437 | 148 | </not> | ||
1438 | 149 | </and> | ||
1439 | 150 | </or> | ||
1440 | 151 | </condition> | ||
1441 | 152 | </fail> | ||
1442 | 153 | </target> | ||
1443 | 154 | |||
1444 | 155 | <!-- add back in if we make 1.7+ minimal required version for build again | ||
1445 | 156 | <target name="-ensureRequiredAntVersion"> | ||
1446 | 157 | <fail message="You are using ant ${ant.version}, please install using ant ${ant.requiredVersion}+"/> | ||
1447 | 158 | <condition><not><antversion atleast="${ant.requiredVersion}"/></not></condition> | ||
1448 | 159 | </fail> | ||
1449 | 160 | </target> | ||
1450 | 161 | --> | ||
1451 | 162 | |||
1452 | 163 | <target name="compileMain" depends="stagedcompile" | ||
1453 | 164 | description="Compile the Java and Groovy code in the main source."> | ||
1454 | 165 | </target> | ||
1455 | 166 | |||
1456 | 167 | <target name="stagedcompile" depends="-init,ensureGrammars,-jvm14BuildWarning" unless="uber"> | ||
1457 | 168 | <mkdir dir="${mainClassesDirectory}"/> | ||
1458 | 169 | <mkdir dir="${toolsClassesDirectory}"/> | ||
1459 | 170 | <mkdir dir="${mainClassesDirectory}/META-INF"/> | ||
1460 | 171 | |||
1461 | 172 | <javac srcdir="${mainSourceDirectory}" includeantruntime="false" destdir="${mainClassesDirectory}" | ||
1462 | 173 | deprecation="on" debug="yes" source="1.5" target="1.5" fork="true" classpathref="compilePath"> | ||
1463 | 174 | <exclude name="groovy/ui/**/*.java"/> | ||
1464 | 175 | </javac> | ||
1465 | 176 | <java classname="org.codehaus.groovy.tools.DgmConverter" | ||
1466 | 177 | fork="yes" | ||
1467 | 178 | failonerror="true"> | ||
1468 | 179 | <classpath refid="compilePath"/> | ||
1469 | 180 | <classpath path="${mainClassesDirectory}"/> | ||
1470 | 181 | </java> | ||
1471 | 182 | <antcall inheritrefs="true" target="-stagedcompile-groovy"/> | ||
1472 | 183 | <antcall target="-includeResources"/> | ||
1473 | 184 | </target> | ||
1474 | 185 | |||
1475 | 186 | <target name="-stagedcompile-groovy" depends="-initGroovyc"> | ||
1476 | 187 | <groovyc srcdir="${mainSourceDirectory}" destdir="${mainClassesDirectory}" fork="true" | ||
1477 | 188 | memorymaximumsize="${groovycMain_mx}"> | ||
1478 | 189 | <classpath> | ||
1479 | 190 | <pathelement path="${mainClassesDirectory}"/> | ||
1480 | 191 | <path refid="compilePath"/> | ||
1481 | 192 | </classpath> | ||
1482 | 193 | <javac deprecation="on" debug="yes" source="1.5" target="1.5"/> | ||
1483 | 194 | </groovyc> | ||
1484 | 195 | </target> | ||
1485 | 196 | |||
1486 | 197 | <property name="vm5GroovySourceFiles" value="**/*.groovy"/> | ||
1487 | 198 | <property name="vm5JavaSourceFiles" value="**/*.java"/> | ||
1488 | 199 | <property name="vm6GroovySourceFiles" value="groovy/**/vm6/*Test.groovy,org/codehaus/groovy/**/vm6/*Test.groovy"/> | ||
1489 | 200 | |||
1490 | 201 | <target name="-initGroovyc"> | ||
1491 | 202 | <path id="groovyMainClasses"> | ||
1492 | 203 | <pathelement path="${mainClassesDirectory}"/> | ||
1493 | 204 | <path refid="compilePath"/> | ||
1494 | 205 | </path> | ||
1495 | 206 | <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpathref="groovyMainClasses"/> | ||
1496 | 207 | </target> | ||
1497 | 208 | |||
1498 | 209 | <target name="compileTest" depends="compileMain,compileTestOnly" | ||
1499 | 210 | description="Compile the Java and Groovy code in the test source."/> | ||
1500 | 211 | |||
1501 | 212 | <target name="-cleanTest"> | ||
1502 | 213 | <delete dir="${testClassesDirectory}"/> | ||
1503 | 214 | </target> | ||
1504 | 215 | |||
1505 | 216 | <target name="compileTestOnly" unless="_skipTests_"> | ||
1506 | 217 | <mkdir dir="${testClassesDirectory}"/> | ||
1507 | 218 | <antcall inheritrefs="true" target="-compileTest"/> | ||
1508 | 219 | </target> | ||
1509 | 220 | |||
1510 | 221 | <target name="-compileTest" depends="-initGroovyc,-compileTest_vm6"> | ||
1511 | 222 | <groovyc srcdir="${testSourceDirectory}" | ||
1512 | 223 | destdir="${testClassesDirectory}" | ||
1513 | 224 | includes="${vm5GroovySourceFiles},${vm5JavaSourceFiles}" | ||
1514 | 225 | excludes="${vm6GroovySourceFiles}" | ||
1515 | 226 | fork="true" | ||
1516 | 227 | memorymaximumsize="${groovycTest_mx}"> | ||
1517 | 228 | <classpath> | ||
1518 | 229 | <pathelement path="${testClassesDirectory}"/> | ||
1519 | 230 | <path refid="groovyMainClasses"/> | ||
1520 | 231 | <path refid="testLibPath"/> | ||
1521 | 232 | </classpath> | ||
1522 | 233 | <javac source="1.5" target="1.5" nowarn="on"/> | ||
1523 | 234 | </groovyc> | ||
1524 | 235 | </target> | ||
1525 | 236 | |||
1526 | 237 | <target name="-compileTest_vm6" if="groovy.build.vm6"> | ||
1527 | 238 | <groovyc srcdir="${testSourceDirectory}" | ||
1528 | 239 | destdir="${testClassesDirectory}" | ||
1529 | 240 | includes="${vm6GroovySourceFiles}" | ||
1530 | 241 | fork="true" | ||
1531 | 242 | memorymaximumsize="${groovycTest_mx}"> | ||
1532 | 243 | <classpath> | ||
1533 | 244 | <pathelement path="${testClassesDirectory}"/> | ||
1534 | 245 | <path refid="groovyMainClasses"/> | ||
1535 | 246 | <path refid="testLibPath"/> | ||
1536 | 247 | </classpath> | ||
1537 | 248 | <!-- currently not needed, add in if/when required --> | ||
1538 | 249 | <!--<javac source="1.5" target="1.5" nowarn="on"/>--> | ||
1539 | 250 | </groovyc> | ||
1540 | 251 | </target> | ||
1541 | 252 | |||
1542 | 253 | <target name="compileExamples" depends="-init,-initGroovyc,compileMain,-includeExamplesResources" | ||
1543 | 254 | unless="_skipExamples_" | ||
1544 | 255 | description="Compile the Java and Groovy code in the examples source directory."> | ||
1545 | 256 | <mkdir dir="${examplesClassesDirectory}"/> | ||
1546 | 257 | <echo message="Compiling example code."/> | ||
1547 | 258 | |||
1548 | 259 | <groovyc srcdir="${examplesSourceDirectory}/webapps/groovlet-examples/WEB-INF/groovy" | ||
1549 | 260 | destdir="${examplesClassesDirectory}" | ||
1550 | 261 | fork="true" | ||
1551 | 262 | memorymaximumsize="${groovycExamples_mx}"> | ||
1552 | 263 | <classpath> | ||
1553 | 264 | <pathelement path="${mainClassesDirectory}"/> | ||
1554 | 265 | <path refid="compilePath"/> | ||
1555 | 266 | <path refid="examplesPath"/> | ||
1556 | 267 | </classpath> | ||
1557 | 268 | </groovyc> | ||
1558 | 269 | <javac srcdir="${examplesSourceDirectory}" | ||
1559 | 270 | destdir="${examplesClassesDirectory}" | ||
1560 | 271 | source="1.5" | ||
1561 | 272 | target="1.5" | ||
1562 | 273 | fork="true"> | ||
1563 | 274 | <classpath> | ||
1564 | 275 | <pathelement path="${mainClassesDirectory}"/> | ||
1565 | 276 | <pathelement path="${examplesClassesDirectory}"/> | ||
1566 | 277 | <path refid="compilePath"/> | ||
1567 | 278 | <path refid="examplesPath"/> | ||
1568 | 279 | </classpath> | ||
1569 | 280 | </javac> | ||
1570 | 281 | <groovyc srcdir="${examplesSourceDirectory}" | ||
1571 | 282 | destdir="${examplesClassesDirectory}" | ||
1572 | 283 | fork="true" | ||
1573 | 284 | memorymaximumsize="${groovycExamples_mx}" | ||
1574 | 285 | excludes="webapps/groovlet-examples/WEB-INF/groovy/**/*.groovy,org/codehaus/groovy/grails/compiler/injection/**/*.java"> | ||
1575 | 286 | <classpath> | ||
1576 | 287 | <pathelement path="${mainClassesDirectory}"/> | ||
1577 | 288 | <pathelement path="${examplesClassesDirectory}"/> | ||
1578 | 289 | <path refid="compilePath"/> | ||
1579 | 290 | <path refid="examplesPath"/> | ||
1580 | 291 | </classpath> | ||
1581 | 292 | <javac source="1.5" target="1.5"/> | ||
1582 | 293 | </groovyc> | ||
1583 | 294 | |||
1584 | 295 | </target> | ||
1585 | 296 | |||
1586 | 297 | <target name="-initializeReports"> | ||
1587 | 298 | <mkdir dir="${reportsDirectory}"/> | ||
1588 | 299 | </target> | ||
1589 | 300 | |||
1590 | 301 | <condition property="_shouldBeHeadless_"> | ||
1591 | 302 | <or> | ||
1592 | 303 | <istrue value="${java.awt.headless}"/> | ||
1593 | 304 | <!--<os name="Mac OS X"/>--> | ||
1594 | 305 | </or> | ||
1595 | 306 | </condition> | ||
1596 | 307 | |||
1597 | 308 | <target name="-testInit" depends="-initHeadless"> | ||
1598 | 309 | <property name="headlessArg" value=""/> | ||
1599 | 310 | <property name="junitJvmArgs" | ||
1600 | 311 | value="-Xms${groovyJUnit_ms} -XX:PermSize=${groovyJUnit_permSize} -XX:MaxPermSize=${groovyJUnit_maxPermSize} ${headlessArg} -Dgroovy.testdb.props=${groovy.testdb.props} -DjavadocAssertion.src.dir=./src/main"/> | ||
1601 | 312 | </target> | ||
1602 | 313 | |||
1603 | 314 | <target name="-initHeadless" if="_shouldBeHeadless_"> | ||
1604 | 315 | <property name="headlessArg" value="-Djava.awt.headless=true"/> | ||
1605 | 316 | <echo message="Setting headless mode ..."/> | ||
1606 | 317 | </target> | ||
1607 | 318 | |||
1608 | 319 | <target name="test" | ||
1609 | 320 | depends="-banner,-checkAntVersion,-initializeReports,compileTest,-coverageInstrument,-testInit,-testOne,-testAll,-reportTestFailed" | ||
1610 | 321 | description="Compile and test all the classes (or just one class if testCase property is defined)."/> | ||
1611 | 322 | |||
1612 | 323 | <target name="clean-test" depends="clean,test" | ||
1613 | 324 | description="Clean and compile and test all the classes (or just one class if testCase property is defined)."/> | ||
1614 | 325 | |||
1615 | 326 | <condition property="_testOne_"> | ||
1616 | 327 | <and> | ||
1617 | 328 | <not> | ||
1618 | 329 | <istrue value="${_skipTests_}"/> | ||
1619 | 330 | </not> | ||
1620 | 331 | <isset property="testCase"/> | ||
1621 | 332 | </and> | ||
1622 | 333 | </condition> | ||
1623 | 334 | |||
1624 | 335 | <target name="-testOne" if="_testOne_" depends="-initGroovyc"> | ||
1625 | 336 | <mkdir dir="${junitRawDirectory}"/> | ||
1626 | 337 | <junit printsummary="true" fork="true" includeantruntime="false" failureproperty="testFailed" | ||
1627 | 338 | maxmemory="${groovyJUnit_mx}" dir="${basedir}"> | ||
1628 | 339 | <sysproperty key="apple.awt.UIElement" value="true"/> | ||
1629 | 340 | <!-- keeps the dock from showing the AWT startup --> | ||
1630 | 341 | <jvmarg line="${junitJvmArgs}"/> | ||
1631 | 342 | <test name="${testCase}" todir="${junitRawDirectory}"/> | ||
1632 | 343 | <formatter type="brief" usefile="false"/> | ||
1633 | 344 | <classpath> | ||
1634 | 345 | <pathelement path="${instrumentedClassesDirectory}"/> | ||
1635 | 346 | <pathelement path="src/test"/> | ||
1636 | 347 | <path refid="groovyMainClasses"/> | ||
1637 | 348 | <path refid="testLibPath"/> | ||
1638 | 349 | <pathelement path="${testClassesDirectory}"/> | ||
1639 | 350 | <path refid="coberturaPath"/> | ||
1640 | 351 | </classpath> | ||
1641 | 352 | <assertions> | ||
1642 | 353 | <enable/> | ||
1643 | 354 | </assertions> | ||
1644 | 355 | </junit> | ||
1645 | 356 | </target> | ||
1646 | 357 | |||
1647 | 358 | <condition property="_testAll_"> | ||
1648 | 359 | <and> | ||
1649 | 360 | <not> | ||
1650 | 361 | <istrue value="${_skipTests_}"/> | ||
1651 | 362 | </not> | ||
1652 | 363 | <not> | ||
1653 | 364 | <isset property="_testOne_"/> | ||
1654 | 365 | </not> | ||
1655 | 366 | </and> | ||
1656 | 367 | </condition> | ||
1657 | 368 | |||
1658 | 369 | <target name="-collectOptionalTests"> | ||
1659 | 370 | <condition property="networkTests.fileset.includes" value="groovy/grape/*Test.class" else="-nothing-"> | ||
1660 | 371 | <istrue value="${junit.network}"/> | ||
1661 | 372 | </condition> | ||
1662 | 373 | <fileset id="optionalTests.fileset" dir="${testClassesDirectory}" includes="${networkTests.fileset.includes}"/> | ||
1663 | 374 | </target> | ||
1664 | 375 | |||
1665 | 376 | <target name="-collect15tests" unless="groovy.build.vm6"> | ||
1666 | 377 | <fileset id="ubertests.fileset" dir="${testClassesDirectory}" includes="UberTest*.class" excludes="Uber*VM6.class"/> | ||
1667 | 378 | </target> | ||
1668 | 379 | |||
1669 | 380 | <target name="-collect16tests" if="groovy.build.vm6"> | ||
1670 | 381 | <fileset id="ubertests.fileset" dir="${testClassesDirectory}" includes="UberTest*.class"/> | ||
1671 | 382 | </target> | ||
1672 | 383 | |||
1673 | 384 | <target name="-testAll" if="_testAll_" depends="-collect15tests,-collect16tests,-collectOptionalTests,-initGroovyc"> | ||
1674 | 385 | <mkdir dir="${junitRawDirectory}"/> | ||
1675 | 386 | <junit printsummary="true" fork="true" includeantruntime="false" failureproperty="testFailed" | ||
1676 | 387 | maxmemory="${groovyJUnit_mx}" dir="${basedir}"> | ||
1677 | 388 | <jvmarg line="${junitJvmArgs}"/> | ||
1678 | 389 | <sysproperty key="apple.awt.UIElement" value="true"/> | ||
1679 | 390 | <!-- keeps the dock from showing the AWT startup --> | ||
1680 | 391 | <formatter type="xml"/> | ||
1681 | 392 | <formatter type="plain" unless="noTextReports"/> | ||
1682 | 393 | <batchtest todir="${junitRawDirectory}"> | ||
1683 | 394 | <fileset refid="ubertests.fileset"/> | ||
1684 | 395 | <fileset refid="optionalTests.fileset"/> | ||
1685 | 396 | </batchtest> | ||
1686 | 397 | <classpath> | ||
1687 | 398 | <pathelement path="${instrumentedClassesDirectory}"/> | ||
1688 | 399 | <pathelement path="src/test"/> | ||
1689 | 400 | <path refid="groovyMainClasses"/> | ||
1690 | 401 | <path refid="testLibPath"/> | ||
1691 | 402 | <pathelement path="${testClassesDirectory}"/> | ||
1692 | 403 | <path refid="coberturaPath"/> | ||
1693 | 404 | </classpath> | ||
1694 | 405 | <assertions> | ||
1695 | 406 | <enable/> | ||
1696 | 407 | </assertions> | ||
1697 | 408 | </junit> | ||
1698 | 409 | <mkdir dir="${junitReportsDirectory}"/> | ||
1699 | 410 | <junitreport tofile="${junitRawDirectory}/Results.xml"> | ||
1700 | 411 | <fileset dir="${junitRawDirectory}" includes="TEST-*.xml"/> | ||
1701 | 412 | <report format="frames" todir="${junitReportsDirectory}"/> | ||
1702 | 413 | </junitreport> | ||
1703 | 414 | </target> | ||
1704 | 415 | |||
1705 | 416 | <target name="-reportTestFailed" depends="-coverageReport" if="testFailed"> | ||
1706 | 417 | <fail message="Test failed, not processing further targets."/> | ||
1707 | 418 | </target> | ||
1708 | 419 | |||
1709 | 420 | <target name="-coverageInstrument" if="_forceCoverage_"> | ||
1710 | 421 | <mkdir dir="${instrumentedClassesDirectory}"/> | ||
1711 | 422 | <!--coberturaInstrument classesDirectory="${mainClassesDirectory}"/--> | ||
1712 | 423 | </target> | ||
1713 | 424 | |||
1714 | 425 | <target name="-coverageReport" depends="-initCoverage" if="_forceCoverage_"> | ||
1715 | 426 | <!--coberturaReport reportDirectory="${reportsDirectory}/cobertura" sourceDirectory="${mainSourceDirectory}"/--> | ||
1716 | 427 | </target> | ||
1717 | 428 | |||
1718 | 429 | <target name="-actuallyCreateJars" | ||
1719 | 430 | depends="-makeManifest,-initializeJars,-createBaseJar,-createEmbeddableJar" | ||
1720 | 431 | unless="testFailed"/> | ||
1721 | 432 | |||
1722 | 433 | <target name="-makeManifest"> | ||
1723 | 434 | <mkdir dir="${mainClassesDirectory}/META-INF"/> | ||
1724 | 435 | <copy todir="${mainClassesDirectory}/META-INF" file="LICENSE.txt"/> | ||
1725 | 436 | <makeManifest file="${mainClassesDirectory}/META-INF/MANIFEST.MF"/> | ||
1726 | 437 | </target> | ||
1727 | 438 | |||
1728 | 439 | <macrodef name="makeManifest"> | ||
1729 | 440 | <attribute name="file"/> | ||
1730 | 441 | <attribute name="bundleEnvironment" default="J2SE-1.5"/> | ||
1731 | 442 | <sequential> | ||
1732 | 443 | <manifest file="@{file}"> | ||
1733 | 444 | <attribute name="Built-By" value="${user.name}"/> | ||
1734 | 445 | <attribute name="Extension-Name" value="groovy"/> | ||
1735 | 446 | <attribute name="Specification-Title" value="Groovy: a powerful, dynamic language for the JVM"/> | ||
1736 | 447 | <attribute name="Specification-Version" value="${groovyVersion}"/> | ||
1737 | 448 | <attribute name="Specification-Vendor" value="The Codehaus"/> | ||
1738 | 449 | <attribute name="Implementation-Title" value="Groovy: a powerful, dynamic language for the JVM"/> | ||
1739 | 450 | <attribute name="Implementation-Version" value="${groovyVersion}"/> | ||
1740 | 451 | <attribute name="Implementation-Vendor" value="The Codehaus"/> | ||
1741 | 452 | <attribute name="Bundle-ManifestVersion" value="2"/> | ||
1742 | 453 | <attribute name="Bundle-Name" value="Groovy Runtime"/> | ||
1743 | 454 | <attribute name="Bundle-Description" value="Groovy Runtime"/> | ||
1744 | 455 | <attribute name="Bundle-Version" value="${groovyBundleVersion}"/> | ||
1745 | 456 | <attribute name="Bundle-Vendor" value="The Codehaus"/> | ||
1746 | 457 | <attribute name="Bundle-ClassPath" value="."/> | ||
1747 | 458 | <attribute name="Bundle-RequiredExecutionEnvironment" value="@{bundleEnvironment}"/> | ||
1748 | 459 | <attribute name="Eclipse-BuddyPolicy" value="dependent"/> | ||
1749 | 460 | <attribute name="Eclipse-LazyStart" value="true"/> | ||
1750 | 461 | <attribute name="DynamicImport-Package" value="*"/> | ||
1751 | 462 | </manifest> | ||
1752 | 463 | </sequential> | ||
1753 | 464 | </macrodef> | ||
1754 | 465 | |||
1755 | 466 | <target name="-includeResources" depends="-includeGroovyDocTemplates"> | ||
1756 | 467 | <copy todir="${mainClassesDirectory}"> | ||
1757 | 468 | <fileset dir="${mainSourceDirectory}"> | ||
1758 | 469 | <include name="META-INF/services/*"/> | ||
1759 | 470 | <include name="groovy/grape/*.xml"/> | ||
1760 | 471 | <include name="groovy/ui/*.properties"/> | ||
1761 | 472 | <include name="groovy/ui/**/*.png"/> | ||
1762 | 473 | <include name="groovy/inspect/swingui/AstBrowserProperties.groovy"/> | ||
1763 | 474 | <include name="org/codehaus/groovy/tools/shell/**/*.properties"/> | ||
1764 | 475 | <include name="org/codehaus/groovy/tools/groovydoc/**/*.properties"/> | ||
1765 | 476 | <include name="org/codehaus/groovy/tools/shell/**/*.xml"/> | ||
1766 | 477 | <include name="org/codehaus/groovy/antlib.xml"/> | ||
1767 | 478 | </fileset> | ||
1768 | 479 | </copy> | ||
1769 | 480 | <antcall target="-includeReleaseInfo"/> | ||
1770 | 481 | </target> | ||
1771 | 482 | |||
1772 | 483 | <target name="-includeReleaseInfo"> | ||
1773 | 484 | <copy file="${mainSourceDirectory}/META-INF/groovy-release-info.properties" | ||
1774 | 485 | todir="${mainClassesDirectory}/META-INF" overwrite="true"> | ||
1775 | 486 | </copy> | ||
1776 | 487 | <tstamp> | ||
1777 | 488 | <format property="release.date" pattern="dd-MMM-yyyy"/> | ||
1778 | 489 | <format property="release.time" pattern="hh:mm aa"/> | ||
1779 | 490 | </tstamp> | ||
1780 | 491 | <replace file="${mainClassesDirectory}/META-INF/groovy-release-info.properties"> | ||
1781 | 492 | <replacefilter token="##ImplementationVersion##" value="${groovyVersion}"/> | ||
1782 | 493 | <replacefilter token="##BundleVersion##" value="${groovyBundleVersion}"/> | ||
1783 | 494 | <replacefilter token="##BuildDate##" value="${release.date}"/> | ||
1784 | 495 | <replacefilter token="##BuildTime##" value="${release.time}"/> | ||
1785 | 496 | </replace> | ||
1786 | 497 | </target> | ||
1787 | 498 | |||
1788 | 499 | <target name="-includeExamplesResources" depends="-includeGroovyDocTemplates"> | ||
1789 | 500 | <copy todir="${examplesClassesDirectory}"> | ||
1790 | 501 | <fileset dir="${examplesSourceDirectory}"> | ||
1791 | 502 | <include name="/swing/binding/caricature/resources/*.gif"/> | ||
1792 | 503 | </fileset> | ||
1793 | 504 | </copy> | ||
1794 | 505 | </target> | ||
1795 | 506 | |||
1796 | 507 | <target name="-includeGroovyDocTemplates"> | ||
1797 | 508 | <copy todir="${mainClassesDirectory}"> | ||
1798 | 509 | <fileset dir="${mainSourceDirectory}"> | ||
1799 | 510 | <include name="org/codehaus/groovy/tools/groovydoc/gstringTemplates/*/*.*"/> | ||
1800 | 511 | </fileset> | ||
1801 | 512 | <fileset dir="${toolsSourceDirectory}"> | ||
1802 | 513 | <include name="org/codehaus/groovy/tools/groovy.ico"/> | ||
1803 | 514 | </fileset> | ||
1804 | 515 | </copy> | ||
1805 | 516 | </target> | ||
1806 | 517 | |||
1807 | 518 | <target name="-initializeJars" depends="test" unless="_skipDocs_"> | ||
1808 | 519 | <delete dir="${targetDistDirectory}" quiet="true"/> | ||
1809 | 520 | <mkdir dir="${targetDistDirectory}"/> | ||
1810 | 521 | </target> | ||
1811 | 522 | |||
1812 | 523 | <target name="-createBaseJar" unless="testFailed"> | ||
1813 | 524 | <jar destfile="${targetDistDirectory}/groovy.jar" basedir="${mainClassesDirectory}" | ||
1814 | 525 | excludes="*.groovy" manifest="${mainClassesDirectory}/META-INF/MANIFEST.MF"/> | ||
1815 | 526 | <jar destfile="${targetDistDirectory}/groovy-${groovyVersion}-sources.jar" basedir="${mainSourceDirectory}"/> | ||
1816 | 527 | </target> | ||
1817 | 528 | |||
1818 | 529 | <target name="-jarjarInit" unless="_skipEmbeddable_"> | ||
1819 | 530 | <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpathref="toolsPath"/> | ||
1820 | 531 | </target> | ||
1821 | 532 | |||
1822 | 533 | <target name="-createEmbeddableJar" depends="-jarjarInit,-actuallyCreateEmbeddableJar" unless="testFailed"/> | ||
1823 | 534 | |||
1824 | 535 | <target name="-actuallyCreateEmbeddableJar" unless="_skipEmbeddable_"> | ||
1825 | 536 | <delete dir="${stagingDirectory}" quiet="true"/> | ||
1826 | 537 | <mkdir dir="${stagingDirectory}"/> | ||
1827 | 538 | <unzip dest="${stagingDirectory}"> | ||
1828 | 539 | <fileset dir="/usr/share/java"> | ||
1829 | 540 | <include name="antlr.jar"/> | ||
1830 | 541 | <include name="asm3.jar"/> | ||
1831 | 542 | <include name="asm3-commons.jar"/> | ||
1832 | 543 | <include name="asm3-tree.jar"/> | ||
1833 | 544 | <include name="asm3-xml.jar"/> | ||
1834 | 545 | </fileset> | ||
1835 | 546 | </unzip> | ||
1836 | 547 | <unzip dest="${stagingDirectory}"> | ||
1837 | 548 | <fileset dir="${targetDistDirectory}"> | ||
1838 | 549 | <include name="groovy.jar"/> | ||
1839 | 550 | </fileset> | ||
1840 | 551 | </unzip> | ||
1841 | 552 | <copy toDir="${stagingDirectory}/META-INF"> | ||
1842 | 553 | <fileset dir="${basedir}/config/build"> | ||
1843 | 554 | <include name="*LICENSE.txt"/> | ||
1844 | 555 | </fileset> | ||
1845 | 556 | </copy> | ||
1846 | 557 | <!-- add commons-cli --> | ||
1847 | 558 | <unzip dest="${stagingDirectory}"> | ||
1848 | 559 | <patternset> | ||
1849 | 560 | <!-- no need for the manifest file, we have our own --> | ||
1850 | 561 | <exclude name="META-INF/MANIFEST.MF"/> | ||
1851 | 562 | </patternset> | ||
1852 | 563 | <globmapper from="META-INF/LICENSE.txt" to="META-INF/CLI-LICENSE.txt"/> | ||
1853 | 564 | <fileset dir="/usr/share/java"> | ||
1854 | 565 | <include name="commons-cli.jar"/> | ||
1855 | 566 | </fileset> | ||
1856 | 567 | </unzip> | ||
1857 | 568 | <makeManifest file="${stagingDirectory}/META-INF/MANIFEST.MF"/> | ||
1858 | 569 | <!-- TODO try to make use of jarjar keep ability --> | ||
1859 | 570 | <jarjar jarfile="${targetDistDirectory}/groovy-all.jar" | ||
1860 | 571 | manifest="${stagingDirectory}/META-INF/MANIFEST.MF"> | ||
1861 | 572 | <fileset dir="${stagingDirectory}" | ||
1862 | 573 | excludes="groovy/util/CliBuilder*.class,groovy/util/OptionAccessor*.class,org/codehaus/groovy/tools/shell/util/HelpFormatter*.class"/> | ||
1863 | 574 | <rule pattern="antlr.**" result="groovyjarjarantlr.@1"/> | ||
1864 | 575 | <rule pattern="org.objectweb.**" result="groovyjarjarasm.@1"/> | ||
1865 | 576 | <rule pattern="org.apache.commons.cli.**" result="groovyjarjarcommonscli.@1"/> | ||
1866 | 577 | </jarjar> | ||
1867 | 578 | <jar destfile="${targetDistDirectory}/groovy-all.jar" update="true" | ||
1868 | 579 | basedir="${stagingDirectory}" | ||
1869 | 580 | includes="groovy/util/CliBuilder*.class,groovy/util/OptionAccessor*.class,org/codehaus/groovy/tools/shell/util/HelpFormatter*.class"/> | ||
1870 | 581 | |||
1871 | 582 | <copy file="${targetDistDirectory}/groovy-${groovyVersion}-sources.jar" | ||
1872 | 583 | tofile="${targetDistDirectory}/groovy-all-${groovyVersion}-sources.jar"/> | ||
1873 | 584 | <delete dir="${stagingDirectory}" quiet="true"/> | ||
1874 | 585 | </target> | ||
1875 | 586 | |||
1876 | 587 | <target name="createJars" depends="-checkAntVersion,test,-actuallyCreateJars" | ||
1877 | 588 | description="Build Groovy and create the jarfiles."/> | ||
1878 | 589 | |||
1879 | 590 | <target name="updateJarsForOsgi" unless="_skipOsgi_"> | ||
1880 | 591 | <taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="/usr/share/java/bnd.jar"/> | ||
1881 | 592 | <copy todir="${targetDistDirectory}"> | ||
1882 | 593 | <fileset dir="config/bnd" includes="groovy*.bnd"/> | ||
1883 | 594 | <filterset> | ||
1884 | 595 | <filter token="GROOVY_BUNDLE_VERSION" value="${groovyBundleVersion}"/> | ||
1885 | 596 | </filterset> | ||
1886 | 597 | </copy> | ||
1887 | 598 | <property name="jarsToWrap" value="groovy.jar,groovy-all.jar"/> | ||
1888 | 599 | <property name="runtimeJars" refid="runtimePath"/> | ||
1889 | 600 | <bndwrap definitions="${targetDistDirectory}" output="${targetDistDirectory}" failok="true" | ||
1890 | 601 | classpath="${runtimeJars}"> | ||
1891 | 602 | <fileset dir="${targetDistDirectory}" includes="${jarsToWrap}"/> | ||
1892 | 603 | </bndwrap> | ||
1893 | 604 | <delete dir="${targetDistDirectory}" includes="${jarsToWrap}"/> | ||
1894 | 605 | <move todir="${targetDistDirectory}"> | ||
1895 | 606 | <fileset dir="${targetDistDirectory}" includes="groovy*.bar"/> | ||
1896 | 607 | <globmapper from="groovy*.bar" to="groovy*-${groovyVersion}.jar"/> | ||
1897 | 608 | </move> | ||
1898 | 609 | <delete dir="${targetDistDirectory}" includes="groovy*.bnd"/> | ||
1899 | 610 | </target> | ||
1900 | 611 | |||
1901 | 612 | <target name="skipOsgi" if="_skipOsgi_"> | ||
1902 | 613 | <move todir="${targetDistDirectory}"> | ||
1903 | 614 | <fileset dir="${targetDistDirectory}" includes="groovy*.jar"/> | ||
1904 | 615 | <globmapper from="groovy*.jar" to="groovy*-${groovyVersion}.jar"/> | ||
1905 | 616 | </move> | ||
1906 | 617 | </target> | ||
1907 | 618 | |||
1908 | 619 | <target name="install" depends="createJars,updateJarsForOsgi,skipOsgi" unless="testFailed" | ||
1909 | 620 | description="Create an installation hierarchy in target/install."> | ||
1910 | 621 | |||
1911 | 622 | <!-- | ||
1912 | 623 | FIXME: It's not really a good idea to delete stuff, as it tends to negate Ant's (or other tools) | ||
1913 | 624 | ability to run faster incremental builds. | ||
1914 | 625 | --> | ||
1915 | 626 | <delete dir="${installDirectory}" quiet="true"/> | ||
1916 | 627 | <mkdir dir="${installDirectory}"/> | ||
1917 | 628 | |||
1918 | 629 | <!-- Install license files --> | ||
1919 | 630 | <copy todir="${installDirectory}"> | ||
1920 | 631 | <fileset dir="${basedir}"> | ||
1921 | 632 | <include name="LICENSE.txt"/> | ||
1922 | 633 | <include name="NOTICE.txt"/> | ||
1923 | 634 | </fileset> | ||
1924 | 635 | </copy> | ||
1925 | 636 | <unzip dest="${installDirectory}"> | ||
1926 | 637 | <patternset> | ||
1927 | 638 | <include name="META-INF/*-LICENSE.txt"/> | ||
1928 | 639 | </patternset> | ||
1929 | 640 | <mapper type="flatten"/> | ||
1930 | 641 | <fileset file="${targetDistDirectory}/groovy-all-${groovyVersion}.jar"/> | ||
1931 | 642 | </unzip> | ||
1932 | 643 | <fixcrlf srcdir="${installDirectory}" eol="crlf" includes="*.txt"/> | ||
1933 | 644 | |||
1934 | 645 | <!-- Install generated artifacts and runtime dependencies --> | ||
1935 | 646 | <mkdir dir="${installDirectory}/lib"/> | ||
1936 | 647 | <copy todir="${installDirectory}/lib"> | ||
1937 | 648 | <fileset dir="${targetDistDirectory}" includes="groovy-${groovyVersion}.jar"/> | ||
1938 | 649 | </copy> | ||
1939 | 650 | |||
1940 | 651 | <!-- Install the embeddable bits --> | ||
1941 | 652 | <mkdir dir="${installDirectory}/embeddable"/> | ||
1942 | 653 | <copy todir="${installDirectory}/embeddable"> | ||
1943 | 654 | <fileset dir="${targetDistDirectory}" includes="groovy-all-${groovyVersion}.jar"/> | ||
1944 | 655 | </copy> | ||
1945 | 656 | |||
1946 | 657 | <!-- Install configuration files --> | ||
1947 | 658 | <mkdir dir="${installDirectory}/conf"/> | ||
1948 | 659 | <copy toDir="${installDirectory}/conf"> | ||
1949 | 660 | <fileset dir="${sourceDirectory}/conf" includes="*"/> | ||
1950 | 661 | </copy> | ||
1951 | 662 | |||
1952 | 663 | <!-- Install scripts --> | ||
1953 | 664 | <mkdir dir="${installDirectory}/bin"/> | ||
1954 | 665 | <copy toDir="${installDirectory}/bin"> | ||
1955 | 666 | <fileset dir="${sourceDirectory}/bin" includes="*"/> | ||
1956 | 667 | <filterset> | ||
1957 | 668 | <filter token="GROOVYJAR" value="groovy-${groovyVersion}.jar"/> | ||
1958 | 669 | </filterset> | ||
1959 | 670 | </copy> | ||
1960 | 671 | <!-- icon --> | ||
1961 | 672 | <copy todir="${installDirectory}/bin" flatten="true"> | ||
1962 | 673 | <fileset dir="${toolsSourceDirectory}"> | ||
1963 | 674 | <include name="org/codehaus/groovy/tools/groovy.ico"/> | ||
1964 | 675 | </fileset> | ||
1965 | 676 | </copy> | ||
1966 | 677 | |||
1967 | 678 | <!-- Tweak scripts for platform compatibility --> | ||
1968 | 679 | <fixcrlf srcdir="${installDirectory}/bin" eol="lf" excludes="*.bat, *.icns"/> | ||
1969 | 680 | <fixcrlf srcdir="${installDirectory}/bin" eol="crlf" includes="*.bat"/> | ||
1970 | 681 | <chmod perm="ugo+x"> | ||
1971 | 682 | <fileset dir="${installDirectory}/bin" includes="*,*.*"/> | ||
1972 | 683 | </chmod> | ||
1973 | 684 | </target> | ||
1974 | 685 | |||
1975 | 686 | <target name="checkstyle" depends="-init,-initializeReports" | ||
1976 | 687 | description="Create the code style reports."> | ||
1977 | 688 | <checkAndReport | ||
1978 | 689 | reportDirectory="${reportsDirectory}/checkstyle" | ||
1979 | 690 | sourceDirectory="${mainSourceDirectory}" | ||
1980 | 691 | excludes="org/codehaus/groovy/antlr/parser/*,org/codehaus/groovy/antlr/java/*,org/codehaus/groovy/syntax/Types.java"> | ||
1981 | 692 | <path> | ||
1982 | 693 | <pathelement path="${mainClassesDirectory}"/> | ||
1983 | 694 | <path refid="testLibPath"/> | ||
1984 | 695 | </path> | ||
1985 | 696 | </checkAndReport> | ||
1986 | 697 | </target> | ||
1987 | 698 | |||
1988 | 699 | <target name="-compileTools" depends="-initGroovyc,compileMain"> | ||
1989 | 700 | <groovyc srcdir="${toolsSourceDirectory}" destdir="${toolsClassesDirectory}" fork="true"> | ||
1990 | 701 | <classpath> | ||
1991 | 702 | <path refid="toolsPath"/> | ||
1992 | 703 | <pathelement path="${mainClassesDirectory}"/> | ||
1993 | 704 | <path refid="compilePath"/> | ||
1994 | 705 | </classpath> | ||
1995 | 706 | </groovyc> | ||
1996 | 707 | <copy todir="${toolsClassesDirectory}"> | ||
1997 | 708 | <fileset dir="${toolsSourceDirectory}"> | ||
1998 | 709 | <include name="**/*.html"/> | ||
1999 | 710 | </fileset> | ||
2000 | 711 | </copy> | ||
2001 | 712 | </target> | ||
2002 | 713 | |||
2003 | 714 | <target name="cruiseReportExtras"> | ||
2004 | 715 | <mkdir dir="${cruiseReportRootDirectory}"/> | ||
2005 | 716 | <copy todir="${cruiseReportRootDirectory}"> | ||
2006 | 717 | <fileset dir="cruise/html"/> | ||
2007 | 718 | </copy> | ||
2008 | 719 | </target> | ||
2009 | 720 | |||
2010 | 721 | <target name="cruiseInit"> | ||
2011 | 722 | <property name="noTextReports" value="true"/> | ||
2012 | 723 | <property name="forceCoverage" value="true"/> | ||
2013 | 724 | <delete dir="${reportsDirectory}" quiet="true" failonerror="false"/> | ||
2014 | 725 | <delete dir="${junitRawDirectory}" quiet="true" failonerror="false"/> | ||
2015 | 726 | </target> | ||
2016 | 727 | |||
2017 | 728 | <target name="cruise" depends="cruiseInit,fulldist,cruiseReportExtras"/> | ||
2018 | 729 | |||
2019 | 730 | <target name="-docInit"> | ||
2020 | 731 | <mkdir dir="${docsDirectory}"/> | ||
2021 | 732 | <property name="docFooter" value="Copyright &copy; 2003-2010 The Codehaus. All rights reserved."/> | ||
2022 | 733 | <property name="title" value="Groovy ${groovyVersion}"/> | ||
2023 | 734 | </target> | ||
2024 | 735 | |||
2025 | 736 | <target name="doc" depends="javadoc, groovydoc" description="Create the documentation."/> | ||
2026 | 737 | |||
2027 | 738 | <target name="javadoc" depends="-docInit,-jvm14BuildWarning,ensureGrammars" | ||
2028 | 739 | unless="_skipDocs_" description="Create the javadoc documentation."> | ||
2029 | 740 | <javadoc destdir="${docsDirectory}/api" author="true" version="true" | ||
2030 | 741 | windowtitle="${title}" doctitle="${title}" | ||
2031 | 742 | encoding="ISO-8859-1" useexternalfile="true" source="1.5" | ||
2032 | 743 | footer="${docFooter}" | ||
2033 | 744 | overview="src/main/overviewj.html" | ||
2034 | 745 | maxmemory="${javaDoc_mx}" | ||
2035 | 746 | > | ||
2036 | 747 | <classpath> | ||
2037 | 748 | <path path="${mainClassesDirectory}"/> | ||
2038 | 749 | <path refid="compilePath"/> | ||
2039 | 750 | </classpath> | ||
2040 | 751 | <fileset dir="${mainSourceDirectory}" includes="**/*.java"/> | ||
2041 | 752 | <link href="http://java.sun.com/javase/6/docs/api"/> | ||
2042 | 753 | <link href="http://www.dpml.net/api/ant/1.7.0"/> | ||
2043 | 754 | <link href="http://junit.sourceforge.net/junit3.8.1/javadoc"/> | ||
2044 | 755 | <link href="http://java.sun.com/j2ee/1.4/docs/api"/> | ||
2045 | 756 | <link href="http://www.antlr2.org/javadoc"/> | ||
2046 | 757 | <link href="http://commons.apache.org/cli/api-release"/> | ||
2047 | 758 | </javadoc> | ||
2048 | 759 | <mkdir dir="${targetDistDirectory}"/> | ||
2049 | 760 | <jar basedir="${docsDirectory}/api" destfile="${targetDistDirectory}/groovy-${groovyVersion}-javadoc.jar"/> | ||
2050 | 761 | <copy toFile="${targetDistDirectory}/groovy-all-${groovyVersion}-javadoc.jar"> | ||
2051 | 762 | <fileset file="${targetDistDirectory}/groovy-${groovyVersion}-javadoc.jar"/> | ||
2052 | 763 | </copy> | ||
2053 | 764 | </target> | ||
2054 | 765 | |||
2055 | 766 | <target name="groovydoc"> | ||
2056 | 767 | <path id="groovydocpath"> | ||
2057 | 768 | <path path="${mainClassesDirectory}"/> | ||
2058 | 769 | <path refid="compilePath"/> | ||
2059 | 770 | </path> | ||
2060 | 771 | <antforked target="realgroovydoc" maxmemory="${groovyDoc_mx}" classpathref="groovydocpath"/> | ||
2061 | 772 | </target> | ||
2062 | 773 | |||
2063 | 774 | <target name="realgroovydoc" depends="-docInit,-includeGroovyDocTemplates,docGDK"> | ||
2064 | 775 | <taskdef name="groovydoc" classname="org.codehaus.groovy.ant.Groovydoc"> | ||
2065 | 776 | <classpath> | ||
2066 | 777 | <path path="${mainClassesDirectory}"/> | ||
2067 | 778 | <path refid="compilePath"/> | ||
2068 | 779 | </classpath> | ||
2069 | 780 | </taskdef> | ||
2070 | 781 | <groovydoc | ||
2071 | 782 | destdir="${docsDirectory}/gapi" | ||
2072 | 783 | sourcepath="${mainSourceDirectory}" | ||
2073 | 784 | packagenames="**.*" | ||
2074 | 785 | use="true" | ||
2075 | 786 | windowtitle="${title}" | ||
2076 | 787 | doctitle="${title}" | ||
2077 | 788 | header="${title}" | ||
2078 | 789 | footer="${docFooter}" | ||
2079 | 790 | overview="src/main/overview.html"> | ||
2080 | 791 | <link packages="javax.servlet.,javax.management." href="http://java.sun.com/j2ee/1.4/docs/api"/> | ||
2081 | 792 | <link packages="java.,org.xml.,javax.,org.xml." href="http://java.sun.com/javase/6/docs/api"/> | ||
2082 | 793 | <link packages="org.apache.ant.,org.apache.tools.ant." href="http://www.dpml.net/api/ant/1.7.0"/> | ||
2083 | 794 | <link packages="org.junit.,junit." href="http://junit.sourceforge.net/junit3.8.1/javadoc"/> | ||
2084 | 795 | <link packages="org.apache.commons.cli." href="http://commons.apache.org/cli/api-release"/> | ||
2085 | 796 | <link packages="antlr." href="http://www.antlr2.org/javadoc"/> | ||
2086 | 797 | </groovydoc> | ||
2087 | 798 | </target> | ||
2088 | 799 | |||
2089 | 800 | <target name="docGDK" depends="-compileTools" description="Create the GDK documentation"> | ||
2090 | 801 | <java classname="org.codehaus.groovy.tools.DocGenerator" fork="yes" failonerror="true"> | ||
2091 | 802 | <classpath> | ||
2092 | 803 | <pathelement path="${toolsClassesDirectory}"/> | ||
2093 | 804 | <path refid="toolsPath"/> | ||
2094 | 805 | <pathelement path="${mainClassesDirectory}"/> | ||
2095 | 806 | </classpath> | ||
2096 | 807 | <arg value="org.codehaus.groovy.runtime.DefaultGroovyMethods"/> | ||
2097 | 808 | <arg value="org.codehaus.groovy.runtime.SqlGroovyMethods"/> | ||
2098 | 809 | <arg value="org.codehaus.groovy.runtime.SwingGroovyMethods"/> | ||
2099 | 810 | <arg value="org.codehaus.groovy.runtime.XmlGroovyMethods"/> | ||
2100 | 811 | <arg value="org.codehaus.groovy.runtime.EncodingGroovyMethods"/> | ||
2101 | 812 | <arg value="org.codehaus.groovy.runtime.DateGroovyMethods"/> | ||
2102 | 813 | <arg value="org.codehaus.groovy.runtime.DefaultGroovyStaticMethods"/> | ||
2103 | 814 | <arg value="org.codehaus.groovy.vmplugin.v5.PluginDefaultGroovyMethods"/> | ||
2104 | 815 | <arg value="org.codehaus.groovy.vmplugin.v6.PluginDefaultGroovyMethods"/> | ||
2105 | 816 | </java> | ||
2106 | 817 | <copy todir="target/html/groovy-jdk" file="src/tools/org/codehaus/groovy/tools/groovy.ico"/> | ||
2107 | 818 | <copy todir="target/html/groovy-jdk" file="src/tools/org/codehaus/groovy/tools/stylesheet.css"/> | ||
2108 | 819 | </target> | ||
2109 | 820 | |||
2110 | 821 | <target name="clean" description="Clean up build artifacts."> | ||
2111 | 822 | <delete dir="${targetDirectory}" quiet="true"/> | ||
2112 | 823 | <delete file="cobertura.ser" quiet="true" failonerror="false"/> | ||
2113 | 824 | <delete quiet="true"> | ||
2114 | 825 | <fileset dir="." includes="**/*~"/> | ||
2115 | 826 | <fileset dir="${groovyParserDirectory}" includes="Groovy*.*"/> | ||
2116 | 827 | <fileset dir="${javaParserDirectory}" | ||
2117 | 828 | includes="JavaLexer.java,JavaRecognizer.java,JavaTokenTypes.java,JavaTokenTypes.txt,*.smap"/> | ||
2118 | 829 | </delete> | ||
2119 | 830 | </target> | ||
2120 | 831 | |||
2121 | 832 | <target name="deploy" depends="install,doc" | ||
2122 | 833 | description="Deploy jars to maven repository."/> | ||
2123 | 834 | |||
2124 | 835 | <target name="-deployDefault" unless="_forceServerSettings_"> | ||
2125 | 836 | <mavenDeploy version="${groovyVersion}" prefix="groovy"/> | ||
2126 | 837 | <mavenDeploy version="${groovyVersion}" prefix="groovy-all"/> | ||
2127 | 838 | </target> | ||
2128 | 839 | |||
2129 | 840 | <target name="-deployFromServer" if="_forceServerSettings_"> | ||
2130 | 841 | <copy tofile="target/settings.xml"> | ||
2131 | 842 | <fileset file="config/maven/settings.xml"/> | ||
2132 | 843 | <filterset> | ||
2133 | 844 | <filter token="groovy.deploy.username" value="${groovy.deploy.username}"/> | ||
2134 | 845 | <filter token="groovy.deploy.password" value="${groovy.deploy.password}"/> | ||
2135 | 846 | </filterset> | ||
2136 | 847 | </copy> | ||
2137 | 848 | <mavenDeploySettings version="${groovyVersion}" prefix="groovy" settings="target/settings.xml"/> | ||
2138 | 849 | <mavenDeploySettings version="${groovyVersion}" prefix="groovy-all" settings="target/settings.xml"/> | ||
2139 | 850 | <delete file="target/settings.xml"/> | ||
2140 | 851 | </target> | ||
2141 | 852 | |||
2142 | 853 | <target name="installRepo" depends="install,doc" | ||
2143 | 854 | description="Deploy artifacts to local maven repository."> | ||
2144 | 855 | <mavenInstallRepo version="${groovyVersion}" prefix="groovy"/> | ||
2145 | 856 | <mavenInstallRepo version="${groovyVersion}" prefix="groovy-all"/> | ||
2146 | 857 | </target> | ||
2147 | 858 | |||
2148 | 859 | <target name="quality" depends="install,checkstyle" description="install plus checkstyle"/> | ||
2149 | 860 | |||
2150 | 861 | <target name="release" depends="deploy,compileExamples" description="deploy plus compileExamples"/> | ||
2151 | 862 | |||
2152 | 863 | <target name="fulldist" depends="dist,compileExamples,checkstyle" description="dist plus examples plus checkstyle"/> | ||
2153 | 864 | |||
2154 | 865 | <target name="dist" depends="install,doc" description="Create everything needed for a distribution."> | ||
2155 | 866 | <zip destfile="${targetDistDirectory}/groovy-binary-${groovyVersion}.zip" | ||
2156 | 867 | comment="The Groovy ${groovyVersion} binary distribution."> | ||
2157 | 868 | |||
2158 | 869 | <!-- Make unix scripts executable --> | ||
2159 | 870 | <zipfileset dir="${installDirectory}" prefix="groovy-${groovyVersion}" filemode="775"> | ||
2160 | 871 | <include name="bin/*"/> | ||
2161 | 872 | <exclude name="bin/*.*"/> | ||
2162 | 873 | <exclude name="bin/startGroovy*"/> | ||
2163 | 874 | </zipfileset> | ||
2164 | 875 | |||
2165 | 876 | <!-- Include the other scripts as is --> | ||
2166 | 877 | <zipfileset dir="${installDirectory}" prefix="groovy-${groovyVersion}"> | ||
2167 | 878 | <include name="bin/*.*"/> | ||
2168 | 879 | <include name="bin/startGroovy*"/> | ||
2169 | 880 | </zipfileset> | ||
2170 | 881 | |||
2171 | 882 | <!-- Include everything else as is too --> | ||
2172 | 883 | <zipfileset dir="${installDirectory}" prefix="groovy-${groovyVersion}"> | ||
2173 | 884 | <exclude name="bin/**"/> | ||
2174 | 885 | <include name="**"/> | ||
2175 | 886 | </zipfileset> | ||
2176 | 887 | </zip> | ||
2177 | 888 | |||
2178 | 889 | <zip destfile="${targetDistDirectory}/groovy-docs-${groovyVersion}.zip" | ||
2179 | 890 | comment="The Groovy ${groovyVersion} documentation distribution."> | ||
2180 | 891 | <zipfileset dir="${wikiPdfDirectory}" includes="wiki-snapshot.pdf" prefix="groovy-${groovyVersion}/pdf"/> | ||
2181 | 892 | <zipfileset dir="${docsDirectory}" prefix="groovy-${groovyVersion}/html"/> | ||
2182 | 893 | </zip> | ||
2183 | 894 | |||
2184 | 895 | <zip destfile="${targetDistDirectory}/groovy-src-${groovyVersion}.zip" | ||
2185 | 896 | comment="The Groovy ${groovyVersion} source distribution."> | ||
2186 | 897 | <zipfileset dir="${basedir}" prefix="groovy-${groovyVersion}"> | ||
2187 | 898 | <!-- Exclude generated bits as well as any other bits that shouldn't make it in --> | ||
2188 | 899 | <exclude name="${targetDirectory}/**"/> | ||
2189 | 900 | <exclude name="classes/**"/> | ||
2190 | 901 | <exclude name="cruise/**"/> | ||
2191 | 902 | <exclude name=".clover/*"/> | ||
2192 | 903 | <exclude name="local.build.properties"/> | ||
2193 | 904 | <exclude name="cobertura.ser"/> | ||
2194 | 905 | <exclude name="junitvmwatcher*.properties"/> | ||
2195 | 906 | </zipfileset> | ||
2196 | 907 | </zip> | ||
2197 | 908 | </target> | ||
2198 | 909 | |||
2199 | 910 | </project> | ||
2200 | 0 | 911 | ||
2201 | === removed directory '.pc/ant-build.diff' | |||
2202 | === removed file '.pc/ant-build.diff/build.xml' | |||
2203 | --- .pc/ant-build.diff/build.xml 2010-02-26 16:39:51 +0000 | |||
2204 | +++ .pc/ant-build.diff/build.xml 1970-01-01 00:00:00 +0000 | |||
2205 | @@ -1,865 +0,0 @@ | |||
2206 | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2207 | 2 | |||
2208 | 3 | <!-- | ||
2209 | 4 | Ant build script for Groovy. | ||
2210 | 5 | |||
2211 | 6 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in | ||
2212 | 7 | compliance with the License. You may obtain a copy of the License at | ||
2213 | 8 | |||
2214 | 9 | http://www.apache.org/licenses/LICENSE-2.0 | ||
2215 | 10 | |||
2216 | 11 | Unless required by applicable law or agreed to in writing, software distributed under the License is | ||
2217 | 12 | distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
2218 | 13 | implied. See the License for the specific language governing permissions and limitations under the License. | ||
2219 | 14 | |||
2220 | 15 | This work is copyright by the author(s) and is part of a greater work collectively copyright by Codehaus on | ||
2221 | 16 | behalf of the Groovy community. See the NOTICE.txt file distributed with this work for additional information. | ||
2222 | 17 | |||
2223 | 18 | Author : Russel Winder | ||
2224 | 19 | Author : Paul King | ||
2225 | 20 | $Revision: 18555 $ ($LastChangedBy: paulk $) | ||
2226 | 21 | $Date: 2009-12-08 14:08:59 +0100 (Di, 08. Dez 2009) $ | ||
2227 | 22 | --> | ||
2228 | 23 | |||
2229 | 24 | <project name="Groovy" default="createJars" basedir="."> | ||
2230 | 25 | |||
2231 | 26 | <property file="local.build.properties"/> | ||
2232 | 27 | <property file="build.properties"/> | ||
2233 | 28 | <property name="ant.requiredVersion" value="1.6.5"/> | ||
2234 | 29 | |||
2235 | 30 | <!-- config/ant/build-maven.xml imports config/ant/build-setup.xml where all the paths are defined. --> | ||
2236 | 31 | <import file="config/ant/build-maven.xml"/> | ||
2237 | 32 | <import file="config/ant/build-checkstyle.xml"/> | ||
2238 | 33 | <import file="config/ant/build-cobertura.xml"/> | ||
2239 | 34 | |||
2240 | 35 | <condition property="_skipTests_"> | ||
2241 | 36 | <or> | ||
2242 | 37 | <equals arg1="${test}" arg2="false"/> | ||
2243 | 38 | <istrue value="${skipTests}"/> | ||
2244 | 39 | </or> | ||
2245 | 40 | </condition> | ||
2246 | 41 | |||
2247 | 42 | <condition property="_skipExamples_"> | ||
2248 | 43 | <istrue value="${skipExamples}"/> | ||
2249 | 44 | </condition> | ||
2250 | 45 | |||
2251 | 46 | <condition property="_skipOsgi_"> | ||
2252 | 47 | <istrue value="${skipOsgi}"/> | ||
2253 | 48 | </condition> | ||
2254 | 49 | |||
2255 | 50 | <condition property="_skipFetch_"> | ||
2256 | 51 | <istrue value="${skipFetch}"/> | ||
2257 | 52 | </condition> | ||
2258 | 53 | |||
2259 | 54 | <condition property="_skipEmbeddable_"> | ||
2260 | 55 | <istrue value="${skipEmbeddable}"/> | ||
2261 | 56 | </condition> | ||
2262 | 57 | |||
2263 | 58 | <condition property="groovy.build.vm4"> | ||
2264 | 59 | <contains string="${ant.java.version}" substring="1.4"/> | ||
2265 | 60 | </condition> | ||
2266 | 61 | |||
2267 | 62 | <condition property="groovy.build.vm6"> | ||
2268 | 63 | <contains string="${ant.java.version}" substring="1.6"/> | ||
2269 | 64 | </condition> | ||
2270 | 65 | |||
2271 | 66 | <presetdef name="javac"> | ||
2272 | 67 | <javac memoryMaximumSize="500m"/> | ||
2273 | 68 | </presetdef> | ||
2274 | 69 | |||
2275 | 70 | <target name="-initCoverage"> | ||
2276 | 71 | <condition property="_forceCoverage_"> | ||
2277 | 72 | <and> | ||
2278 | 73 | <not> | ||
2279 | 74 | <istrue value="${skipTests}"/> | ||
2280 | 75 | </not> | ||
2281 | 76 | <istrue value="${forceCoverage}"/> | ||
2282 | 77 | </and> | ||
2283 | 78 | </condition> | ||
2284 | 79 | </target> | ||
2285 | 80 | |||
2286 | 81 | <target name="ensureGrammars" description="Ensure all the Antlr generated files are up to date."> | ||
2287 | 82 | <mkdir dir="${groovyParserDirectory}"/> | ||
2288 | 83 | <antlr target="${antlrDirectory}/groovy.g" outputdirectory="${groovyParserDirectory}"> | ||
2289 | 84 | <classpath refid="compilePath"/> | ||
2290 | 85 | </antlr> | ||
2291 | 86 | <antlr target="${javaParserDirectory}/java.g" outputdirectory="${javaParserDirectory}"> | ||
2292 | 87 | <classpath refid="compilePath"/> | ||
2293 | 88 | </antlr> | ||
2294 | 89 | </target> | ||
2295 | 90 | |||
2296 | 91 | <target name="updatePolicy"> | ||
2297 | 92 | <move file="security/groovy.policy" tofile="security/groovy.policy.template"/> | ||
2298 | 93 | <copy tofile="security/groovy.policy"> | ||
2299 | 94 | <fileset file="security/groovy.policy.template"/> | ||
2300 | 95 | <filterset> | ||
2301 | 96 | <filter token="relativePathToRealBasedir" value="${relativePathToRealBasedir}"/> | ||
2302 | 97 | </filterset> | ||
2303 | 98 | </copy> | ||
2304 | 99 | </target> | ||
2305 | 100 | |||
2306 | 101 | <target name="-init" depends="-fetchDependencies"/> | ||
2307 | 102 | |||
2308 | 103 | <target name="-banner"> | ||
2309 | 104 | <echo message="Java Runtime Environment version: ${java.version}"/> | ||
2310 | 105 | <echo message="Java Runtime Environment vendor: ${java.vendor}"/> | ||
2311 | 106 | <echo message="Ant version: ${ant.version}"/> | ||
2312 | 107 | <echo message="Operating system name: ${os.name}"/> | ||
2313 | 108 | <echo message="Operating system architecture: ${os.arch}"/> | ||
2314 | 109 | <echo message="Operating system version: ${os.version}"/> | ||
2315 | 110 | <echo message="Base directory: ${basedir}"/> | ||
2316 | 111 | <echo message="Java Home: ${java.home}"/> | ||
2317 | 112 | </target> | ||
2318 | 113 | |||
2319 | 114 | <target name="-jvm14BuildWarning" if="groovy.build.vm4"> | ||
2320 | 115 | <fail>Aborting! | ||
2321 | 116 | |||
2322 | 117 | ================================================ | ||
2323 | 118 | ERROR: You must build Groovy with a 1.5+ JDK | ||
2324 | 119 | ================================================ | ||
2325 | 120 | </fail> | ||
2326 | 121 | </target> | ||
2327 | 122 | |||
2328 | 123 | <target name="-checkAntVersion" depends="-excludeLegacyAntVersion" | ||
2329 | 124 | description="Check that we are running on the required version of Ant."/> | ||
2330 | 125 | |||
2331 | 126 | <target name="-excludeLegacyAntVersion"> | ||
2332 | 127 | <!-- antversion didn't exist in early versions of ant so we have | ||
2333 | 128 | a legacy check to provide a nicer error message in this case --> | ||
2334 | 129 | <fail message="You are using ant ${ant.version}, please build using ant ${ant.requiredVersion}+"> | ||
2335 | 130 | <condition> | ||
2336 | 131 | <or> | ||
2337 | 132 | <contains string="${ant.version}" substring="1.1"></contains> | ||
2338 | 133 | <contains string="${ant.version}" substring="1.2"></contains> | ||
2339 | 134 | <contains string="${ant.version}" substring="1.3"></contains> | ||
2340 | 135 | <contains string="${ant.version}" substring="1.4"></contains> | ||
2341 | 136 | <contains string="${ant.version}" substring="1.5"></contains> | ||
2342 | 137 | <and> | ||
2343 | 138 | <contains string="${ant.version}" substring="1.6"></contains> | ||
2344 | 139 | <not> | ||
2345 | 140 | <contains string="${ant.version}" substring="${ant.requiredVersion}"></contains> | ||
2346 | 141 | </not> | ||
2347 | 142 | </and> | ||
2348 | 143 | </or> | ||
2349 | 144 | </condition> | ||
2350 | 145 | </fail> | ||
2351 | 146 | </target> | ||
2352 | 147 | |||
2353 | 148 | <!-- add back in if we make 1.7+ minimal required version for build again | ||
2354 | 149 | <target name="-ensureRequiredAntVersion"> | ||
2355 | 150 | <fail message="You are using ant ${ant.version}, please install using ant ${ant.requiredVersion}+"/> | ||
2356 | 151 | <condition><not><antversion atleast="${ant.requiredVersion}"/></not></condition> | ||
2357 | 152 | </fail> | ||
2358 | 153 | </target> | ||
2359 | 154 | --> | ||
2360 | 155 | |||
2361 | 156 | <target name="dgmConvert" depends="stagedcompile"> | ||
2362 | 157 | <java classname="org.codehaus.groovy.tools.DgmConverter" | ||
2363 | 158 | fork="yes" | ||
2364 | 159 | failonerror="true"> | ||
2365 | 160 | <classpath refid="compilePath"/> | ||
2366 | 161 | <classpath path="${mainClassesDirectory}"/> | ||
2367 | 162 | </java> | ||
2368 | 163 | </target> | ||
2369 | 164 | |||
2370 | 165 | <target name="compileMain" depends="stagedcompile,dgmConvert" | ||
2371 | 166 | description="Compile the Java and Groovy code in the main source."> | ||
2372 | 167 | </target> | ||
2373 | 168 | |||
2374 | 169 | <target name="stagedcompile" depends="-init,ensureGrammars,-jvm14BuildWarning" unless="uber"> | ||
2375 | 170 | <mkdir dir="${mainClassesDirectory}"/> | ||
2376 | 171 | <mkdir dir="${toolsClassesDirectory}"/> | ||
2377 | 172 | |||
2378 | 173 | <javac srcdir="${mainSourceDirectory}" includeantruntime="false" destdir="${mainClassesDirectory}" | ||
2379 | 174 | deprecation="on" debug="yes" source="1.5" target="1.5" fork="true" classpathref="compilePath"> | ||
2380 | 175 | <exclude name="groovy/ui/**/*.java"/> | ||
2381 | 176 | </javac> | ||
2382 | 177 | <antcall inheritrefs="true" target="-stagedcompile-groovy"/> | ||
2383 | 178 | <antcall target="-includeResources"/> | ||
2384 | 179 | </target> | ||
2385 | 180 | |||
2386 | 181 | <target name="-stagedcompile-groovy" depends="-initGroovyc"> | ||
2387 | 182 | <groovyc srcdir="${mainSourceDirectory}" destdir="${mainClassesDirectory}" fork="true" memorymaximumsize="${groovycMain_mx}"> | ||
2388 | 183 | <classpath> | ||
2389 | 184 | <pathelement path="${mainClassesDirectory}"/> | ||
2390 | 185 | <path refid="compilePath"/> | ||
2391 | 186 | </classpath> | ||
2392 | 187 | <javac deprecation="on" debug="yes" source="1.5" target="1.5"/> | ||
2393 | 188 | </groovyc> | ||
2394 | 189 | </target> | ||
2395 | 190 | |||
2396 | 191 | <property name="vm5GroovySourceFiles" value="**/*.groovy"/> | ||
2397 | 192 | <property name="vm5JavaSourceFiles" value="**/*.java"/> | ||
2398 | 193 | <property name="vm6GroovySourceFiles" value="groovy/**/vm6/*Test.groovy"/> | ||
2399 | 194 | |||
2400 | 195 | <target name="-initGroovyc"> | ||
2401 | 196 | <path id="groovyMainClasses"> | ||
2402 | 197 | <pathelement path="${mainClassesDirectory}"/> | ||
2403 | 198 | <path refid="compilePath"/> | ||
2404 | 199 | </path> | ||
2405 | 200 | <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpathref="groovyMainClasses"/> | ||
2406 | 201 | </target> | ||
2407 | 202 | |||
2408 | 203 | <target name="compileTest" depends="compileMain,compileTestOnly" | ||
2409 | 204 | description="Compile the Java and Groovy code in the test source."/> | ||
2410 | 205 | |||
2411 | 206 | <target name="-cleanTest"> | ||
2412 | 207 | <delete dir="${testClassesDirectory}"/> | ||
2413 | 208 | </target> | ||
2414 | 209 | |||
2415 | 210 | <target name="compileTestOnly" unless="_skipTests_"> | ||
2416 | 211 | <mkdir dir="${testClassesDirectory}"/> | ||
2417 | 212 | <antcall inheritrefs="true" target="-compileTest"/> | ||
2418 | 213 | </target> | ||
2419 | 214 | |||
2420 | 215 | <target name="-compileTest" depends="-initGroovyc,-compileTest_vm6"> | ||
2421 | 216 | <groovyc srcdir="${testSourceDirectory}" | ||
2422 | 217 | destdir="${testClassesDirectory}" | ||
2423 | 218 | includes="${vm5GroovySourceFiles},${vm5JavaSourceFiles}" | ||
2424 | 219 | excludes="${vm6GroovySourceFiles}" | ||
2425 | 220 | fork="true" | ||
2426 | 221 | memorymaximumsize="${groovycTest_mx}"> | ||
2427 | 222 | <classpath> | ||
2428 | 223 | <pathelement path="${testClassesDirectory}"/> | ||
2429 | 224 | <path refid="groovyMainClasses"/> | ||
2430 | 225 | <path refid="testLibPath"/> | ||
2431 | 226 | </classpath> | ||
2432 | 227 | <javac source="1.5" target="1.5" nowarn="on"/> | ||
2433 | 228 | </groovyc> | ||
2434 | 229 | </target> | ||
2435 | 230 | |||
2436 | 231 | <target name="-compileTest_vm6" if="groovy.build.vm6"> | ||
2437 | 232 | <groovyc srcdir="${testSourceDirectory}" | ||
2438 | 233 | destdir="${testClassesDirectory}" | ||
2439 | 234 | includes="${vm6GroovySourceFiles}" | ||
2440 | 235 | fork="true" | ||
2441 | 236 | memorymaximumsize="${groovycTest_mx}"> | ||
2442 | 237 | <classpath> | ||
2443 | 238 | <pathelement path="${testClassesDirectory}"/> | ||
2444 | 239 | <path refid="groovyMainClasses"/> | ||
2445 | 240 | <path refid="testLibPath"/> | ||
2446 | 241 | </classpath> | ||
2447 | 242 | <!-- currently not needed, add in if/when required --> | ||
2448 | 243 | <!--<javac source="1.5" target="1.5" nowarn="on"/>--> | ||
2449 | 244 | </groovyc> | ||
2450 | 245 | </target> | ||
2451 | 246 | |||
2452 | 247 | <target name="compileExamples" depends="-init,-initGroovyc,compileMain,-includeExamplesResources" unless="_skipExamples_" | ||
2453 | 248 | description="Compile the Java and Groovy code in the examples source directory."> | ||
2454 | 249 | <mkdir dir="${examplesClassesDirectory}"/> | ||
2455 | 250 | <echo message="Compiling example code."/> | ||
2456 | 251 | |||
2457 | 252 | <groovyc srcdir="${examplesSourceDirectory}/webapps/groovlet-examples/WEB-INF/groovy" | ||
2458 | 253 | destdir="${examplesClassesDirectory}" | ||
2459 | 254 | fork="true" | ||
2460 | 255 | memorymaximumsize="${groovycExamples_mx}"> | ||
2461 | 256 | <classpath> | ||
2462 | 257 | <pathelement path="${mainClassesDirectory}"/> | ||
2463 | 258 | <path refid="compilePath"/> | ||
2464 | 259 | <path refid="examplesPath"/> | ||
2465 | 260 | </classpath> | ||
2466 | 261 | </groovyc> | ||
2467 | 262 | <javac srcdir="${examplesSourceDirectory}" | ||
2468 | 263 | destdir="${examplesClassesDirectory}" | ||
2469 | 264 | source="1.5" | ||
2470 | 265 | target="1.5" | ||
2471 | 266 | fork="true"> | ||
2472 | 267 | <classpath> | ||
2473 | 268 | <pathelement path="${mainClassesDirectory}"/> | ||
2474 | 269 | <pathelement path="${examplesClassesDirectory}"/> | ||
2475 | 270 | <path refid="compilePath"/> | ||
2476 | 271 | <path refid="examplesPath"/> | ||
2477 | 272 | </classpath> | ||
2478 | 273 | </javac> | ||
2479 | 274 | <groovyc srcdir="${examplesSourceDirectory}" | ||
2480 | 275 | destdir="${examplesClassesDirectory}" | ||
2481 | 276 | fork="true" | ||
2482 | 277 | memorymaximumsize="${groovycExamples_mx}" | ||
2483 | 278 | excludes="webapps/groovlet-examples/WEB-INF/groovy/**/*.groovy,org/codehaus/groovy/grails/compiler/injection/**/*.java"> | ||
2484 | 279 | <classpath> | ||
2485 | 280 | <pathelement path="${mainClassesDirectory}"/> | ||
2486 | 281 | <pathelement path="${examplesClassesDirectory}"/> | ||
2487 | 282 | <path refid="compilePath"/> | ||
2488 | 283 | <path refid="examplesPath"/> | ||
2489 | 284 | </classpath> | ||
2490 | 285 | <javac source="1.5" target="1.5"/> | ||
2491 | 286 | </groovyc> | ||
2492 | 287 | |||
2493 | 288 | </target> | ||
2494 | 289 | |||
2495 | 290 | <target name="-initializeReports"> | ||
2496 | 291 | <mkdir dir="${reportsDirectory}"/> | ||
2497 | 292 | </target> | ||
2498 | 293 | |||
2499 | 294 | <condition property="_shouldBeHeadless_"> | ||
2500 | 295 | <or> | ||
2501 | 296 | <istrue value="${java.awt.headless}"/> | ||
2502 | 297 | <!--<os name="Mac OS X"/>--> | ||
2503 | 298 | </or> | ||
2504 | 299 | </condition> | ||
2505 | 300 | |||
2506 | 301 | <target name="-testInit" depends="-initHeadless"> | ||
2507 | 302 | <property name="headlessArg" value=""/> | ||
2508 | 303 | <property name="junitJvmArgs" | ||
2509 | 304 | value="-Xms${groovyJUnit_ms} -XX:PermSize=${groovyJUnit_permSize} -XX:MaxPermSize=${groovyJUnit_maxPermSize} ${headlessArg} -Dgroovy.testdb.props=${groovy.testdb.props}"/> | ||
2510 | 305 | </target> | ||
2511 | 306 | |||
2512 | 307 | <target name="-initHeadless" if="_shouldBeHeadless_"> | ||
2513 | 308 | <property name="headlessArg" value="-Djava.awt.headless=true"/> | ||
2514 | 309 | <echo message="Setting headless mode ..."/> | ||
2515 | 310 | </target> | ||
2516 | 311 | |||
2517 | 312 | <target name="test" | ||
2518 | 313 | depends="-banner,-checkAntVersion,-initializeReports,compileTest,-coverageInstrument,-testInit,-testOne,-testAll,-reportTestFailed" | ||
2519 | 314 | description="Compile and test all the classes (or just one class if testCase property is defined)."/> | ||
2520 | 315 | |||
2521 | 316 | <target name="clean-test" depends="clean,test" | ||
2522 | 317 | description="Clean and compile and test all the classes (or just one class if testCase property is defined)."/> | ||
2523 | 318 | |||
2524 | 319 | <condition property="_testOne_"> | ||
2525 | 320 | <and> | ||
2526 | 321 | <not> | ||
2527 | 322 | <istrue value="${_skipTests_}"/> | ||
2528 | 323 | </not> | ||
2529 | 324 | <isset property="testCase"/> | ||
2530 | 325 | </and> | ||
2531 | 326 | </condition> | ||
2532 | 327 | |||
2533 | 328 | <target name="-testOne" if="_testOne_" depends="-initGroovyc"> | ||
2534 | 329 | <mkdir dir="${junitRawDirectory}"/> | ||
2535 | 330 | <junit printsummary="true" fork="true" includeantruntime="false" failureproperty="testFailed" maxmemory="${groovyJUnit_mx}" dir="${basedir}"> | ||
2536 | 331 | <sysproperty key="apple.awt.UIElement" value="true"/> | ||
2537 | 332 | <!-- keeps the dock from showing the AWT startup --> | ||
2538 | 333 | <jvmarg line="${junitJvmArgs}"/> | ||
2539 | 334 | <test name="${testCase}" todir="${junitRawDirectory}"/> | ||
2540 | 335 | <formatter type="brief" usefile="false"/> | ||
2541 | 336 | <classpath> | ||
2542 | 337 | <pathelement path="${instrumentedClassesDirectory}"/> | ||
2543 | 338 | <pathelement path="src/test"/> | ||
2544 | 339 | <path refid="groovyMainClasses"/> | ||
2545 | 340 | <path refid="testLibPath"/> | ||
2546 | 341 | <pathelement path="${testClassesDirectory}"/> | ||
2547 | 342 | <path refid="coberturaPath"/> | ||
2548 | 343 | </classpath> | ||
2549 | 344 | <assertions> | ||
2550 | 345 | <enable/> | ||
2551 | 346 | </assertions> | ||
2552 | 347 | </junit> | ||
2553 | 348 | </target> | ||
2554 | 349 | |||
2555 | 350 | <condition property="_testAll_"> | ||
2556 | 351 | <and> | ||
2557 | 352 | <not> | ||
2558 | 353 | <istrue value="${_skipTests_}"/> | ||
2559 | 354 | </not> | ||
2560 | 355 | <not> | ||
2561 | 356 | <isset property="_testOne_"/> | ||
2562 | 357 | </not> | ||
2563 | 358 | </and> | ||
2564 | 359 | </condition> | ||
2565 | 360 | |||
2566 | 361 | <target name="-collectOptionalTests"> | ||
2567 | 362 | <condition property="networkTests.fileset.includes" value="groovy/grape/*Test.class" else="-nothing-"> | ||
2568 | 363 | <istrue value="${junit.network}"/> | ||
2569 | 364 | </condition> | ||
2570 | 365 | <fileset id="optionalTests.fileset" dir="${testClassesDirectory}" includes="${networkTests.fileset.includes}"/> | ||
2571 | 366 | </target> | ||
2572 | 367 | |||
2573 | 368 | <target name="-collect15tests" unless="groovy.build.vm6"> | ||
2574 | 369 | <fileset id="ubertests.fileset" dir="${testClassesDirectory}" includes="UberTest*.class" excludes="Uber*VM6.class,groovy/grape/*Test.class"/> | ||
2575 | 370 | </target> | ||
2576 | 371 | |||
2577 | 372 | <target name="-collect16tests" if="groovy.build.vm6"> | ||
2578 | 373 | <fileset id="ubertests.fileset" dir="${testClassesDirectory}" includes="UberTest*.class" excludes="groovy/grape/*Test.class"/> | ||
2579 | 374 | </target> | ||
2580 | 375 | |||
2581 | 376 | <target name="-testAll" if="_testAll_" depends="-collect15tests,-collect16tests,-collectOptionalTests,-initGroovyc"> | ||
2582 | 377 | <mkdir dir="${junitRawDirectory}"/> | ||
2583 | 378 | <junit printsummary="true" fork="true" includeantruntime="false" failureproperty="testFailed" maxmemory="${groovyJUnit_mx}" dir="${basedir}"> | ||
2584 | 379 | <jvmarg line="${junitJvmArgs}"/> | ||
2585 | 380 | <sysproperty key="apple.awt.UIElement" value="true"/> | ||
2586 | 381 | <!-- keeps the dock from showing the AWT startup --> | ||
2587 | 382 | <formatter type="xml"/> | ||
2588 | 383 | <formatter type="plain" unless="noTextReports"/> | ||
2589 | 384 | <batchtest todir="${junitRawDirectory}"> | ||
2590 | 385 | <fileset refid="ubertests.fileset"/> | ||
2591 | 386 | <fileset refid="optionalTests.fileset"/> | ||
2592 | 387 | </batchtest> | ||
2593 | 388 | <classpath> | ||
2594 | 389 | <pathelement path="${instrumentedClassesDirectory}"/> | ||
2595 | 390 | <pathelement path="src/test"/> | ||
2596 | 391 | <path refid="groovyMainClasses"/> | ||
2597 | 392 | <path refid="testLibPath"/> | ||
2598 | 393 | <pathelement path="${testClassesDirectory}"/> | ||
2599 | 394 | <path refid="coberturaPath"/> | ||
2600 | 395 | </classpath> | ||
2601 | 396 | <assertions> | ||
2602 | 397 | <enable/> | ||
2603 | 398 | </assertions> | ||
2604 | 399 | </junit> | ||
2605 | 400 | <mkdir dir="${junitReportsDirectory}"/> | ||
2606 | 401 | <junitreport tofile="${junitRawDirectory}/Results.xml"> | ||
2607 | 402 | <fileset dir="${junitRawDirectory}" includes="TEST-*.xml"/> | ||
2608 | 403 | <report format="frames" todir="${junitReportsDirectory}"/> | ||
2609 | 404 | </junitreport> | ||
2610 | 405 | </target> | ||
2611 | 406 | |||
2612 | 407 | <target name="-reportTestFailed" depends="-coverageReport" if="testFailed"> | ||
2613 | 408 | <fail message="Test failed, not processing further targets."/> | ||
2614 | 409 | </target> | ||
2615 | 410 | |||
2616 | 411 | <target name="-coverageInstrument" depends="-initCoverage,-coberturaInit" if="_forceCoverage_"> | ||
2617 | 412 | <mkdir dir="${instrumentedClassesDirectory}"/> | ||
2618 | 413 | <coberturaInstrument classesDirectory="${mainClassesDirectory}"/> | ||
2619 | 414 | </target> | ||
2620 | 415 | |||
2621 | 416 | <target name="-coverageReport" depends="-initCoverage" if="_forceCoverage_"> | ||
2622 | 417 | <coberturaReport reportDirectory="${reportsDirectory}/cobertura" sourceDirectory="${mainSourceDirectory}"/> | ||
2623 | 418 | </target> | ||
2624 | 419 | |||
2625 | 420 | <target name="-actuallyCreateJars" | ||
2626 | 421 | depends="-makeManifest,-initializeJars,-createBaseJar,-createEmbeddableJar" | ||
2627 | 422 | unless="testFailed"/> | ||
2628 | 423 | |||
2629 | 424 | <target name="-makeManifest"> | ||
2630 | 425 | <mkdir dir="${mainClassesDirectory}/META-INF"/> | ||
2631 | 426 | <copy todir="${mainClassesDirectory}/META-INF" file="LICENSE.txt"/> | ||
2632 | 427 | <makeManifest file="${mainClassesDirectory}/META-INF/MANIFEST.MF"/> | ||
2633 | 428 | </target> | ||
2634 | 429 | |||
2635 | 430 | <macrodef name="makeManifest"> | ||
2636 | 431 | <attribute name="file"/> | ||
2637 | 432 | <attribute name="bundleEnvironment" default="J2SE-1.5"/> | ||
2638 | 433 | <sequential> | ||
2639 | 434 | <manifest file="@{file}"> | ||
2640 | 435 | <attribute name="Built-By" value="${user.name}"/> | ||
2641 | 436 | <attribute name="Extension-Name" value="groovy"/> | ||
2642 | 437 | <attribute name="Specification-Title" value="Groovy: a powerful, dynamic language for the JVM"/> | ||
2643 | 438 | <attribute name="Specification-Version" value="${groovyVersion}"/> | ||
2644 | 439 | <attribute name="Specification-Vendor" value="The Codehaus"/> | ||
2645 | 440 | <attribute name="Implementation-Title" value="Groovy: a powerful, dynamic language for the JVM"/> | ||
2646 | 441 | <attribute name="Implementation-Version" value="${groovyVersion}"/> | ||
2647 | 442 | <attribute name="Implementation-Vendor" value="The Codehaus"/> | ||
2648 | 443 | <attribute name="Bundle-ManifestVersion" value="2" /> | ||
2649 | 444 | <attribute name="Bundle-Name" value="Groovy Runtime" /> | ||
2650 | 445 | <attribute name="Bundle-Description" value="Groovy Runtime" /> | ||
2651 | 446 | <attribute name="Bundle-Version" value="${groovyBundleVersion}" /> | ||
2652 | 447 | <attribute name="Bundle-Vendor" value="The Codehaus" /> | ||
2653 | 448 | <attribute name="Bundle-ClassPath" value="." /> | ||
2654 | 449 | <attribute name="Bundle-RequiredExecutionEnvironment" value="@{bundleEnvironment}" /> | ||
2655 | 450 | <attribute name="Eclipse-BuddyPolicy" value="dependent"/> | ||
2656 | 451 | <attribute name="Eclipse-LazyStart" value="true"/> | ||
2657 | 452 | <attribute name="DynamicImport-Package" value="*"/> | ||
2658 | 453 | </manifest> | ||
2659 | 454 | </sequential> | ||
2660 | 455 | </macrodef> | ||
2661 | 456 | |||
2662 | 457 | <target name="-includeResources" depends="-includeGroovyDocTemplates"> | ||
2663 | 458 | <copy todir="${mainClassesDirectory}"> | ||
2664 | 459 | <fileset dir="${mainSourceDirectory}"> | ||
2665 | 460 | <include name="META-INF/services/*"/> | ||
2666 | 461 | <include name="groovy/grape/*.xml"/> | ||
2667 | 462 | <include name="groovy/ui/*.properties"/> | ||
2668 | 463 | <include name="groovy/ui/**/*.png"/> | ||
2669 | 464 | <include name="groovy/inspect/swingui/AstBrowserProperties.groovy"/> | ||
2670 | 465 | <include name="org/codehaus/groovy/tools/shell/**/*.properties"/> | ||
2671 | 466 | <include name="org/codehaus/groovy/tools/shell/**/*.xml"/> | ||
2672 | 467 | <include name="org/codehaus/groovy/antlib.xml"/> | ||
2673 | 468 | </fileset> | ||
2674 | 469 | </copy> | ||
2675 | 470 | <antcall target="-includeReleaseInfo"/> | ||
2676 | 471 | </target> | ||
2677 | 472 | |||
2678 | 473 | <target name="-includeReleaseInfo"> | ||
2679 | 474 | <copy file="${mainSourceDirectory}/META-INF/groovy-release-info.properties" | ||
2680 | 475 | todir="${mainClassesDirectory}/META-INF" overwrite="true"> | ||
2681 | 476 | </copy> | ||
2682 | 477 | <tstamp> | ||
2683 | 478 | <format property="release.date" pattern="dd-MMM-yyyy"/> | ||
2684 | 479 | <format property="release.time" pattern="hh:mm aa"/> | ||
2685 | 480 | </tstamp> | ||
2686 | 481 | <replace file="${mainClassesDirectory}/META-INF/groovy-release-info.properties"> | ||
2687 | 482 | <replacefilter token="##ImplementationVersion##" value="${groovyVersion}"/> | ||
2688 | 483 | <replacefilter token="##BundleVersion##" value="${groovyBundleVersion}"/> | ||
2689 | 484 | <replacefilter token="##BuildDate##" value="${release.date}"/> | ||
2690 | 485 | <replacefilter token="##BuildTime##" value="${release.time}"/> | ||
2691 | 486 | </replace> | ||
2692 | 487 | </target> | ||
2693 | 488 | |||
2694 | 489 | <target name="-includeExamplesResources" depends="-includeGroovyDocTemplates"> | ||
2695 | 490 | <copy todir="${examplesClassesDirectory}"> | ||
2696 | 491 | <fileset dir="${examplesSourceDirectory}"> | ||
2697 | 492 | <include name="/swing/binding/caricature/resources/*.gif"/> | ||
2698 | 493 | </fileset> | ||
2699 | 494 | </copy> | ||
2700 | 495 | </target> | ||
2701 | 496 | |||
2702 | 497 | <target name="-includeGroovyDocTemplates"> | ||
2703 | 498 | <copy todir="${mainClassesDirectory}"> | ||
2704 | 499 | <fileset dir="${mainSourceDirectory}"> | ||
2705 | 500 | <include name="org/codehaus/groovy/tools/groovydoc/gstringTemplates/**/*.*"/> | ||
2706 | 501 | </fileset> | ||
2707 | 502 | <fileset dir="${toolsSourceDirectory}"> | ||
2708 | 503 | <include name="org/codehaus/groovy/tools/groovy.ico"/> | ||
2709 | 504 | </fileset> | ||
2710 | 505 | </copy> | ||
2711 | 506 | </target> | ||
2712 | 507 | |||
2713 | 508 | <target name="-initializeJars" depends="test"> | ||
2714 | 509 | <delete dir="${targetDistDirectory}" quiet="true"/> | ||
2715 | 510 | <mkdir dir="${targetDistDirectory}"/> | ||
2716 | 511 | </target> | ||
2717 | 512 | |||
2718 | 513 | <target name="-createBaseJar" unless="testFailed"> | ||
2719 | 514 | <jar destfile="${targetDistDirectory}/groovy.jar" basedir="${mainClassesDirectory}" | ||
2720 | 515 | excludes="*.groovy" manifest="${mainClassesDirectory}/META-INF/MANIFEST.MF"/> | ||
2721 | 516 | <jar destfile="${targetDistDirectory}/groovy-${groovyVersion}-sources.jar" basedir="${mainSourceDirectory}"/> | ||
2722 | 517 | </target> | ||
2723 | 518 | |||
2724 | 519 | <target name="-jarjarInit" unless="_skipEmbeddable_"> | ||
2725 | 520 | <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpathref="toolsPath"/> | ||
2726 | 521 | </target> | ||
2727 | 522 | |||
2728 | 523 | <target name="-createEmbeddableJar" depends="-jarjarInit,-actuallyCreateEmbeddableJar" unless="testFailed"/> | ||
2729 | 524 | |||
2730 | 525 | <target name="-actuallyCreateEmbeddableJar" unless="_skipEmbeddable_"> | ||
2731 | 526 | <delete dir="${stagingDirectory}" quiet="true"/> | ||
2732 | 527 | <mkdir dir="${stagingDirectory}"/> | ||
2733 | 528 | <unzip dest="${stagingDirectory}"> | ||
2734 | 529 | <fileset dir="${runtimeLibDirectory}"> | ||
2735 | 530 | <include name="antlr*.jar"/> | ||
2736 | 531 | <include name="asm*.jar"/> | ||
2737 | 532 | <exclude name="asm-attr*.jar"/> | ||
2738 | 533 | <exclude name="asm-util*.jar"/> | ||
2739 | 534 | <exclude name="asm-analysis*.jar"/> | ||
2740 | 535 | </fileset> | ||
2741 | 536 | </unzip> | ||
2742 | 537 | <unzip dest="${stagingDirectory}"> | ||
2743 | 538 | <fileset dir="${targetDistDirectory}"> | ||
2744 | 539 | <include name="groovy.jar"/> | ||
2745 | 540 | </fileset> | ||
2746 | 541 | </unzip> | ||
2747 | 542 | <copy toDir="${stagingDirectory}/META-INF"> | ||
2748 | 543 | <fileset dir="${basedir}/config/build"> | ||
2749 | 544 | <include name="*LICENSE.txt"/> | ||
2750 | 545 | </fileset> | ||
2751 | 546 | </copy> | ||
2752 | 547 | <!-- add commons-cli --> | ||
2753 | 548 | <unzip dest="${stagingDirectory}"> | ||
2754 | 549 | <patternset> | ||
2755 | 550 | <!-- no need for the manifest file, we have our own --> | ||
2756 | 551 | <exclude name="META-INF/MANIFEST.MF"/> | ||
2757 | 552 | </patternset> | ||
2758 | 553 | <globmapper from="META-INF/LICENSE.txt" to="META-INF/CLI-LICENSE.txt"/> | ||
2759 | 554 | <fileset dir="${runtimeLibDirectory}"> | ||
2760 | 555 | <include name="commons-cli-*.jar"/> | ||
2761 | 556 | </fileset> | ||
2762 | 557 | </unzip> | ||
2763 | 558 | <makeManifest file="${stagingDirectory}/META-INF/MANIFEST.MF" /> | ||
2764 | 559 | <!-- TODO try to make use of jarjar keep ability --> | ||
2765 | 560 | <jarjar jarfile="${targetDistDirectory}/groovy-all.jar" | ||
2766 | 561 | manifest="${stagingDirectory}/META-INF/MANIFEST.MF"> | ||
2767 | 562 | <fileset dir="${stagingDirectory}" excludes="groovy/util/CliBuilder*.class,groovy/util/OptionAccessor*.class,org/codehaus/groovy/tools/shell/util/HelpFormatter*.class"/> | ||
2768 | 563 | <rule pattern="antlr.**" result="groovyjarjarantlr.@1"/> | ||
2769 | 564 | <rule pattern="org.objectweb.**" result="groovyjarjarasm.@1"/> | ||
2770 | 565 | <rule pattern="org.apache.commons.cli.**" result="groovyjarjarcommonscli.@1"/> | ||
2771 | 566 | </jarjar> | ||
2772 | 567 | <jar destfile="${targetDistDirectory}/groovy-all.jar" update="true" | ||
2773 | 568 | basedir="${stagingDirectory}" includes="groovy/util/CliBuilder*.class,groovy/util/OptionAccessor*.class,org/codehaus/groovy/tools/shell/util/HelpFormatter*.class"/> | ||
2774 | 569 | |||
2775 | 570 | <copy file="${targetDistDirectory}/groovy-${groovyVersion}-sources.jar" | ||
2776 | 571 | tofile="${targetDistDirectory}/groovy-all-${groovyVersion}-sources.jar"/> | ||
2777 | 572 | <delete dir="${stagingDirectory}" quiet="true"/> | ||
2778 | 573 | </target> | ||
2779 | 574 | |||
2780 | 575 | <target name="createJars" depends="-checkAntVersion,test,-actuallyCreateJars" | ||
2781 | 576 | description="Build Groovy and create the jarfiles."/> | ||
2782 | 577 | |||
2783 | 578 | <target name="updateJarsForOsgi" unless="_skipOsgi_"> | ||
2784 | 579 | <taskdef resource="aQute/bnd/ant/taskdef.properties" classpathref="toolsPath"/> | ||
2785 | 580 | <copy todir="${targetDistDirectory}"> | ||
2786 | 581 | <fileset dir="config/bnd" includes="groovy*.bnd"/> | ||
2787 | 582 | <filterset> | ||
2788 | 583 | <filter token="GROOVY_BUNDLE_VERSION" value="${groovyBundleVersion}"/> | ||
2789 | 584 | </filterset> | ||
2790 | 585 | </copy> | ||
2791 | 586 | <property name="jarsToWrap" value="groovy.jar,groovy-all.jar" /> | ||
2792 | 587 | <bndwrap definitions="${targetDistDirectory}" output="${targetDistDirectory}" failok="true"> | ||
2793 | 588 | <fileset dir="${targetDistDirectory}" includes="${jarsToWrap}"/> | ||
2794 | 589 | </bndwrap> | ||
2795 | 590 | <delete dir="${targetDistDirectory}" includes="${jarsToWrap}"/> | ||
2796 | 591 | <move todir="${targetDistDirectory}"> | ||
2797 | 592 | <fileset dir="${targetDistDirectory}" includes="groovy*.bar"/> | ||
2798 | 593 | <globmapper from="groovy*.bar" to="groovy*-${groovyVersion}.jar"/> | ||
2799 | 594 | </move> | ||
2800 | 595 | <delete dir="${targetDistDirectory}" includes="groovy*.bnd"/> | ||
2801 | 596 | </target> | ||
2802 | 597 | |||
2803 | 598 | <target name="skipOsgi" if="_skipOsgi_"> | ||
2804 | 599 | <move todir="${targetDistDirectory}"> | ||
2805 | 600 | <fileset dir="${targetDistDirectory}" includes="groovy*.jar"/> | ||
2806 | 601 | <globmapper from="groovy*.jar" to="groovy*-${groovyVersion}.jar"/> | ||
2807 | 602 | </move> | ||
2808 | 603 | </target> | ||
2809 | 604 | |||
2810 | 605 | <target name="install" depends="createJars,updateJarsForOsgi,skipOsgi" unless="testFailed" | ||
2811 | 606 | description="Create an installation hierarchy in target/install."> | ||
2812 | 607 | |||
2813 | 608 | <!-- | ||
2814 | 609 | FIXME: It's not really a good idea to delete stuff, as it tends to negate Ant's (or other tools) | ||
2815 | 610 | ability to run faster incremental builds. | ||
2816 | 611 | --> | ||
2817 | 612 | <delete dir="${installDirectory}" quiet="true"/> | ||
2818 | 613 | <mkdir dir="${installDirectory}"/> | ||
2819 | 614 | |||
2820 | 615 | <!-- Install license files --> | ||
2821 | 616 | <copy todir="${installDirectory}"> | ||
2822 | 617 | <fileset dir="${basedir}"> | ||
2823 | 618 | <include name="LICENSE.txt"/> | ||
2824 | 619 | <include name="NOTICE.txt"/> | ||
2825 | 620 | </fileset> | ||
2826 | 621 | </copy> | ||
2827 | 622 | <unzip dest="${installDirectory}"> | ||
2828 | 623 | <patternset> | ||
2829 | 624 | <include name="META-INF/*-LICENSE.txt"/> | ||
2830 | 625 | </patternset> | ||
2831 | 626 | <mapper type="flatten"/> | ||
2832 | 627 | <fileset file="${targetDistDirectory}/groovy-all-${groovyVersion}.jar"/> | ||
2833 | 628 | </unzip> | ||
2834 | 629 | <fixcrlf srcdir="${installDirectory}" eol="crlf" includes="*.txt"/> | ||
2835 | 630 | |||
2836 | 631 | <!-- Install generated artifacts and runtime dependencies --> | ||
2837 | 632 | <mkdir dir="${installDirectory}/lib"/> | ||
2838 | 633 | <copy todir="${installDirectory}/lib"> | ||
2839 | 634 | <fileset dir="${targetDistDirectory}" includes="groovy-${groovyVersion}.jar"/> | ||
2840 | 635 | <fileset dir="${runtimeLibDirectory}" includes="*.jar"/> | ||
2841 | 636 | </copy> | ||
2842 | 637 | |||
2843 | 638 | <!-- Install the embeddable bits --> | ||
2844 | 639 | <mkdir dir="${installDirectory}/embeddable"/> | ||
2845 | 640 | <copy todir="${installDirectory}/embeddable"> | ||
2846 | 641 | <fileset dir="${targetDistDirectory}" includes="groovy-all-${groovyVersion}.jar"/> | ||
2847 | 642 | </copy> | ||
2848 | 643 | |||
2849 | 644 | <!-- Install configuration files --> | ||
2850 | 645 | <mkdir dir="${installDirectory}/conf"/> | ||
2851 | 646 | <copy toDir="${installDirectory}/conf"> | ||
2852 | 647 | <fileset dir="${sourceDirectory}/conf" includes="*"/> | ||
2853 | 648 | </copy> | ||
2854 | 649 | |||
2855 | 650 | <!-- Install scripts --> | ||
2856 | 651 | <mkdir dir="${installDirectory}/bin"/> | ||
2857 | 652 | <copy toDir="${installDirectory}/bin"> | ||
2858 | 653 | <fileset dir="${sourceDirectory}/bin" includes="*"/> | ||
2859 | 654 | <filterset> | ||
2860 | 655 | <filter token="GROOVYJAR" value="groovy-${groovyVersion}.jar"/> | ||
2861 | 656 | </filterset> | ||
2862 | 657 | </copy> | ||
2863 | 658 | |||
2864 | 659 | <!-- Tweak scripts for platform compatibility --> | ||
2865 | 660 | <fixcrlf srcdir="${installDirectory}/bin" eol="lf" excludes="*.bat"/> | ||
2866 | 661 | <fixcrlf srcdir="${installDirectory}/bin" eol="crlf" includes="*.bat"/> | ||
2867 | 662 | <chmod perm="ugo+x"> | ||
2868 | 663 | <fileset dir="${installDirectory}/bin" includes="*,*.*"/> | ||
2869 | 664 | </chmod> | ||
2870 | 665 | </target> | ||
2871 | 666 | |||
2872 | 667 | <target name="checkstyle" depends="-init,-initializeReports,-checkstyleInit" | ||
2873 | 668 | description="Create the code style reports."> | ||
2874 | 669 | <checkAndReport | ||
2875 | 670 | reportDirectory="${reportsDirectory}/checkstyle" | ||
2876 | 671 | sourceDirectory="${mainSourceDirectory}" | ||
2877 | 672 | excludes="org/codehaus/groovy/antlr/parser/*,org/codehaus/groovy/antlr/java/*,org/codehaus/groovy/syntax/Types.java"> | ||
2878 | 673 | <path> | ||
2879 | 674 | <pathelement path="${mainClassesDirectory}"/> | ||
2880 | 675 | <path refid="testLibPath"/> | ||
2881 | 676 | </path> | ||
2882 | 677 | </checkAndReport> | ||
2883 | 678 | </target> | ||
2884 | 679 | |||
2885 | 680 | <target name="-compileTools" depends="-initGroovyc,compileMain"> | ||
2886 | 681 | <groovyc srcdir="${toolsSourceDirectory}" destdir="${toolsClassesDirectory}" fork="true"> | ||
2887 | 682 | <classpath> | ||
2888 | 683 | <path refid="toolsPath"/> | ||
2889 | 684 | <pathelement path="${mainClassesDirectory}"/> | ||
2890 | 685 | <path refid="compilePath"/> | ||
2891 | 686 | </classpath> | ||
2892 | 687 | </groovyc> | ||
2893 | 688 | <copy todir="${toolsClassesDirectory}"> | ||
2894 | 689 | <fileset dir="${toolsSourceDirectory}"> | ||
2895 | 690 | <include name="**/*.html"/> | ||
2896 | 691 | </fileset> | ||
2897 | 692 | </copy> | ||
2898 | 693 | </target> | ||
2899 | 694 | |||
2900 | 695 | <target name="cruiseReportExtras"> | ||
2901 | 696 | <mkdir dir="${cruiseReportRootDirectory}"/> | ||
2902 | 697 | <copy todir="${cruiseReportRootDirectory}"> | ||
2903 | 698 | <fileset dir="cruise/html"/> | ||
2904 | 699 | </copy> | ||
2905 | 700 | </target> | ||
2906 | 701 | |||
2907 | 702 | <target name="cruiseInit"> | ||
2908 | 703 | <property name="noTextReports" value="true"/> | ||
2909 | 704 | <property name="forceCoverage" value="true"/> | ||
2910 | 705 | <delete dir="${reportsDirectory}" quiet="true" failonerror="false"/> | ||
2911 | 706 | <delete dir="${junitRawDirectory}" quiet="true" failonerror="false"/> | ||
2912 | 707 | </target> | ||
2913 | 708 | |||
2914 | 709 | <target name="cruise" depends="cruiseInit,fulldist,cruiseReportExtras"/> | ||
2915 | 710 | |||
2916 | 711 | <target name="-docInit"> | ||
2917 | 712 | <mkdir dir="${docsDirectory}"/> | ||
2918 | 713 | <property name="docFooter" value="Copyright &copy; 2003-2009 The Codehaus. All rights reserved."/> | ||
2919 | 714 | <property name="title" value="Groovy ${groovyVersion}"/> | ||
2920 | 715 | </target> | ||
2921 | 716 | |||
2922 | 717 | <target name="doc" depends="javadoc, groovydoc" description="Create the documentation."/> | ||
2923 | 718 | |||
2924 | 719 | <target name="javadoc" depends="-fetchDependencies,-docInit,-jvm14BuildWarning,ensureGrammars" | ||
2925 | 720 | description="Create the javadoc documentation."> | ||
2926 | 721 | <javadoc destdir="${docsDirectory}/api" author="true" version="true" | ||
2927 | 722 | windowtitle="${title}" doctitle="${title}" | ||
2928 | 723 | encoding="ISO-8859-1" useexternalfile="true" source="1.5" | ||
2929 | 724 | footer="${docFooter}" | ||
2930 | 725 | maxmemory="${javaDoc_mx}" | ||
2931 | 726 | > | ||
2932 | 727 | <classpath> | ||
2933 | 728 | <path path="${mainClassesDirectory}"/> | ||
2934 | 729 | <path refid="compilePath"/> | ||
2935 | 730 | </classpath> | ||
2936 | 731 | <fileset dir="${mainSourceDirectory}" includes="**/*.java"/> | ||
2937 | 732 | <link href="http://java.sun.com/j2se/1.5.0/docs/api"/> | ||
2938 | 733 | <link href="http://www.dpml.net/api/ant/1.7.0"/> | ||
2939 | 734 | <link href="http://junit.sourceforge.net/junit3.8.1/javadoc/"/> | ||
2940 | 735 | <link href="http://java.sun.com/j2ee/1.4/docs/api"/> | ||
2941 | 736 | <link href="http://www.antlr2.org/javadoc"/> | ||
2942 | 737 | </javadoc> | ||
2943 | 738 | <mkdir dir="${targetDistDirectory}"/> | ||
2944 | 739 | <jar basedir="${docsDirectory}/api" destfile="${targetDistDirectory}/groovy-${groovyVersion}-javadoc.jar"/> | ||
2945 | 740 | <copy toFile="${targetDistDirectory}/groovy-all-${groovyVersion}-javadoc.jar"> | ||
2946 | 741 | <fileset file="${targetDistDirectory}/groovy-${groovyVersion}-javadoc.jar"/> | ||
2947 | 742 | </copy> | ||
2948 | 743 | </target> | ||
2949 | 744 | |||
2950 | 745 | <target name="groovydoc" depends="-fetchDependencies"> | ||
2951 | 746 | <path id="groovydocpath"> | ||
2952 | 747 | <path path="${mainClassesDirectory}"/> | ||
2953 | 748 | <path refid="runtimePath"/> | ||
2954 | 749 | <path path="${java.class.path}"/> | ||
2955 | 750 | </path> | ||
2956 | 751 | <antforked target="realgroovydoc" maxmemory="${groovyDoc_mx}" classpathref="groovydocpath"/> | ||
2957 | 752 | </target> | ||
2958 | 753 | |||
2959 | 754 | <target name="realgroovydoc" depends="-fetchDependencies,-docInit,-includeGroovyDocTemplates,docGDK"> | ||
2960 | 755 | <taskdef name="groovydoc" classname="org.codehaus.groovy.ant.Groovydoc"> | ||
2961 | 756 | <classpath> | ||
2962 | 757 | <path path="${mainClassesDirectory}"/> | ||
2963 | 758 | <path refid="compilePath"/> | ||
2964 | 759 | </classpath> | ||
2965 | 760 | </taskdef> | ||
2966 | 761 | <groovydoc | ||
2967 | 762 | destdir="${docsDirectory}/gapi" | ||
2968 | 763 | sourcepath="${mainSourceDirectory}" | ||
2969 | 764 | packagenames="**.*" | ||
2970 | 765 | use="true" | ||
2971 | 766 | windowtitle="${title}" | ||
2972 | 767 | doctitle="${title}" | ||
2973 | 768 | header="${title}" | ||
2974 | 769 | footer="${docFooter}" | ||
2975 | 770 | overview="src/main/overview.html" | ||
2976 | 771 | private="false"> | ||
2977 | 772 | <link packages="java.,org.xml.,javax.,org.xml." href="http://java.sun.com/j2se/1.5.0/docs/api"/> | ||
2978 | 773 | <link packages="org.apache.ant.,org.apache.tools.ant." href="http://www.dpml.net/api/ant/1.7.0"/> | ||
2979 | 774 | <link packages="org.junit.,junit.framework." href="http://junit.sourceforge.net/junit3.8.1/javadoc/"/> | ||
2980 | 775 | <link packages="antlr." href="http://www.antlr2.org/javadoc/"/> | ||
2981 | 776 | <link packages="javax.servlet.,javax.management." href="http://java.sun.com/j2ee/1.4/docs/api"/> | ||
2982 | 777 | <link packages="groovy.,org.codehaus.groovy." href="http://groovy.codehaus.org/gapi/"/> | ||
2983 | 778 | </groovydoc> | ||
2984 | 779 | </target> | ||
2985 | 780 | |||
2986 | 781 | <target name="docGDK" depends="-fetchDependencies,-compileTools" description="Create the GDK documentation"> | ||
2987 | 782 | <java classname="org.codehaus.groovy.tools.DocGenerator" fork="yes" failonerror="true"> | ||
2988 | 783 | <classpath> | ||
2989 | 784 | <pathelement path="${toolsClassesDirectory}"/> | ||
2990 | 785 | <path refid="toolsPath"/> | ||
2991 | 786 | <pathelement path="${mainClassesDirectory}"/> | ||
2992 | 787 | </classpath> | ||
2993 | 788 | <arg value="org.codehaus.groovy.runtime.DefaultGroovyMethods"/> | ||
2994 | 789 | <arg value="org.codehaus.groovy.runtime.DefaultGroovyStaticMethods"/> | ||
2995 | 790 | <arg value="org.codehaus.groovy.vmplugin.v5.PluginDefaultGroovyMethods"/> | ||
2996 | 791 | </java> | ||
2997 | 792 | <copy todir="target/html/groovy-jdk" file="src/tools/org/codehaus/groovy/tools/groovy.ico"/> | ||
2998 | 793 | <copy todir="target/html/groovy-jdk" file="src/tools/org/codehaus/groovy/tools/stylesheet.css"/> | ||
2999 | 794 | </target> | ||
3000 | 795 | |||
3001 | 796 | <target name="clean" description="Clean up build artifacts."> | ||
3002 | 797 | <delete dir="${targetDirectory}" quiet="true"/> | ||
3003 | 798 | <delete file="cobertura.ser" quiet="true" failonerror="false"/> | ||
3004 | 799 | <delete quiet="true"> | ||
3005 | 800 | <fileset dir="." includes="**/*~"/> | ||
3006 | 801 | <fileset dir="${groovyParserDirectory}" includes="Groovy*.*"/> | ||
3007 | 802 | <fileset dir="${javaParserDirectory}" includes="JavaLexer.java,JavaRecognizer.java,JavaTokenTypes.java,JavaTokenTypes.txt,*.smap"/> | ||
3008 | 803 | </delete> | ||
3009 | 804 | </target> | ||
3010 | 805 | |||
3011 | 806 | <target name="deploy" depends="-mavenDeployInit,install,doc" | ||
3012 | 807 | description="Deploy jars to maven repository."> | ||
3013 | 808 | <mavenDeploy version="${groovyVersion}" prefix="groovy"/> | ||
3014 | 809 | <mavenDeploy version="${groovyVersion}" prefix="groovy-all"/> | ||
3015 | 810 | </target> | ||
3016 | 811 | |||
3017 | 812 | <target name="installRepo" depends="-mavenInit,install,doc" | ||
3018 | 813 | description="Deploy artifacts to local maven repository."> | ||
3019 | 814 | <mavenInstallRepo version="${groovyVersion}" prefix="groovy"/> | ||
3020 | 815 | <mavenInstallRepo version="${groovyVersion}" prefix="groovy-all"/> | ||
3021 | 816 | </target> | ||
3022 | 817 | |||
3023 | 818 | <target name="fulldist" depends="dist,compileExamples,checkstyle" description="dist plus examples plus checkstyle"/> | ||
3024 | 819 | |||
3025 | 820 | <target name="dist" depends="install,doc" description="Create everything needed for a distribution."> | ||
3026 | 821 | <zip destfile="${targetDistDirectory}/groovy-binary-${groovyVersion}.zip" | ||
3027 | 822 | comment="The Groovy ${groovyVersion} binary distribution."> | ||
3028 | 823 | |||
3029 | 824 | <!-- Make unix scripts executable --> | ||
3030 | 825 | <zipfileset dir="${installDirectory}" prefix="groovy-${groovyVersion}" filemode="775"> | ||
3031 | 826 | <include name="bin/*"/> | ||
3032 | 827 | <exclude name="bin/*.*"/> | ||
3033 | 828 | <exclude name="bin/startGroovy*"/> | ||
3034 | 829 | </zipfileset> | ||
3035 | 830 | |||
3036 | 831 | <!-- Include the other scripts as is --> | ||
3037 | 832 | <zipfileset dir="${installDirectory}" prefix="groovy-${groovyVersion}"> | ||
3038 | 833 | <include name="bin/*.*"/> | ||
3039 | 834 | <include name="bin/startGroovy*"/> | ||
3040 | 835 | </zipfileset> | ||
3041 | 836 | |||
3042 | 837 | <!-- Include everything else as is too --> | ||
3043 | 838 | <zipfileset dir="${installDirectory}" prefix="groovy-${groovyVersion}"> | ||
3044 | 839 | <exclude name="bin/**"/> | ||
3045 | 840 | <include name="**"/> | ||
3046 | 841 | </zipfileset> | ||
3047 | 842 | </zip> | ||
3048 | 843 | |||
3049 | 844 | <zip destfile="${targetDistDirectory}/groovy-docs-${groovyVersion}.zip" | ||
3050 | 845 | comment="The Groovy ${groovyVersion} documentation distribution."> | ||
3051 | 846 | <zipfileset dir="${wikiPdfDirectory}" includes="wiki-snapshot.pdf" prefix="groovy-${groovyVersion}/pdf"/> | ||
3052 | 847 | <zipfileset dir="${docsDirectory}" prefix="groovy-${groovyVersion}/html"/> | ||
3053 | 848 | </zip> | ||
3054 | 849 | |||
3055 | 850 | <zip destfile="${targetDistDirectory}/groovy-src-${groovyVersion}.zip" | ||
3056 | 851 | comment="The Groovy ${groovyVersion} source distribution."> | ||
3057 | 852 | <zipfileset dir="${basedir}" prefix="groovy-${groovyVersion}"> | ||
3058 | 853 | <!-- Exclude generated bits as well as any other bits that shouldn't make it in --> | ||
3059 | 854 | <exclude name="${targetDirectory}/**"/> | ||
3060 | 855 | <exclude name="classes/**"/> | ||
3061 | 856 | <exclude name="cruise/**"/> | ||
3062 | 857 | <exclude name=".clover/*"/> | ||
3063 | 858 | <exclude name="local.build.properties"/> | ||
3064 | 859 | <exclude name="cobertura.ser"/> | ||
3065 | 860 | <exclude name="junitvmwatcher*.properties"/> | ||
3066 | 861 | </zipfileset> | ||
3067 | 862 | </zip> | ||
3068 | 863 | </target> | ||
3069 | 864 | |||
3070 | 865 | </project> | ||
3071 | 866 | 0 | ||
3072 | === removed directory '.pc/ant-build.diff/config' | |||
3073 | === removed directory '.pc/ant-build.diff/config/ant' | |||
3074 | === removed file '.pc/ant-build.diff/config/ant/build-setup.xml' | |||
3075 | --- .pc/ant-build.diff/config/ant/build-setup.xml 2010-02-26 16:39:51 +0000 | |||
3076 | +++ .pc/ant-build.diff/config/ant/build-setup.xml 1970-01-01 00:00:00 +0000 | |||
3077 | @@ -1,78 +0,0 @@ | |||
3078 | 1 | <?xml version="1.0"?> | ||
3079 | 2 | |||
3080 | 3 | <!-- | ||
3081 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in | ||
3082 | 5 | compliance with the License. You may obtain a copy of the License at | ||
3083 | 6 | |||
3084 | 7 | http://www.apache.org/licenses/LICENSE-2.0 | ||
3085 | 8 | |||
3086 | 9 | Unless required by applicable law or agreed to in writing, software distributed under the License is | ||
3087 | 10 | distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
3088 | 11 | implied. See the License for the specific language governing permissions and limitations under the License. | ||
3089 | 12 | |||
3090 | 13 | This work is copyright by the author(s) and is part of a greater work collectively copyright by the | ||
3091 | 14 | Groovy community. See the NOTICE.txt file distributed with this work for additional information. | ||
3092 | 15 | |||
3093 | 16 | Author : Paul King | ||
3094 | 17 | $Revision: 5519 $ ($LastChangedBy: paulk $) | ||
3095 | 18 | $Date: 2007-03-11 19:14:07 +1000 (Sun, 11 Mar 2007) $ | ||
3096 | 19 | --> | ||
3097 | 20 | |||
3098 | 21 | <project name="build-setup" default="" basedir="../.."> | ||
3099 | 22 | |||
3100 | 23 | <property name="bootstrapDirectory" location="bootstrap"/> | ||
3101 | 24 | <property name="sourceDirectory" value="src"/> | ||
3102 | 25 | <property name="wikiPdfDirectory" value="src"/> | ||
3103 | 26 | <property name="mainSourceDirectory" location="${sourceDirectory}/main"/> | ||
3104 | 27 | <property name="testSourceDirectory" value="${sourceDirectory}/test"/> | ||
3105 | 28 | <property name="toolsSourceDirectory" location="${sourceDirectory}/tools"/> | ||
3106 | 29 | <property name="examplesSourceDirectory" location="${sourceDirectory}/examples"/> | ||
3107 | 30 | |||
3108 | 31 | <property name="targetDirectory" value="target"/> | ||
3109 | 32 | <property name="installDirectory" value="${targetDirectory}/install"/> | ||
3110 | 33 | <property name="cruiseReportRootDirectory" value="${targetDirectory}/root"/> | ||
3111 | 34 | <property name="stagingDirectory" value="${targetDirectory}/staging"/> | ||
3112 | 35 | <property name="docsDirectory" value="${targetDirectory}/html"/> | ||
3113 | 36 | <property name="mainClassesDirectory" value="${targetDirectory}/classes"/> | ||
3114 | 37 | <property name="testClassesDirectory" value="${targetDirectory}/test-classes"/> | ||
3115 | 38 | <property name="toolsClassesDirectory" value="${targetDirectory}/tools-classes"/> | ||
3116 | 39 | <property name="mainStubsDirectory" value="${targetDirectory}/stubs"/> | ||
3117 | 40 | <property name="testStubsDirectory" value="${targetDirectory}/test-stubs"/> | ||
3118 | 41 | |||
3119 | 42 | <property name="examplesClassesDirectory" value="${targetDirectory}/examples-classes"/> | ||
3120 | 43 | <property name="instrumentedClassesDirectory" value="${targetDirectory}/instrumented-classes"/> | ||
3121 | 44 | <property name="reportsDirectory" value="${targetDirectory}/reports"/> | ||
3122 | 45 | <property name="targetLibDirectory" value="${targetDirectory}/lib"/> | ||
3123 | 46 | <property name="targetDistDirectory" value="${targetDirectory}/dist"/> | ||
3124 | 47 | |||
3125 | 48 | <property name="antlrDirectory" value="${mainSourceDirectory}/org/codehaus/groovy/antlr"/> | ||
3126 | 49 | <property name="groovyParserDirectory" value="${antlrDirectory}/parser"/> | ||
3127 | 50 | <property name="javaParserDirectory" value="${antlrDirectory}/java"/> | ||
3128 | 51 | |||
3129 | 52 | <property name="compileLibDirectory" value="${targetLibDirectory}/compile"/> | ||
3130 | 53 | <property name="testLibDirectory" value="${targetLibDirectory}/test"/> | ||
3131 | 54 | <property name="runtimeLibDirectory" value="${targetLibDirectory}/runtime"/> | ||
3132 | 55 | <property name="toolsLibDirectory" value="${targetLibDirectory}/tools"/> | ||
3133 | 56 | <property name="examplesLibDirectory" value="${targetLibDirectory}/examples"/> | ||
3134 | 57 | <property name="extrasLibDirectory" value="${targetLibDirectory}/extras"/> | ||
3135 | 58 | <property name="junitRawDirectory" value="${targetDirectory}/test-reports"/> | ||
3136 | 59 | <property name="junitReportsDirectory" value="${reportsDirectory}/junit"/> | ||
3137 | 60 | <property name="relativePathToRealBasedir" value="."/> | ||
3138 | 61 | |||
3139 | 62 | <macrodef name="antforked"> | ||
3140 | 63 | <attribute name="target"/> | ||
3141 | 64 | <attribute name="maxmemory" default="256m"/> | ||
3142 | 65 | <attribute name="classpathref" default="runtimePath"/> | ||
3143 | 66 | <sequential> | ||
3144 | 67 | <java classname="org.apache.tools.ant.launch.Launcher" fork="true" maxmemory="@{maxmemory}" failonerror="true"> | ||
3145 | 68 | <classpath refid="@{classpathref}"/> | ||
3146 | 69 | <jvmarg value="-Duser.home=${user.home}" /> | ||
3147 | 70 | <arg value="@{target}"/> | ||
3148 | 71 | <arg value="-DskipFetch=${skipFetch}"/> | ||
3149 | 72 | <arg value="-DruntimeLibDirectory=${runtimeLibDirectory}"/> | ||
3150 | 73 | <arg value="-DtoolsLibDirectory=${toolsLibDirectory}" /> | ||
3151 | 74 | </java> | ||
3152 | 75 | </sequential> | ||
3153 | 76 | </macrodef> | ||
3154 | 77 | |||
3155 | 78 | </project> | ||
3156 | 79 | 0 | ||
3157 | === modified file '.pc/applied-patches' | |||
3158 | --- .pc/applied-patches 2010-02-26 16:39:51 +0000 | |||
3159 | +++ .pc/applied-patches 2011-02-24 17:57:34 +0000 | |||
3160 | @@ -1,3 +1,3 @@ | |||
3164 | 1 | start-scripts.patch | 1 | 0001-start-scripts.patch |
3165 | 2 | ant-build.diff | 2 | 0002-ant-build.diff.patch |
3166 | 3 | disable-bnd.diff | 3 | 0003-disable-bnd.diff.patch |
3167 | 4 | 4 | ||
3168 | === removed directory '.pc/disable-bnd.diff' | |||
3169 | === removed file '.pc/disable-bnd.diff/build.xml' | |||
3170 | --- .pc/disable-bnd.diff/build.xml 2010-02-26 16:39:51 +0000 | |||
3171 | +++ .pc/disable-bnd.diff/build.xml 1970-01-01 00:00:00 +0000 | |||
3172 | @@ -1,872 +0,0 @@ | |||
3173 | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
3174 | 2 | |||
3175 | 3 | <!-- | ||
3176 | 4 | Ant build script for Groovy. | ||
3177 | 5 | |||
3178 | 6 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in | ||
3179 | 7 | compliance with the License. You may obtain a copy of the License at | ||
3180 | 8 | |||
3181 | 9 | http://www.apache.org/licenses/LICENSE-2.0 | ||
3182 | 10 | |||
3183 | 11 | Unless required by applicable law or agreed to in writing, software distributed under the License is | ||
3184 | 12 | distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
3185 | 13 | implied. See the License for the specific language governing permissions and limitations under the License. | ||
3186 | 14 | |||
3187 | 15 | This work is copyright by the author(s) and is part of a greater work collectively copyright by Codehaus on | ||
3188 | 16 | behalf of the Groovy community. See the NOTICE.txt file distributed with this work for additional information. | ||
3189 | 17 | |||
3190 | 18 | Author : Russel Winder | ||
3191 | 19 | Author : Paul King | ||
3192 | 20 | $Revision: 18555 $ ($LastChangedBy: paulk $) | ||
3193 | 21 | $Date: 2009-12-08 14:08:59 +0100 (Di, 08. Dez 2009) $ | ||
3194 | 22 | --> | ||
3195 | 23 | |||
3196 | 24 | <project name="Groovy" default="createJars" basedir="."> | ||
3197 | 25 | |||
3198 | 26 | <property file="local.build.properties"/> | ||
3199 | 27 | <property file="build.properties"/> | ||
3200 | 28 | <property name="ant.requiredVersion" value="1.6.5"/> | ||
3201 | 29 | |||
3202 | 30 | <!-- config/ant/build-maven.xml imports config/ant/build-setup.xml where all the paths are defined. --> | ||
3203 | 31 | <import file="config/ant/build-setup.xml"/> | ||
3204 | 32 | <import file="config/ant/build-checkstyle.xml"/> | ||
3205 | 33 | <import file="config/ant/build-cobertura.xml"/> | ||
3206 | 34 | |||
3207 | 35 | <path id="compilePath"> | ||
3208 | 36 | <path path="${java.class.path}" /> | ||
3209 | 37 | </path> | ||
3210 | 38 | <path id="toolsPath"> | ||
3211 | 39 | <path path="${java.class.path}" /> | ||
3212 | 40 | </path> | ||
3213 | 41 | |||
3214 | 42 | <condition property="_skipTests_"> | ||
3215 | 43 | <or> | ||
3216 | 44 | <equals arg1="${test}" arg2="false"/> | ||
3217 | 45 | <istrue value="${skipTests}"/> | ||
3218 | 46 | </or> | ||
3219 | 47 | </condition> | ||
3220 | 48 | |||
3221 | 49 | <condition property="_skipExamples_"> | ||
3222 | 50 | <istrue value="${skipExamples}"/> | ||
3223 | 51 | </condition> | ||
3224 | 52 | |||
3225 | 53 | <condition property="_skipOsgi_"> | ||
3226 | 54 | <istrue value="${skipOsgi}"/> | ||
3227 | 55 | </condition> | ||
3228 | 56 | |||
3229 | 57 | <condition property="_skipFetch_"> | ||
3230 | 58 | <istrue value="${skipFetch}"/> | ||
3231 | 59 | </condition> | ||
3232 | 60 | |||
3233 | 61 | <condition property="_skipEmbeddable_"> | ||
3234 | 62 | <istrue value="${skipEmbeddable}"/> | ||
3235 | 63 | </condition> | ||
3236 | 64 | |||
3237 | 65 | <condition property="groovy.build.vm4"> | ||
3238 | 66 | <contains string="${ant.java.version}" substring="1.4"/> | ||
3239 | 67 | </condition> | ||
3240 | 68 | |||
3241 | 69 | <condition property="groovy.build.vm6"> | ||
3242 | 70 | <contains string="${ant.java.version}" substring="1.6"/> | ||
3243 | 71 | </condition> | ||
3244 | 72 | |||
3245 | 73 | <presetdef name="javac"> | ||
3246 | 74 | <javac memoryMaximumSize="500m"/> | ||
3247 | 75 | </presetdef> | ||
3248 | 76 | |||
3249 | 77 | <target name="-initCoverage"> | ||
3250 | 78 | <condition property="_forceCoverage_"> | ||
3251 | 79 | <and> | ||
3252 | 80 | <not> | ||
3253 | 81 | <istrue value="${skipTests}"/> | ||
3254 | 82 | </not> | ||
3255 | 83 | <istrue value="${forceCoverage}"/> | ||
3256 | 84 | </and> | ||
3257 | 85 | </condition> | ||
3258 | 86 | </target> | ||
3259 | 87 | |||
3260 | 88 | <target name="ensureGrammars" description="Ensure all the Antlr generated files are up to date."> | ||
3261 | 89 | <mkdir dir="${groovyParserDirectory}"/> | ||
3262 | 90 | <antlr target="${antlrDirectory}/groovy.g" outputdirectory="${groovyParserDirectory}"> | ||
3263 | 91 | <classpath refid="compilePath"/> | ||
3264 | 92 | </antlr> | ||
3265 | 93 | <antlr target="${javaParserDirectory}/java.g" outputdirectory="${javaParserDirectory}"> | ||
3266 | 94 | <classpath refid="compilePath"/> | ||
3267 | 95 | </antlr> | ||
3268 | 96 | </target> | ||
3269 | 97 | |||
3270 | 98 | <target name="updatePolicy"> | ||
3271 | 99 | <move file="security/groovy.policy" tofile="security/groovy.policy.template"/> | ||
3272 | 100 | <copy tofile="security/groovy.policy"> | ||
3273 | 101 | <fileset file="security/groovy.policy.template"/> | ||
3274 | 102 | <filterset> | ||
3275 | 103 | <filter token="relativePathToRealBasedir" value="${relativePathToRealBasedir}"/> | ||
3276 | 104 | </filterset> | ||
3277 | 105 | </copy> | ||
3278 | 106 | </target> | ||
3279 | 107 | |||
3280 | 108 | <target name="-init"> | ||
3281 | 109 | <xslt in="pom.xml" out="${targetDirectory}/groovy-all.pom" style="config/maven/groovy-all.xsl"/> | ||
3282 | 110 | </target> | ||
3283 | 111 | |||
3284 | 112 | <target name="-banner"> | ||
3285 | 113 | <echo message="Java Runtime Environment version: ${java.version}"/> | ||
3286 | 114 | <echo message="Java Runtime Environment vendor: ${java.vendor}"/> | ||
3287 | 115 | <echo message="Ant version: ${ant.version}"/> | ||
3288 | 116 | <echo message="Operating system name: ${os.name}"/> | ||
3289 | 117 | <echo message="Operating system architecture: ${os.arch}"/> | ||
3290 | 118 | <echo message="Operating system version: ${os.version}"/> | ||
3291 | 119 | <echo message="Base directory: ${basedir}"/> | ||
3292 | 120 | <echo message="Java Home: ${java.home}"/> | ||
3293 | 121 | </target> | ||
3294 | 122 | |||
3295 | 123 | <target name="-jvm14BuildWarning" if="groovy.build.vm4"> | ||
3296 | 124 | <fail>Aborting! | ||
3297 | 125 | |||
3298 | 126 | ================================================ | ||
3299 | 127 | ERROR: You must build Groovy with a 1.5+ JDK | ||
3300 | 128 | ================================================ | ||
3301 | 129 | </fail> | ||
3302 | 130 | </target> | ||
3303 | 131 | |||
3304 | 132 | <target name="-checkAntVersion" depends="-excludeLegacyAntVersion" | ||
3305 | 133 | description="Check that we are running on the required version of Ant."/> | ||
3306 | 134 | |||
3307 | 135 | <target name="-excludeLegacyAntVersion"> | ||
3308 | 136 | <!-- antversion didn't exist in early versions of ant so we have | ||
3309 | 137 | a legacy check to provide a nicer error message in this case --> | ||
3310 | 138 | <fail message="You are using ant ${ant.version}, please build using ant ${ant.requiredVersion}+"> | ||
3311 | 139 | <condition> | ||
3312 | 140 | <or> | ||
3313 | 141 | <contains string="${ant.version}" substring="1.1"></contains> | ||
3314 | 142 | <contains string="${ant.version}" substring="1.2"></contains> | ||
3315 | 143 | <contains string="${ant.version}" substring="1.3"></contains> | ||
3316 | 144 | <contains string="${ant.version}" substring="1.4"></contains> | ||
3317 | 145 | <contains string="${ant.version}" substring="1.5"></contains> | ||
3318 | 146 | <and> | ||
3319 | 147 | <contains string="${ant.version}" substring="1.6"></contains> | ||
3320 | 148 | <not> | ||
3321 | 149 | <contains string="${ant.version}" substring="${ant.requiredVersion}"></contains> | ||
3322 | 150 | </not> | ||
3323 | 151 | </and> | ||
3324 | 152 | </or> | ||
3325 | 153 | </condition> | ||
3326 | 154 | </fail> | ||
3327 | 155 | </target> | ||
3328 | 156 | |||
3329 | 157 | <!-- add back in if we make 1.7+ minimal required version for build again | ||
3330 | 158 | <target name="-ensureRequiredAntVersion"> | ||
3331 | 159 | <fail message="You are using ant ${ant.version}, please install using ant ${ant.requiredVersion}+"/> | ||
3332 | 160 | <condition><not><antversion atleast="${ant.requiredVersion}"/></not></condition> | ||
3333 | 161 | </fail> | ||
3334 | 162 | </target> | ||
3335 | 163 | --> | ||
3336 | 164 | |||
3337 | 165 | <target name="dgmConvert" depends="stagedcompile"> | ||
3338 | 166 | <java classname="org.codehaus.groovy.tools.DgmConverter" | ||
3339 | 167 | fork="yes" | ||
3340 | 168 | failonerror="true"> | ||
3341 | 169 | <classpath refid="compilePath"/> | ||
3342 | 170 | <classpath path="${mainClassesDirectory}"/> | ||
3343 | 171 | </java> | ||
3344 | 172 | </target> | ||
3345 | 173 | |||
3346 | 174 | <target name="compileMain" depends="stagedcompile,dgmConvert" | ||
3347 | 175 | description="Compile the Java and Groovy code in the main source."> | ||
3348 | 176 | </target> | ||
3349 | 177 | |||
3350 | 178 | <target name="stagedcompile" depends="-init,ensureGrammars,-jvm14BuildWarning" unless="uber"> | ||
3351 | 179 | <mkdir dir="${mainClassesDirectory}"/> | ||
3352 | 180 | <mkdir dir="${toolsClassesDirectory}"/> | ||
3353 | 181 | |||
3354 | 182 | <javac srcdir="${mainSourceDirectory}" includeantruntime="false" destdir="${mainClassesDirectory}" | ||
3355 | 183 | deprecation="on" debug="yes" source="1.5" target="1.5" fork="true" classpathref="compilePath"> | ||
3356 | 184 | <exclude name="groovy/ui/**/*.java"/> | ||
3357 | 185 | </javac> | ||
3358 | 186 | <antcall inheritrefs="true" target="-stagedcompile-groovy"/> | ||
3359 | 187 | <antcall target="-includeResources"/> | ||
3360 | 188 | </target> | ||
3361 | 189 | |||
3362 | 190 | <target name="-stagedcompile-groovy" depends="-initGroovyc"> | ||
3363 | 191 | <groovyc srcdir="${mainSourceDirectory}" destdir="${mainClassesDirectory}" fork="true" memorymaximumsize="${groovycMain_mx}"> | ||
3364 | 192 | <classpath> | ||
3365 | 193 | <pathelement path="${mainClassesDirectory}"/> | ||
3366 | 194 | <path refid="compilePath"/> | ||
3367 | 195 | </classpath> | ||
3368 | 196 | <javac deprecation="on" debug="yes" source="1.5" target="1.5"/> | ||
3369 | 197 | </groovyc> | ||
3370 | 198 | </target> | ||
3371 | 199 | |||
3372 | 200 | <property name="vm5GroovySourceFiles" value="**/*.groovy"/> | ||
3373 | 201 | <property name="vm5JavaSourceFiles" value="**/*.java"/> | ||
3374 | 202 | <property name="vm6GroovySourceFiles" value="groovy/**/vm6/*Test.groovy"/> | ||
3375 | 203 | |||
3376 | 204 | <target name="-initGroovyc"> | ||
3377 | 205 | <path id="groovyMainClasses"> | ||
3378 | 206 | <pathelement path="${mainClassesDirectory}"/> | ||
3379 | 207 | <path refid="compilePath"/> | ||
3380 | 208 | </path> | ||
3381 | 209 | <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpathref="groovyMainClasses"/> | ||
3382 | 210 | </target> | ||
3383 | 211 | |||
3384 | 212 | <target name="compileTest" depends="compileMain,compileTestOnly" | ||
3385 | 213 | description="Compile the Java and Groovy code in the test source."/> | ||
3386 | 214 | |||
3387 | 215 | <target name="-cleanTest"> | ||
3388 | 216 | <delete dir="${testClassesDirectory}"/> | ||
3389 | 217 | </target> | ||
3390 | 218 | |||
3391 | 219 | <target name="compileTestOnly" unless="_skipTests_"> | ||
3392 | 220 | <mkdir dir="${testClassesDirectory}"/> | ||
3393 | 221 | <antcall inheritrefs="true" target="-compileTest"/> | ||
3394 | 222 | </target> | ||
3395 | 223 | |||
3396 | 224 | <target name="-compileTest" depends="-initGroovyc,-compileTest_vm6"> | ||
3397 | 225 | <groovyc srcdir="${testSourceDirectory}" | ||
3398 | 226 | destdir="${testClassesDirectory}" | ||
3399 | 227 | includes="${vm5GroovySourceFiles},${vm5JavaSourceFiles}" | ||
3400 | 228 | excludes="${vm6GroovySourceFiles}" | ||
3401 | 229 | fork="true" | ||
3402 | 230 | memorymaximumsize="${groovycTest_mx}"> | ||
3403 | 231 | <classpath> | ||
3404 | 232 | <pathelement path="${testClassesDirectory}"/> | ||
3405 | 233 | <path refid="groovyMainClasses"/> | ||
3406 | 234 | <path refid="testLibPath"/> | ||
3407 | 235 | </classpath> | ||
3408 | 236 | <javac source="1.5" target="1.5" nowarn="on"/> | ||
3409 | 237 | </groovyc> | ||
3410 | 238 | </target> | ||
3411 | 239 | |||
3412 | 240 | <target name="-compileTest_vm6" if="groovy.build.vm6"> | ||
3413 | 241 | <groovyc srcdir="${testSourceDirectory}" | ||
3414 | 242 | destdir="${testClassesDirectory}" | ||
3415 | 243 | includes="${vm6GroovySourceFiles}" | ||
3416 | 244 | fork="true" | ||
3417 | 245 | memorymaximumsize="${groovycTest_mx}"> | ||
3418 | 246 | <classpath> | ||
3419 | 247 | <pathelement path="${testClassesDirectory}"/> | ||
3420 | 248 | <path refid="groovyMainClasses"/> | ||
3421 | 249 | <path refid="testLibPath"/> | ||
3422 | 250 | </classpath> | ||
3423 | 251 | <!-- currently not needed, add in if/when required --> | ||
3424 | 252 | <!--<javac source="1.5" target="1.5" nowarn="on"/>--> | ||
3425 | 253 | </groovyc> | ||
3426 | 254 | </target> | ||
3427 | 255 | |||
3428 | 256 | <target name="compileExamples" depends="-init,-initGroovyc,compileMain,-includeExamplesResources" unless="_skipExamples_" | ||
3429 | 257 | description="Compile the Java and Groovy code in the examples source directory."> | ||
3430 | 258 | <mkdir dir="${examplesClassesDirectory}"/> | ||
3431 | 259 | <echo message="Compiling example code."/> | ||
3432 | 260 | |||
3433 | 261 | <groovyc srcdir="${examplesSourceDirectory}/webapps/groovlet-examples/WEB-INF/groovy" | ||
3434 | 262 | destdir="${examplesClassesDirectory}" | ||
3435 | 263 | fork="true" | ||
3436 | 264 | memorymaximumsize="${groovycExamples_mx}"> | ||
3437 | 265 | <classpath> | ||
3438 | 266 | <pathelement path="${mainClassesDirectory}"/> | ||
3439 | 267 | <path refid="compilePath"/> | ||
3440 | 268 | <path refid="examplesPath"/> | ||
3441 | 269 | </classpath> | ||
3442 | 270 | </groovyc> | ||
3443 | 271 | <javac srcdir="${examplesSourceDirectory}" | ||
3444 | 272 | destdir="${examplesClassesDirectory}" | ||
3445 | 273 | source="1.5" | ||
3446 | 274 | target="1.5" | ||
3447 | 275 | fork="true"> | ||
3448 | 276 | <classpath> | ||
3449 | 277 | <pathelement path="${mainClassesDirectory}"/> | ||
3450 | 278 | <pathelement path="${examplesClassesDirectory}"/> | ||
3451 | 279 | <path refid="compilePath"/> | ||
3452 | 280 | <path refid="examplesPath"/> | ||
3453 | 281 | </classpath> | ||
3454 | 282 | </javac> | ||
3455 | 283 | <groovyc srcdir="${examplesSourceDirectory}" | ||
3456 | 284 | destdir="${examplesClassesDirectory}" | ||
3457 | 285 | fork="true" | ||
3458 | 286 | memorymaximumsize="${groovycExamples_mx}" | ||
3459 | 287 | excludes="webapps/groovlet-examples/WEB-INF/groovy/**/*.groovy,org/codehaus/groovy/grails/compiler/injection/**/*.java"> | ||
3460 | 288 | <classpath> | ||
3461 | 289 | <pathelement path="${mainClassesDirectory}"/> | ||
3462 | 290 | <pathelement path="${examplesClassesDirectory}"/> | ||
3463 | 291 | <path refid="compilePath"/> | ||
3464 | 292 | <path refid="examplesPath"/> | ||
3465 | 293 | </classpath> | ||
3466 | 294 | <javac source="1.5" target="1.5"/> | ||
3467 | 295 | </groovyc> | ||
3468 | 296 | |||
3469 | 297 | </target> | ||
3470 | 298 | |||
3471 | 299 | <target name="-initializeReports"> | ||
3472 | 300 | <mkdir dir="${reportsDirectory}"/> | ||
3473 | 301 | </target> | ||
3474 | 302 | |||
3475 | 303 | <condition property="_shouldBeHeadless_"> | ||
3476 | 304 | <or> | ||
3477 | 305 | <istrue value="${java.awt.headless}"/> | ||
3478 | 306 | <!--<os name="Mac OS X"/>--> | ||
3479 | 307 | </or> | ||
3480 | 308 | </condition> | ||
3481 | 309 | |||
3482 | 310 | <target name="-testInit" depends="-initHeadless"> | ||
3483 | 311 | <property name="headlessArg" value=""/> | ||
3484 | 312 | <property name="junitJvmArgs" | ||
3485 | 313 | value="-Xms${groovyJUnit_ms} -XX:PermSize=${groovyJUnit_permSize} -XX:MaxPermSize=${groovyJUnit_maxPermSize} ${headlessArg} -Dgroovy.testdb.props=${groovy.testdb.props}"/> | ||
3486 | 314 | </target> | ||
3487 | 315 | |||
3488 | 316 | <target name="-initHeadless" if="_shouldBeHeadless_"> | ||
3489 | 317 | <property name="headlessArg" value="-Djava.awt.headless=true"/> | ||
3490 | 318 | <echo message="Setting headless mode ..."/> | ||
3491 | 319 | </target> | ||
3492 | 320 | |||
3493 | 321 | <target name="test" | ||
3494 | 322 | depends="-banner,-checkAntVersion,-initializeReports,compileTest,-coverageInstrument,-testInit,-testOne,-testAll,-reportTestFailed" | ||
3495 | 323 | description="Compile and test all the classes (or just one class if testCase property is defined)."/> | ||
3496 | 324 | |||
3497 | 325 | <target name="clean-test" depends="clean,test" | ||
3498 | 326 | description="Clean and compile and test all the classes (or just one class if testCase property is defined)."/> | ||
3499 | 327 | |||
3500 | 328 | <condition property="_testOne_"> | ||
3501 | 329 | <and> | ||
3502 | 330 | <not> | ||
3503 | 331 | <istrue value="${_skipTests_}"/> | ||
3504 | 332 | </not> | ||
3505 | 333 | <isset property="testCase"/> | ||
3506 | 334 | </and> | ||
3507 | 335 | </condition> | ||
3508 | 336 | |||
3509 | 337 | <target name="-testOne" if="_testOne_" depends="-initGroovyc"> | ||
3510 | 338 | <mkdir dir="${junitRawDirectory}"/> | ||
3511 | 339 | <junit printsummary="true" fork="true" includeantruntime="false" failureproperty="testFailed" maxmemory="${groovyJUnit_mx}" dir="${basedir}"> | ||
3512 | 340 | <sysproperty key="apple.awt.UIElement" value="true"/> | ||
3513 | 341 | <!-- keeps the dock from showing the AWT startup --> | ||
3514 | 342 | <jvmarg line="${junitJvmArgs}"/> | ||
3515 | 343 | <test name="${testCase}" todir="${junitRawDirectory}"/> | ||
3516 | 344 | <formatter type="brief" usefile="false"/> | ||
3517 | 345 | <classpath> | ||
3518 | 346 | <pathelement path="${instrumentedClassesDirectory}"/> | ||
3519 | 347 | <pathelement path="src/test"/> | ||
3520 | 348 | <path refid="groovyMainClasses"/> | ||
3521 | 349 | <path refid="testLibPath"/> | ||
3522 | 350 | <pathelement path="${testClassesDirectory}"/> | ||
3523 | 351 | <path refid="coberturaPath"/> | ||
3524 | 352 | </classpath> | ||
3525 | 353 | <assertions> | ||
3526 | 354 | <enable/> | ||
3527 | 355 | </assertions> | ||
3528 | 356 | </junit> | ||
3529 | 357 | </target> | ||
3530 | 358 | |||
3531 | 359 | <condition property="_testAll_"> | ||
3532 | 360 | <and> | ||
3533 | 361 | <not> | ||
3534 | 362 | <istrue value="${_skipTests_}"/> | ||
3535 | 363 | </not> | ||
3536 | 364 | <not> | ||
3537 | 365 | <isset property="_testOne_"/> | ||
3538 | 366 | </not> | ||
3539 | 367 | </and> | ||
3540 | 368 | </condition> | ||
3541 | 369 | |||
3542 | 370 | <target name="-collectOptionalTests"> | ||
3543 | 371 | <condition property="networkTests.fileset.includes" value="groovy/grape/*Test.class" else="-nothing-"> | ||
3544 | 372 | <istrue value="${junit.network}"/> | ||
3545 | 373 | </condition> | ||
3546 | 374 | <fileset id="optionalTests.fileset" dir="${testClassesDirectory}" includes="${networkTests.fileset.includes}"/> | ||
3547 | 375 | </target> | ||
3548 | 376 | |||
3549 | 377 | <target name="-collect15tests" unless="groovy.build.vm6"> | ||
3550 | 378 | <fileset id="ubertests.fileset" dir="${testClassesDirectory}" includes="UberTest*.class" excludes="Uber*VM6.class,groovy/grape/*Test.class"/> | ||
3551 | 379 | </target> | ||
3552 | 380 | |||
3553 | 381 | <target name="-collect16tests" if="groovy.build.vm6"> | ||
3554 | 382 | <fileset id="ubertests.fileset" dir="${testClassesDirectory}" includes="UberTest*.class" excludes="groovy/grape/*Test.class"/> | ||
3555 | 383 | </target> | ||
3556 | 384 | |||
3557 | 385 | <target name="-testAll" if="_testAll_" depends="-collect15tests,-collect16tests,-collectOptionalTests,-initGroovyc"> | ||
3558 | 386 | <mkdir dir="${junitRawDirectory}"/> | ||
3559 | 387 | <junit printsummary="true" fork="true" includeantruntime="false" failureproperty="testFailed" maxmemory="${groovyJUnit_mx}" dir="${basedir}"> | ||
3560 | 388 | <jvmarg line="${junitJvmArgs}"/> | ||
3561 | 389 | <sysproperty key="apple.awt.UIElement" value="true"/> | ||
3562 | 390 | <!-- keeps the dock from showing the AWT startup --> | ||
3563 | 391 | <formatter type="xml"/> | ||
3564 | 392 | <formatter type="plain" unless="noTextReports"/> | ||
3565 | 393 | <batchtest todir="${junitRawDirectory}"> | ||
3566 | 394 | <fileset refid="ubertests.fileset"/> | ||
3567 | 395 | <fileset refid="optionalTests.fileset"/> | ||
3568 | 396 | </batchtest> | ||
3569 | 397 | <classpath> | ||
3570 | 398 | <pathelement path="${instrumentedClassesDirectory}"/> | ||
3571 | 399 | <pathelement path="src/test"/> | ||
3572 | 400 | <path refid="groovyMainClasses"/> | ||
3573 | 401 | <path refid="testLibPath"/> | ||
3574 | 402 | <pathelement path="${testClassesDirectory}"/> | ||
3575 | 403 | <path refid="coberturaPath"/> | ||
3576 | 404 | </classpath> | ||
3577 | 405 | <assertions> | ||
3578 | 406 | <enable/> | ||
3579 | 407 | </assertions> | ||
3580 | 408 | </junit> | ||
3581 | 409 | <mkdir dir="${junitReportsDirectory}"/> | ||
3582 | 410 | <junitreport tofile="${junitRawDirectory}/Results.xml"> | ||
3583 | 411 | <fileset dir="${junitRawDirectory}" includes="TEST-*.xml"/> | ||
3584 | 412 | <report format="frames" todir="${junitReportsDirectory}"/> | ||
3585 | 413 | </junitreport> | ||
3586 | 414 | </target> | ||
3587 | 415 | |||
3588 | 416 | <target name="-reportTestFailed" depends="-coverageReport" if="testFailed"> | ||
3589 | 417 | <fail message="Test failed, not processing further targets."/> | ||
3590 | 418 | </target> | ||
3591 | 419 | |||
3592 | 420 | <target name="-coverageInstrument" if="_forceCoverage_"> | ||
3593 | 421 | <mkdir dir="${instrumentedClassesDirectory}"/> | ||
3594 | 422 | <!--coberturaInstrument classesDirectory="${mainClassesDirectory}"/--> | ||
3595 | 423 | </target> | ||
3596 | 424 | |||
3597 | 425 | <target name="-coverageReport" depends="-initCoverage" if="_forceCoverage_"> | ||
3598 | 426 | <!--coberturaReport reportDirectory="${reportsDirectory}/cobertura" sourceDirectory="${mainSourceDirectory}"/--> | ||
3599 | 427 | </target> | ||
3600 | 428 | |||
3601 | 429 | <target name="-actuallyCreateJars" | ||
3602 | 430 | depends="-makeManifest,-initializeJars,-createBaseJar,-createEmbeddableJar" | ||
3603 | 431 | unless="testFailed"/> | ||
3604 | 432 | |||
3605 | 433 | <target name="-makeManifest"> | ||
3606 | 434 | <mkdir dir="${mainClassesDirectory}/META-INF"/> | ||
3607 | 435 | <copy todir="${mainClassesDirectory}/META-INF" file="LICENSE.txt"/> | ||
3608 | 436 | <makeManifest file="${mainClassesDirectory}/META-INF/MANIFEST.MF"/> | ||
3609 | 437 | </target> | ||
3610 | 438 | |||
3611 | 439 | <macrodef name="makeManifest"> | ||
3612 | 440 | <attribute name="file"/> | ||
3613 | 441 | <attribute name="bundleEnvironment" default="J2SE-1.5"/> | ||
3614 | 442 | <sequential> | ||
3615 | 443 | <manifest file="@{file}"> | ||
3616 | 444 | <attribute name="Built-By" value="${user.name}"/> | ||
3617 | 445 | <attribute name="Extension-Name" value="groovy"/> | ||
3618 | 446 | <attribute name="Specification-Title" value="Groovy: a powerful, dynamic language for the JVM"/> | ||
3619 | 447 | <attribute name="Specification-Version" value="${groovyVersion}"/> | ||
3620 | 448 | <attribute name="Specification-Vendor" value="The Codehaus"/> | ||
3621 | 449 | <attribute name="Implementation-Title" value="Groovy: a powerful, dynamic language for the JVM"/> | ||
3622 | 450 | <attribute name="Implementation-Version" value="${groovyVersion}"/> | ||
3623 | 451 | <attribute name="Implementation-Vendor" value="The Codehaus"/> | ||
3624 | 452 | <attribute name="Bundle-ManifestVersion" value="2" /> | ||
3625 | 453 | <attribute name="Bundle-Name" value="Groovy Runtime" /> | ||
3626 | 454 | <attribute name="Bundle-Description" value="Groovy Runtime" /> | ||
3627 | 455 | <attribute name="Bundle-Version" value="${groovyBundleVersion}" /> | ||
3628 | 456 | <attribute name="Bundle-Vendor" value="The Codehaus" /> | ||
3629 | 457 | <attribute name="Bundle-ClassPath" value="." /> | ||
3630 | 458 | <attribute name="Bundle-RequiredExecutionEnvironment" value="@{bundleEnvironment}" /> | ||
3631 | 459 | <attribute name="Eclipse-BuddyPolicy" value="dependent"/> | ||
3632 | 460 | <attribute name="Eclipse-LazyStart" value="true"/> | ||
3633 | 461 | <attribute name="DynamicImport-Package" value="*"/> | ||
3634 | 462 | </manifest> | ||
3635 | 463 | </sequential> | ||
3636 | 464 | </macrodef> | ||
3637 | 465 | |||
3638 | 466 | <target name="-includeResources" depends="-includeGroovyDocTemplates"> | ||
3639 | 467 | <copy todir="${mainClassesDirectory}"> | ||
3640 | 468 | <fileset dir="${mainSourceDirectory}"> | ||
3641 | 469 | <include name="META-INF/services/*"/> | ||
3642 | 470 | <include name="groovy/grape/*.xml"/> | ||
3643 | 471 | <include name="groovy/ui/*.properties"/> | ||
3644 | 472 | <include name="groovy/ui/**/*.png"/> | ||
3645 | 473 | <include name="groovy/inspect/swingui/AstBrowserProperties.groovy"/> | ||
3646 | 474 | <include name="org/codehaus/groovy/tools/shell/**/*.properties"/> | ||
3647 | 475 | <include name="org/codehaus/groovy/tools/shell/**/*.xml"/> | ||
3648 | 476 | <include name="org/codehaus/groovy/antlib.xml"/> | ||
3649 | 477 | </fileset> | ||
3650 | 478 | </copy> | ||
3651 | 479 | <antcall target="-includeReleaseInfo"/> | ||
3652 | 480 | </target> | ||
3653 | 481 | |||
3654 | 482 | <target name="-includeReleaseInfo"> | ||
3655 | 483 | <copy file="${mainSourceDirectory}/META-INF/groovy-release-info.properties" | ||
3656 | 484 | todir="${mainClassesDirectory}/META-INF" overwrite="true"> | ||
3657 | 485 | </copy> | ||
3658 | 486 | <tstamp> | ||
3659 | 487 | <format property="release.date" pattern="dd-MMM-yyyy"/> | ||
3660 | 488 | <format property="release.time" pattern="hh:mm aa"/> | ||
3661 | 489 | </tstamp> | ||
3662 | 490 | <replace file="${mainClassesDirectory}/META-INF/groovy-release-info.properties"> | ||
3663 | 491 | <replacefilter token="##ImplementationVersion##" value="${groovyVersion}"/> | ||
3664 | 492 | <replacefilter token="##BundleVersion##" value="${groovyBundleVersion}"/> | ||
3665 | 493 | <replacefilter token="##BuildDate##" value="${release.date}"/> | ||
3666 | 494 | <replacefilter token="##BuildTime##" value="${release.time}"/> | ||
3667 | 495 | </replace> | ||
3668 | 496 | </target> | ||
3669 | 497 | |||
3670 | 498 | <target name="-includeExamplesResources" depends="-includeGroovyDocTemplates"> | ||
3671 | 499 | <copy todir="${examplesClassesDirectory}"> | ||
3672 | 500 | <fileset dir="${examplesSourceDirectory}"> | ||
3673 | 501 | <include name="/swing/binding/caricature/resources/*.gif"/> | ||
3674 | 502 | </fileset> | ||
3675 | 503 | </copy> | ||
3676 | 504 | </target> | ||
3677 | 505 | |||
3678 | 506 | <target name="-includeGroovyDocTemplates"> | ||
3679 | 507 | <copy todir="${mainClassesDirectory}"> | ||
3680 | 508 | <fileset dir="${mainSourceDirectory}"> | ||
3681 | 509 | <include name="org/codehaus/groovy/tools/groovydoc/gstringTemplates/**/*.*"/> | ||
3682 | 510 | </fileset> | ||
3683 | 511 | <fileset dir="${toolsSourceDirectory}"> | ||
3684 | 512 | <include name="org/codehaus/groovy/tools/groovy.ico"/> | ||
3685 | 513 | </fileset> | ||
3686 | 514 | </copy> | ||
3687 | 515 | </target> | ||
3688 | 516 | |||
3689 | 517 | <target name="-initializeJars" depends="test"> | ||
3690 | 518 | <delete dir="${targetDistDirectory}" quiet="true"/> | ||
3691 | 519 | <mkdir dir="${targetDistDirectory}"/> | ||
3692 | 520 | </target> | ||
3693 | 521 | |||
3694 | 522 | <target name="-createBaseJar" unless="testFailed"> | ||
3695 | 523 | <jar destfile="${targetDistDirectory}/groovy.jar" basedir="${mainClassesDirectory}" | ||
3696 | 524 | excludes="*.groovy" manifest="${mainClassesDirectory}/META-INF/MANIFEST.MF"/> | ||
3697 | 525 | <jar destfile="${targetDistDirectory}/groovy-${groovyVersion}-sources.jar" basedir="${mainSourceDirectory}"/> | ||
3698 | 526 | </target> | ||
3699 | 527 | |||
3700 | 528 | <target name="-jarjarInit" unless="_skipEmbeddable_"> | ||
3701 | 529 | <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpathref="toolsPath"/> | ||
3702 | 530 | </target> | ||
3703 | 531 | |||
3704 | 532 | <target name="-createEmbeddableJar" depends="-jarjarInit,-actuallyCreateEmbeddableJar" unless="testFailed"/> | ||
3705 | 533 | |||
3706 | 534 | <target name="-actuallyCreateEmbeddableJar" unless="_skipEmbeddable_"> | ||
3707 | 535 | <delete dir="${stagingDirectory}" quiet="true"/> | ||
3708 | 536 | <mkdir dir="${stagingDirectory}"/> | ||
3709 | 537 | <unzip dest="${stagingDirectory}"> | ||
3710 | 538 | <fileset dir="/usr/share/java"> | ||
3711 | 539 | <include name="antlr.jar"/> | ||
3712 | 540 | <include name="asm3.jar"/> | ||
3713 | 541 | <include name="asm3-commons.jar"/> | ||
3714 | 542 | <include name="asm3-tree.jar"/> | ||
3715 | 543 | <include name="asm3-xml.jar"/> | ||
3716 | 544 | </fileset> | ||
3717 | 545 | </unzip> | ||
3718 | 546 | <unzip dest="${stagingDirectory}"> | ||
3719 | 547 | <fileset dir="${targetDistDirectory}"> | ||
3720 | 548 | <include name="groovy.jar"/> | ||
3721 | 549 | </fileset> | ||
3722 | 550 | </unzip> | ||
3723 | 551 | <copy toDir="${stagingDirectory}/META-INF"> | ||
3724 | 552 | <fileset dir="${basedir}/config/build"> | ||
3725 | 553 | <include name="*LICENSE.txt"/> | ||
3726 | 554 | </fileset> | ||
3727 | 555 | </copy> | ||
3728 | 556 | <!-- add commons-cli --> | ||
3729 | 557 | <unzip dest="${stagingDirectory}"> | ||
3730 | 558 | <patternset> | ||
3731 | 559 | <!-- no need for the manifest file, we have our own --> | ||
3732 | 560 | <exclude name="META-INF/MANIFEST.MF"/> | ||
3733 | 561 | </patternset> | ||
3734 | 562 | <globmapper from="META-INF/LICENSE.txt" to="META-INF/CLI-LICENSE.txt"/> | ||
3735 | 563 | <fileset dir="/usr/share/java"> | ||
3736 | 564 | <include name="commons-cli.jar"/> | ||
3737 | 565 | </fileset> | ||
3738 | 566 | </unzip> | ||
3739 | 567 | <makeManifest file="${stagingDirectory}/META-INF/MANIFEST.MF" /> | ||
3740 | 568 | <!-- TODO try to make use of jarjar keep ability --> | ||
3741 | 569 | <jarjar jarfile="${targetDistDirectory}/groovy-all.jar" | ||
3742 | 570 | manifest="${stagingDirectory}/META-INF/MANIFEST.MF"> | ||
3743 | 571 | <fileset dir="${stagingDirectory}" excludes="groovy/util/CliBuilder*.class,groovy/util/OptionAccessor*.class,org/codehaus/groovy/tools/shell/util/HelpFormatter*.class"/> | ||
3744 | 572 | <rule pattern="antlr.**" result="groovyjarjarantlr.@1"/> | ||
3745 | 573 | <rule pattern="org.objectweb.**" result="groovyjarjarasm.@1"/> | ||
3746 | 574 | <rule pattern="org.apache.commons.cli.**" result="groovyjarjarcommonscli.@1"/> | ||
3747 | 575 | </jarjar> | ||
3748 | 576 | <jar destfile="${targetDistDirectory}/groovy-all.jar" update="true" | ||
3749 | 577 | basedir="${stagingDirectory}" includes="groovy/util/CliBuilder*.class,groovy/util/OptionAccessor*.class,org/codehaus/groovy/tools/shell/util/HelpFormatter*.class"/> | ||
3750 | 578 | |||
3751 | 579 | <copy file="${targetDistDirectory}/groovy-${groovyVersion}-sources.jar" | ||
3752 | 580 | tofile="${targetDistDirectory}/groovy-all-${groovyVersion}-sources.jar"/> | ||
3753 | 581 | <delete dir="${stagingDirectory}" quiet="true"/> | ||
3754 | 582 | </target> | ||
3755 | 583 | |||
3756 | 584 | <target name="createJars" depends="-checkAntVersion,test,-actuallyCreateJars" | ||
3757 | 585 | description="Build Groovy and create the jarfiles."/> | ||
3758 | 586 | |||
3759 | 587 | <target name="updateJarsForOsgi" unless="_skipOsgi_"> | ||
3760 | 588 | <taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="/usr/share/java/bnd.jar"/> | ||
3761 | 589 | <copy todir="${targetDistDirectory}"> | ||
3762 | 590 | <fileset dir="config/bnd" includes="groovy*.bnd"/> | ||
3763 | 591 | <filterset> | ||
3764 | 592 | <filter token="GROOVY_BUNDLE_VERSION" value="${groovyBundleVersion}"/> | ||
3765 | 593 | </filterset> | ||
3766 | 594 | </copy> | ||
3767 | 595 | <property name="jarsToWrap" value="groovy.jar,groovy-all.jar" /> | ||
3768 | 596 | <bndwrap definitions="${targetDistDirectory}" output="${targetDistDirectory}" failok="true"> | ||
3769 | 597 | <fileset dir="${targetDistDirectory}" includes="${jarsToWrap}"/> | ||
3770 | 598 | </bndwrap> | ||
3771 | 599 | <delete dir="${targetDistDirectory}" includes="${jarsToWrap}"/> | ||
3772 | 600 | <move todir="${targetDistDirectory}"> | ||
3773 | 601 | <fileset dir="${targetDistDirectory}" includes="groovy*.bar"/> | ||
3774 | 602 | <globmapper from="groovy*.bar" to="groovy*-${groovyVersion}.jar"/> | ||
3775 | 603 | </move> | ||
3776 | 604 | <delete dir="${targetDistDirectory}" includes="groovy*.bnd"/> | ||
3777 | 605 | </target> | ||
3778 | 606 | |||
3779 | 607 | <target name="skipOsgi" if="_skipOsgi_"> | ||
3780 | 608 | <move todir="${targetDistDirectory}"> | ||
3781 | 609 | <fileset dir="${targetDistDirectory}" includes="groovy*.jar"/> | ||
3782 | 610 | <globmapper from="groovy*.jar" to="groovy*-${groovyVersion}.jar"/> | ||
3783 | 611 | </move> | ||
3784 | 612 | </target> | ||
3785 | 613 | |||
3786 | 614 | <target name="install" depends="createJars,updateJarsForOsgi,skipOsgi" unless="testFailed" | ||
3787 | 615 | description="Create an installation hierarchy in target/install."> | ||
3788 | 616 | |||
3789 | 617 | <!-- | ||
3790 | 618 | FIXME: It's not really a good idea to delete stuff, as it tends to negate Ant's (or other tools) | ||
3791 | 619 | ability to run faster incremental builds. | ||
3792 | 620 | --> | ||
3793 | 621 | <delete dir="${installDirectory}" quiet="true"/> | ||
3794 | 622 | <mkdir dir="${installDirectory}"/> | ||
3795 | 623 | |||
3796 | 624 | <!-- Install license files --> | ||
3797 | 625 | <copy todir="${installDirectory}"> | ||
3798 | 626 | <fileset dir="${basedir}"> | ||
3799 | 627 | <include name="LICENSE.txt"/> | ||
3800 | 628 | <include name="NOTICE.txt"/> | ||
3801 | 629 | </fileset> | ||
3802 | 630 | </copy> | ||
3803 | 631 | <unzip dest="${installDirectory}"> | ||
3804 | 632 | <patternset> | ||
3805 | 633 | <include name="META-INF/*-LICENSE.txt"/> | ||
3806 | 634 | </patternset> | ||
3807 | 635 | <mapper type="flatten"/> | ||
3808 | 636 | <fileset file="${targetDistDirectory}/groovy-all-${groovyVersion}.jar"/> | ||
3809 | 637 | </unzip> | ||
3810 | 638 | <fixcrlf srcdir="${installDirectory}" eol="crlf" includes="*.txt"/> | ||
3811 | 639 | |||
3812 | 640 | <!-- Install generated artifacts and runtime dependencies --> | ||
3813 | 641 | <mkdir dir="${installDirectory}/lib"/> | ||
3814 | 642 | <copy todir="${installDirectory}/lib"> | ||
3815 | 643 | <fileset dir="${targetDistDirectory}" includes="groovy-${groovyVersion}.jar"/> | ||
3816 | 644 | </copy> | ||
3817 | 645 | |||
3818 | 646 | <!-- Install the embeddable bits --> | ||
3819 | 647 | <mkdir dir="${installDirectory}/embeddable"/> | ||
3820 | 648 | <copy todir="${installDirectory}/embeddable"> | ||
3821 | 649 | <fileset dir="${targetDistDirectory}" includes="groovy-all-${groovyVersion}.jar"/> | ||
3822 | 650 | </copy> | ||
3823 | 651 | |||
3824 | 652 | <!-- Install configuration files --> | ||
3825 | 653 | <mkdir dir="${installDirectory}/conf"/> | ||
3826 | 654 | <copy toDir="${installDirectory}/conf"> | ||
3827 | 655 | <fileset dir="${sourceDirectory}/conf" includes="*"/> | ||
3828 | 656 | </copy> | ||
3829 | 657 | |||
3830 | 658 | <!-- Install scripts --> | ||
3831 | 659 | <mkdir dir="${installDirectory}/bin"/> | ||
3832 | 660 | <copy toDir="${installDirectory}/bin"> | ||
3833 | 661 | <fileset dir="${sourceDirectory}/bin" includes="*"/> | ||
3834 | 662 | <filterset> | ||
3835 | 663 | <filter token="GROOVYJAR" value="groovy-${groovyVersion}.jar"/> | ||
3836 | 664 | </filterset> | ||
3837 | 665 | </copy> | ||
3838 | 666 | |||
3839 | 667 | <!-- Tweak scripts for platform compatibility --> | ||
3840 | 668 | <fixcrlf srcdir="${installDirectory}/bin" eol="lf" excludes="*.bat"/> | ||
3841 | 669 | <fixcrlf srcdir="${installDirectory}/bin" eol="crlf" includes="*.bat"/> | ||
3842 | 670 | <chmod perm="ugo+x"> | ||
3843 | 671 | <fileset dir="${installDirectory}/bin" includes="*,*.*"/> | ||
3844 | 672 | </chmod> | ||
3845 | 673 | </target> | ||
3846 | 674 | |||
3847 | 675 | <target name="checkstyle" depends="-init,-initializeReports" | ||
3848 | 676 | description="Create the code style reports."> | ||
3849 | 677 | <checkAndReport | ||
3850 | 678 | reportDirectory="${reportsDirectory}/checkstyle" | ||
3851 | 679 | sourceDirectory="${mainSourceDirectory}" | ||
3852 | 680 | excludes="org/codehaus/groovy/antlr/parser/*,org/codehaus/groovy/antlr/java/*,org/codehaus/groovy/syntax/Types.java"> | ||
3853 | 681 | <path> | ||
3854 | 682 | <pathelement path="${mainClassesDirectory}"/> | ||
3855 | 683 | <path refid="testLibPath"/> | ||
3856 | 684 | </path> | ||
3857 | 685 | </checkAndReport> | ||
3858 | 686 | </target> | ||
3859 | 687 | |||
3860 | 688 | <target name="-compileTools" depends="-initGroovyc,compileMain"> | ||
3861 | 689 | <groovyc srcdir="${toolsSourceDirectory}" destdir="${toolsClassesDirectory}" fork="true"> | ||
3862 | 690 | <classpath> | ||
3863 | 691 | <path refid="toolsPath"/> | ||
3864 | 692 | <pathelement path="${mainClassesDirectory}"/> | ||
3865 | 693 | <path refid="compilePath"/> | ||
3866 | 694 | </classpath> | ||
3867 | 695 | </groovyc> | ||
3868 | 696 | <copy todir="${toolsClassesDirectory}"> | ||
3869 | 697 | <fileset dir="${toolsSourceDirectory}"> | ||
3870 | 698 | <include name="**/*.html"/> | ||
3871 | 699 | </fileset> | ||
3872 | 700 | </copy> | ||
3873 | 701 | </target> | ||
3874 | 702 | |||
3875 | 703 | <target name="cruiseReportExtras"> | ||
3876 | 704 | <mkdir dir="${cruiseReportRootDirectory}"/> | ||
3877 | 705 | <copy todir="${cruiseReportRootDirectory}"> | ||
3878 | 706 | <fileset dir="cruise/html"/> | ||
3879 | 707 | </copy> | ||
3880 | 708 | </target> | ||
3881 | 709 | |||
3882 | 710 | <target name="cruiseInit"> | ||
3883 | 711 | <property name="noTextReports" value="true"/> | ||
3884 | 712 | <property name="forceCoverage" value="true"/> | ||
3885 | 713 | <delete dir="${reportsDirectory}" quiet="true" failonerror="false"/> | ||
3886 | 714 | <delete dir="${junitRawDirectory}" quiet="true" failonerror="false"/> | ||
3887 | 715 | </target> | ||
3888 | 716 | |||
3889 | 717 | <target name="cruise" depends="cruiseInit,fulldist,cruiseReportExtras"/> | ||
3890 | 718 | |||
3891 | 719 | <target name="-docInit"> | ||
3892 | 720 | <mkdir dir="${docsDirectory}"/> | ||
3893 | 721 | <property name="docFooter" value="Copyright &copy; 2003-2009 The Codehaus. All rights reserved."/> | ||
3894 | 722 | <property name="title" value="Groovy ${groovyVersion}"/> | ||
3895 | 723 | </target> | ||
3896 | 724 | |||
3897 | 725 | <target name="doc" depends="javadoc, groovydoc" description="Create the documentation."/> | ||
3898 | 726 | |||
3899 | 727 | <target name="javadoc" depends="-docInit,-jvm14BuildWarning,ensureGrammars" | ||
3900 | 728 | description="Create the javadoc documentation."> | ||
3901 | 729 | <javadoc destdir="${docsDirectory}/api" author="true" version="true" | ||
3902 | 730 | windowtitle="${title}" doctitle="${title}" | ||
3903 | 731 | encoding="ISO-8859-1" useexternalfile="true" source="1.5" | ||
3904 | 732 | footer="${docFooter}" | ||
3905 | 733 | maxmemory="${javaDoc_mx}" | ||
3906 | 734 | > | ||
3907 | 735 | <classpath> | ||
3908 | 736 | <path path="${mainClassesDirectory}"/> | ||
3909 | 737 | <path refid="compilePath"/> | ||
3910 | 738 | </classpath> | ||
3911 | 739 | <fileset dir="${mainSourceDirectory}" includes="**/*.java"/> | ||
3912 | 740 | <link href="http://java.sun.com/j2se/1.5.0/docs/api"/> | ||
3913 | 741 | <link href="http://www.dpml.net/api/ant/1.7.0"/> | ||
3914 | 742 | <link href="http://junit.sourceforge.net/junit3.8.1/javadoc/"/> | ||
3915 | 743 | <link href="http://java.sun.com/j2ee/1.4/docs/api"/> | ||
3916 | 744 | <link href="http://www.antlr2.org/javadoc"/> | ||
3917 | 745 | </javadoc> | ||
3918 | 746 | <mkdir dir="${targetDistDirectory}"/> | ||
3919 | 747 | <jar basedir="${docsDirectory}/api" destfile="${targetDistDirectory}/groovy-${groovyVersion}-javadoc.jar"/> | ||
3920 | 748 | <copy toFile="${targetDistDirectory}/groovy-all-${groovyVersion}-javadoc.jar"> | ||
3921 | 749 | <fileset file="${targetDistDirectory}/groovy-${groovyVersion}-javadoc.jar"/> | ||
3922 | 750 | </copy> | ||
3923 | 751 | </target> | ||
3924 | 752 | |||
3925 | 753 | <target name="groovydoc"> | ||
3926 | 754 | <path id="groovydocpath"> | ||
3927 | 755 | <path path="${mainClassesDirectory}"/> | ||
3928 | 756 | <path path="${java.class.path}"/> | ||
3929 | 757 | </path> | ||
3930 | 758 | <antforked target="realgroovydoc" maxmemory="${groovyDoc_mx}" classpathref="groovydocpath"/> | ||
3931 | 759 | </target> | ||
3932 | 760 | |||
3933 | 761 | <target name="realgroovydoc" depends="-docInit,-includeGroovyDocTemplates,docGDK"> | ||
3934 | 762 | <taskdef name="groovydoc" classname="org.codehaus.groovy.ant.Groovydoc"> | ||
3935 | 763 | <classpath> | ||
3936 | 764 | <path path="${mainClassesDirectory}"/> | ||
3937 | 765 | <path refid="compilePath"/> | ||
3938 | 766 | </classpath> | ||
3939 | 767 | </taskdef> | ||
3940 | 768 | <groovydoc | ||
3941 | 769 | destdir="${docsDirectory}/gapi" | ||
3942 | 770 | sourcepath="${mainSourceDirectory}" | ||
3943 | 771 | packagenames="**.*" | ||
3944 | 772 | use="true" | ||
3945 | 773 | windowtitle="${title}" | ||
3946 | 774 | doctitle="${title}" | ||
3947 | 775 | header="${title}" | ||
3948 | 776 | footer="${docFooter}" | ||
3949 | 777 | overview="src/main/overview.html" | ||
3950 | 778 | private="false"> | ||
3951 | 779 | <link packages="java.,org.xml.,javax.,org.xml." href="http://java.sun.com/j2se/1.5.0/docs/api"/> | ||
3952 | 780 | <link packages="org.apache.ant.,org.apache.tools.ant." href="http://www.dpml.net/api/ant/1.7.0"/> | ||
3953 | 781 | <link packages="org.junit.,junit.framework." href="http://junit.sourceforge.net/junit3.8.1/javadoc/"/> | ||
3954 | 782 | <link packages="antlr." href="http://www.antlr2.org/javadoc/"/> | ||
3955 | 783 | <link packages="javax.servlet.,javax.management." href="http://java.sun.com/j2ee/1.4/docs/api"/> | ||
3956 | 784 | <link packages="groovy.,org.codehaus.groovy." href="http://groovy.codehaus.org/gapi/"/> | ||
3957 | 785 | </groovydoc> | ||
3958 | 786 | </target> | ||
3959 | 787 | |||
3960 | 788 | <target name="docGDK" depends="-compileTools" description="Create the GDK documentation"> | ||
3961 | 789 | <java classname="org.codehaus.groovy.tools.DocGenerator" fork="yes" failonerror="true"> | ||
3962 | 790 | <classpath> | ||
3963 | 791 | <pathelement path="${toolsClassesDirectory}"/> | ||
3964 | 792 | <path refid="toolsPath"/> | ||
3965 | 793 | <pathelement path="${mainClassesDirectory}"/> | ||
3966 | 794 | </classpath> | ||
3967 | 795 | <arg value="org.codehaus.groovy.runtime.DefaultGroovyMethods"/> | ||
3968 | 796 | <arg value="org.codehaus.groovy.runtime.DefaultGroovyStaticMethods"/> | ||
3969 | 797 | <arg value="org.codehaus.groovy.vmplugin.v5.PluginDefaultGroovyMethods"/> | ||
3970 | 798 | </java> | ||
3971 | 799 | <copy todir="target/html/groovy-jdk" file="src/tools/org/codehaus/groovy/tools/groovy.ico"/> | ||
3972 | 800 | <copy todir="target/html/groovy-jdk" file="src/tools/org/codehaus/groovy/tools/stylesheet.css"/> | ||
3973 | 801 | </target> | ||
3974 | 802 | |||
3975 | 803 | <target name="clean" description="Clean up build artifacts."> | ||
3976 | 804 | <delete dir="${targetDirectory}" quiet="true"/> | ||
3977 | 805 | <delete file="cobertura.ser" quiet="true" failonerror="false"/> | ||
3978 | 806 | <delete quiet="true"> | ||
3979 | 807 | <fileset dir="." includes="**/*~"/> | ||
3980 | 808 | <fileset dir="${groovyParserDirectory}" includes="Groovy*.*"/> | ||
3981 | 809 | <fileset dir="${javaParserDirectory}" includes="JavaLexer.java,JavaRecognizer.java,JavaTokenTypes.java,JavaTokenTypes.txt,*.smap"/> | ||
3982 | 810 | </delete> | ||
3983 | 811 | </target> | ||
3984 | 812 | |||
3985 | 813 | <target name="deploy" depends="install,doc" | ||
3986 | 814 | description="Deploy jars to maven repository."> | ||
3987 | 815 | <mavenDeploy version="${groovyVersion}" prefix="groovy"/> | ||
3988 | 816 | <mavenDeploy version="${groovyVersion}" prefix="groovy-all"/> | ||
3989 | 817 | </target> | ||
3990 | 818 | |||
3991 | 819 | <target name="installRepo" depends="install,doc" | ||
3992 | 820 | description="Deploy artifacts to local maven repository."> | ||
3993 | 821 | <mavenInstallRepo version="${groovyVersion}" prefix="groovy"/> | ||
3994 | 822 | <mavenInstallRepo version="${groovyVersion}" prefix="groovy-all"/> | ||
3995 | 823 | </target> | ||
3996 | 824 | |||
3997 | 825 | <target name="fulldist" depends="dist,compileExamples,checkstyle" description="dist plus examples plus checkstyle"/> | ||
3998 | 826 | |||
3999 | 827 | <target name="dist" depends="install,doc" description="Create everything needed for a distribution."> | ||
4000 | 828 | <zip destfile="${targetDistDirectory}/groovy-binary-${groovyVersion}.zip" | ||
4001 | 829 | comment="The Groovy ${groovyVersion} binary distribution."> | ||
4002 | 830 | |||
4003 | 831 | <!-- Make unix scripts executable --> | ||
4004 | 832 | <zipfileset dir="${installDirectory}" prefix="groovy-${groovyVersion}" filemode="775"> | ||
4005 | 833 | <include name="bin/*"/> | ||
4006 | 834 | <exclude name="bin/*.*"/> | ||
4007 | 835 | <exclude name="bin/startGroovy*"/> | ||
4008 | 836 | </zipfileset> | ||
4009 | 837 | |||
4010 | 838 | <!-- Include the other scripts as is --> | ||
4011 | 839 | <zipfileset dir="${installDirectory}" prefix="groovy-${groovyVersion}"> | ||
4012 | 840 | <include name="bin/*.*"/> | ||
4013 | 841 | <include name="bin/startGroovy*"/> | ||
4014 | 842 | </zipfileset> | ||
4015 | 843 | |||
4016 | 844 | <!-- Include everything else as is too --> | ||
4017 | 845 | <zipfileset dir="${installDirectory}" prefix="groovy-${groovyVersion}"> | ||
4018 | 846 | <exclude name="bin/**"/> | ||
4019 | 847 | <include name="**"/> | ||
4020 | 848 | </zipfileset> | ||
4021 | 849 | </zip> | ||
4022 | 850 | |||
4023 | 851 | <zip destfile="${targetDistDirectory}/groovy-docs-${groovyVersion}.zip" | ||
4024 | 852 | comment="The Groovy ${groovyVersion} documentation distribution."> | ||
4025 | 853 | <zipfileset dir="${wikiPdfDirectory}" includes="wiki-snapshot.pdf" prefix="groovy-${groovyVersion}/pdf"/> | ||
4026 | 854 | <zipfileset dir="${docsDirectory}" prefix="groovy-${groovyVersion}/html"/> | ||
4027 | 855 | </zip> | ||
4028 | 856 | |||
4029 | 857 | <zip destfile="${targetDistDirectory}/groovy-src-${groovyVersion}.zip" | ||
4030 | 858 | comment="The Groovy ${groovyVersion} source distribution."> | ||
4031 | 859 | <zipfileset dir="${basedir}" prefix="groovy-${groovyVersion}"> | ||
4032 | 860 | <!-- Exclude generated bits as well as any other bits that shouldn't make it in --> | ||
4033 | 861 | <exclude name="${targetDirectory}/**"/> | ||
4034 | 862 | <exclude name="classes/**"/> | ||
4035 | 863 | <exclude name="cruise/**"/> | ||
4036 | 864 | <exclude name=".clover/*"/> | ||
4037 | 865 | <exclude name="local.build.properties"/> | ||
4038 | 866 | <exclude name="cobertura.ser"/> | ||
4039 | 867 | <exclude name="junitvmwatcher*.properties"/> | ||
4040 | 868 | </zipfileset> | ||
4041 | 869 | </zip> | ||
4042 | 870 | </target> | ||
4043 | 871 | |||
4044 | 872 | </project> | ||
4045 | 873 | 0 | ||
4046 | === removed directory '.pc/start-scripts.patch' | |||
4047 | === removed directory '.pc/start-scripts.patch/src' | |||
4048 | === removed directory '.pc/start-scripts.patch/src/bin' | |||
4049 | === removed file '.pc/start-scripts.patch/src/bin/startGroovy' | |||
4050 | --- .pc/start-scripts.patch/src/bin/startGroovy 2010-02-26 16:39:51 +0000 | |||
4051 | +++ .pc/start-scripts.patch/src/bin/startGroovy 1970-01-01 00:00:00 +0000 | |||
4052 | @@ -1,272 +0,0 @@ | |||
4053 | 1 | # -*- mode:sh -*- | ||
4054 | 2 | |||
4055 | 3 | ############################################################################## | ||
4056 | 4 | ## ## | ||
4057 | 5 | ## Groovy JVM Bootstrap for UN*X ## | ||
4058 | 6 | ## ## | ||
4059 | 7 | ############################################################################## | ||
4060 | 8 | |||
4061 | 9 | ## | ||
4062 | 10 | ## $Revision: 14460 $ | ||
4063 | 11 | ## $Date: 2008-12-17 12:36:49 +0100 (Mi, 17. Dez 2008) $ | ||
4064 | 12 | ## | ||
4065 | 13 | |||
4066 | 14 | PROGNAME=`basename "$0"` | ||
4067 | 15 | |||
4068 | 16 | #DIRNAME=`dirname "$0"` | ||
4069 | 17 | |||
4070 | 18 | SCRIPT_PATH="$0" | ||
4071 | 19 | |||
4072 | 20 | # Use the maximum available, or set MAX_FD != -1 to use that value. | ||
4073 | 21 | MAX_FD="maximum" | ||
4074 | 22 | |||
4075 | 23 | warn ( ) { | ||
4076 | 24 | echo "${PROGNAME}: $*" | ||
4077 | 25 | } | ||
4078 | 26 | |||
4079 | 27 | die ( ) { | ||
4080 | 28 | warn "$*" | ||
4081 | 29 | exit 1 | ||
4082 | 30 | } | ||
4083 | 31 | |||
4084 | 32 | earlyInit ( ) { | ||
4085 | 33 | return | ||
4086 | 34 | } | ||
4087 | 35 | |||
4088 | 36 | lateInit ( ) { | ||
4089 | 37 | return | ||
4090 | 38 | } | ||
4091 | 39 | |||
4092 | 40 | GROOVY_STARTUP="$HOME/.groovy/startup" | ||
4093 | 41 | if [ -r "$GROOVY_STARTUP" ] ; then | ||
4094 | 42 | . "$GROOVY_STARTUP" | ||
4095 | 43 | fi | ||
4096 | 44 | |||
4097 | 45 | earlyInit | ||
4098 | 46 | |||
4099 | 47 | # OS specific support (must be 'true' or 'false'). | ||
4100 | 48 | cygwin=false | ||
4101 | 49 | msys=false | ||
4102 | 50 | darwin=false | ||
4103 | 51 | case "`uname`" in | ||
4104 | 52 | CYGWIN* ) | ||
4105 | 53 | cygwin=true | ||
4106 | 54 | ;; | ||
4107 | 55 | Darwin* ) | ||
4108 | 56 | darwin=true | ||
4109 | 57 | ;; | ||
4110 | 58 | MINGW* ) | ||
4111 | 59 | msys=true | ||
4112 | 60 | ;; | ||
4113 | 61 | esac | ||
4114 | 62 | |||
4115 | 63 | if [ "$1" = "-cp" -o "$1" = "-classpath" ] ; then | ||
4116 | 64 | CP=$2 | ||
4117 | 65 | shift 2 | ||
4118 | 66 | fi | ||
4119 | 67 | |||
4120 | 68 | # Attempt to set JAVA_HOME if it's not already set. | ||
4121 | 69 | if [ -z "$JAVA_HOME" ] ; then | ||
4122 | 70 | if $darwin ; then | ||
4123 | 71 | [ -z "$JAVA_HOME" -a -d "/Library/Java/Home" ] && export JAVA_HOME="/Library/Java/Home" | ||
4124 | 72 | [ -z "$JAVA_HOME" -a -d "/System/Library/Frameworks/JavaVM.framework/Home" ] && export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home" | ||
4125 | 73 | else | ||
4126 | 74 | javaExecutable="`which javac`" | ||
4127 | 75 | [ -z "$javaExecutable" -o "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ] && die "JAVA_HOME not set and cannot find javac to deduce location, please set JAVA_HOME." | ||
4128 | 76 | # readlink(1) is not available as standard on Solaris 10. | ||
4129 | 77 | readLink=`which readlink` | ||
4130 | 78 | [ `expr "$readLink" : '\([^ ]*\)'` = "no" ] && die "JAVA_HOME not set and readlink not available, please set JAVA_HOME." | ||
4131 | 79 | javaExecutable="`readlink -f \"$javaExecutable\"`" | ||
4132 | 80 | javaHome="`dirname \"$javaExecutable\"`" | ||
4133 | 81 | javaHome=`expr "$javaHome" : '\(.*\)/bin'` | ||
4134 | 82 | JAVA_HOME="$javaHome" | ||
4135 | 83 | export JAVA_HOME | ||
4136 | 84 | |||
4137 | 85 | fi | ||
4138 | 86 | fi | ||
4139 | 87 | |||
4140 | 88 | # For Cygwin, ensure paths are in UNIX format before anything is touched. | ||
4141 | 89 | if $cygwin ; then | ||
4142 | 90 | [ -n "$GROOVY_HOME" ] && GROOVY_HOME=`cygpath --unix "$GROOVY_HOME"` | ||
4143 | 91 | [ -n "$JAVACMD" ] && JAVACMD=`cygpath --unix "$JAVACMD"` | ||
4144 | 92 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` | ||
4145 | 93 | [ -n "$CP" ] && CP=`cygpath --path --unix "$CP"` | ||
4146 | 94 | else | ||
4147 | 95 | if [ -n "$GROOVY_HOME" -a `expr "$GROOVY_HOME":'\/$'` ] ; then | ||
4148 | 96 | GROOVY_HOME=`echo $GROOVY_HOME | sed -e 's/\/$//'` | ||
4149 | 97 | fi | ||
4150 | 98 | fi | ||
4151 | 99 | |||
4152 | 100 | # For MSYS, ensure paths are in appropriate format. | ||
4153 | 101 | if $msys | ||
4154 | 102 | then | ||
4155 | 103 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`( cd "$JAVA_HOME" ; pwd )` | ||
4156 | 104 | fi | ||
4157 | 105 | |||
4158 | 106 | # Attempt to set GROOVY_HOME if it is not already set. | ||
4159 | 107 | if [ -z "$GROOVY_HOME" -o ! -d "$GROOVY_HOME" ] ; then | ||
4160 | 108 | # Resolve links: $0 may be a link to groovy's home. | ||
4161 | 109 | PRG="$0" | ||
4162 | 110 | # Need this for relative symlinks. | ||
4163 | 111 | while [ -h "$PRG" ] ; do | ||
4164 | 112 | ls=`ls -ld "$PRG"` | ||
4165 | 113 | link=`expr "$ls" : '.*-> \(.*\)$'` | ||
4166 | 114 | if expr "$link" : '/.*' > /dev/null; then | ||
4167 | 115 | PRG="$link" | ||
4168 | 116 | else | ||
4169 | 117 | PRG=`dirname "$PRG"`"/$link" | ||
4170 | 118 | fi | ||
4171 | 119 | done | ||
4172 | 120 | SAVED="`pwd`" | ||
4173 | 121 | cd "`dirname \"$PRG\"`/.." | ||
4174 | 122 | GROOVY_HOME="`pwd -P`" | ||
4175 | 123 | cd "$SAVED" | ||
4176 | 124 | fi | ||
4177 | 125 | |||
4178 | 126 | # Set the default Groovy config if no specific one is mentioned. | ||
4179 | 127 | if [ -z "$GROOVY_CONF" ] ; then | ||
4180 | 128 | GROOVY_CONF="$GROOVY_HOME/conf/groovy-starter.conf" | ||
4181 | 129 | fi | ||
4182 | 130 | STARTER_CLASSPATH="$GROOVY_HOME/lib/@GROOVYJAR@" | ||
4183 | 131 | |||
4184 | 132 | # Create the final classpath. Setting a classpath using the -cp or -classpath option means not to use the | ||
4185 | 133 | # global classpath. Groovy behaves then the same as the java interpreter | ||
4186 | 134 | if [ -n "$CP" ] ; then | ||
4187 | 135 | CP="$CP":. | ||
4188 | 136 | elif [ -n "$CLASSPATH" ] ; then | ||
4189 | 137 | CP="$CLASSPATH":. | ||
4190 | 138 | else | ||
4191 | 139 | CP=. | ||
4192 | 140 | fi | ||
4193 | 141 | |||
4194 | 142 | # Determine the Java command to use to start the JVM. | ||
4195 | 143 | if [ -z "$JAVACMD" ] ; then | ||
4196 | 144 | if [ -n "$JAVA_HOME" ] ; then | ||
4197 | 145 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then | ||
4198 | 146 | # IBM's JDK on AIX uses strange locations for the executables | ||
4199 | 147 | JAVACMD="$JAVA_HOME/jre/sh/java" | ||
4200 | 148 | else | ||
4201 | 149 | JAVACMD="$JAVA_HOME/bin/java" | ||
4202 | 150 | fi | ||
4203 | 151 | else | ||
4204 | 152 | JAVACMD="java" | ||
4205 | 153 | fi | ||
4206 | 154 | fi | ||
4207 | 155 | if [ ! -x "$JAVACMD" ] ; then | ||
4208 | 156 | die "JAVA_HOME is not defined correctly, can not execute: $JAVACMD" | ||
4209 | 157 | fi | ||
4210 | 158 | if [ -z "$JAVA_HOME" ] ; then | ||
4211 | 159 | warn "JAVA_HOME environment variable is not set" | ||
4212 | 160 | fi | ||
4213 | 161 | |||
4214 | 162 | # Increase the maximum file descriptors if we can. | ||
4215 | 163 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then | ||
4216 | 164 | MAX_FD_LIMIT=`ulimit -H -n` | ||
4217 | 165 | if [ $? -eq 0 ] ; then | ||
4218 | 166 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then | ||
4219 | 167 | MAX_FD="$MAX_FD_LIMIT" | ||
4220 | 168 | fi | ||
4221 | 169 | ulimit -n $MAX_FD | ||
4222 | 170 | if [ $? -ne 0 ] ; then | ||
4223 | 171 | warn "Could not set maximum file descriptor limit: $MAX_FD" | ||
4224 | 172 | fi | ||
4225 | 173 | else | ||
4226 | 174 | warn "Could not query businessSystem maximum file descriptor limit: $MAX_FD_LIMIT" | ||
4227 | 175 | fi | ||
4228 | 176 | fi | ||
4229 | 177 | |||
4230 | 178 | # Setup Profiler | ||
4231 | 179 | useprofiler=false | ||
4232 | 180 | if [ "$PROFILER" != "" ] ; then | ||
4233 | 181 | if [ -r "$PROFILER" ] ; then | ||
4234 | 182 | . $PROFILER | ||
4235 | 183 | useprofiler=true | ||
4236 | 184 | else | ||
4237 | 185 | die "Profiler file not found: $PROFILER" | ||
4238 | 186 | fi | ||
4239 | 187 | fi | ||
4240 | 188 | |||
4241 | 189 | # For Darwin, use classes.jar for TOOLS_JAR | ||
4242 | 190 | TOOLS_JAR="$JAVA_HOME/lib/tools.jar" | ||
4243 | 191 | #if $darwin; then | ||
4244 | 192 | # TOOLS_JAR="/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes/classes.jar" | ||
4245 | 193 | #fi | ||
4246 | 194 | |||
4247 | 195 | # For Darwin, add GROOVY_APP_NAME to the JAVA_OPTS as -Xdock:name | ||
4248 | 196 | if $darwin; then | ||
4249 | 197 | JAVA_OPTS="$JAVA_OPTS -Xdock:name=$GROOVY_APP_NAME" | ||
4250 | 198 | # we may also want to set -Xdock:image | ||
4251 | 199 | fi | ||
4252 | 200 | |||
4253 | 201 | # For Cygwin, switch paths to Windows format before running java | ||
4254 | 202 | if $cygwin ; then | ||
4255 | 203 | GROOVY_HOME=`cygpath --mixed "$GROOVY_HOME"` | ||
4256 | 204 | JAVA_HOME=`cygpath --mixed "$JAVA_HOME"` | ||
4257 | 205 | GROOVY_CONF=`cygpath --mixed "$GROOVY_CONF"` | ||
4258 | 206 | CP=`cygpath --path --mixed "$CP"` | ||
4259 | 207 | TOOLS_JAR=`cygpath --mixed "$TOOLS_JAR"` | ||
4260 | 208 | STARTER_CLASSPATH=`cygpath --path --mixed "$STARTER_CLASSPATH"` | ||
4261 | 209 | |||
4262 | 210 | # We build the pattern for arguments to be converted via cygpath | ||
4263 | 211 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` | ||
4264 | 212 | SEP="" | ||
4265 | 213 | for dir in $ROOTDIRSRAW ; do | ||
4266 | 214 | ROOTDIRS="$ROOTDIRS$SEP$dir" | ||
4267 | 215 | SEP="|" | ||
4268 | 216 | done | ||
4269 | 217 | OURCYGPATTERN="(^($ROOTDIRS))" | ||
4270 | 218 | # Add a user-defined pattern to the cygpath arguments | ||
4271 | 219 | if [ "$GROOVY_CYGPATTERN" != "" ] ; then | ||
4272 | 220 | OURCYGPATTERN="$OURCYGPATTERN|($GROOVY_CYGPATTERN)" | ||
4273 | 221 | fi | ||
4274 | 222 | # Now convert the arguments - kludge to limit ourselves to /bin/sh | ||
4275 | 223 | i=0 | ||
4276 | 224 | for arg in "$@" ; do | ||
4277 | 225 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` | ||
4278 | 226 | if [ $CHECK -ne 0 ] ; then | ||
4279 | 227 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` | ||
4280 | 228 | else | ||
4281 | 229 | eval `echo args$i`="\"$arg\"" | ||
4282 | 230 | fi | ||
4283 | 231 | i=`expr $i + 1` | ||
4284 | 232 | done | ||
4285 | 233 | case $i in | ||
4286 | 234 | 0) set -- ;; | ||
4287 | 235 | 1) set -- "$args0" ;; | ||
4288 | 236 | 2) set -- "$args0" "$args1" ;; | ||
4289 | 237 | 3) set -- "$args0" "$args1" "$args2" ;; | ||
4290 | 238 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;; | ||
4291 | 239 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; | ||
4292 | 240 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; | ||
4293 | 241 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; | ||
4294 | 242 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; | ||
4295 | 243 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; | ||
4296 | 244 | esac | ||
4297 | 245 | |||
4298 | 246 | fi | ||
4299 | 247 | |||
4300 | 248 | startGroovy ( ) { | ||
4301 | 249 | CLASS=$1 | ||
4302 | 250 | shift | ||
4303 | 251 | # Start the Profiler or the JVM | ||
4304 | 252 | if $useprofiler ; then | ||
4305 | 253 | runProfiler | ||
4306 | 254 | else | ||
4307 | 255 | exec "$JAVACMD" $JAVA_OPTS \ | ||
4308 | 256 | -classpath "$STARTER_CLASSPATH" \ | ||
4309 | 257 | -Dscript.name="$SCRIPT_PATH" \ | ||
4310 | 258 | -Dprogram.name="$PROGNAME" \ | ||
4311 | 259 | -Dgroovy.starter.conf="$GROOVY_CONF" \ | ||
4312 | 260 | -Dgroovy.home="$GROOVY_HOME" \ | ||
4313 | 261 | -Dtools.jar="$TOOLS_JAR" \ | ||
4314 | 262 | $STARTER_MAIN_CLASS \ | ||
4315 | 263 | --main $CLASS \ | ||
4316 | 264 | --conf "$GROOVY_CONF" \ | ||
4317 | 265 | --classpath "$CP" \ | ||
4318 | 266 | "$@" | ||
4319 | 267 | fi | ||
4320 | 268 | } | ||
4321 | 269 | |||
4322 | 270 | STARTER_MAIN_CLASS=org.codehaus.groovy.tools.GroovyStarter | ||
4323 | 271 | |||
4324 | 272 | lateInit | ||
4325 | 273 | 0 | ||
4326 | === modified file 'build.properties' | |||
4327 | --- build.properties 2010-06-09 11:11:04 +0000 | |||
4328 | +++ build.properties 2011-02-24 17:57:34 +0000 | |||
4329 | @@ -1,8 +1,6 @@ | |||
4335 | 1 | groovyVersion = 1.7.0 | 1 | groovyVersion = 1.7.4 |
4336 | 2 | groovyBundleVersion = 1.7.0 | 2 | # bundle version format: major('.'minor('.'micro('.'qualifier)?)?)? (first 3 only digits) |
4337 | 3 | 3 | groovyBundleVersion = 1.7.4 | |
4333 | 4 | # uncomment the following line to enable java5 elements in the build | ||
4334 | 5 | # groovy.build.vm5=true | ||
4338 | 6 | 4 | ||
4339 | 7 | # Many people have reported problems testing UberTestCaseGroovySourceSubPackages, others have no difficulties with the default | 5 | # Many people have reported problems testing UberTestCaseGroovySourceSubPackages, others have no difficulties with the default |
4340 | 8 | # values ant junit task uses. The decision has been taken to provide the values to try and cause the least | 6 | # values ant junit task uses. The decision has been taken to provide the values to try and cause the least |
4341 | 9 | 7 | ||
4342 | === modified file 'build.xml' | |||
4343 | --- build.xml 2010-06-09 11:11:04 +0000 | |||
4344 | +++ build.xml 2011-02-24 17:57:34 +0000 | |||
4345 | @@ -17,8 +17,8 @@ | |||
4346 | 17 | 17 | ||
4347 | 18 | Author : Russel Winder | 18 | Author : Russel Winder |
4348 | 19 | Author : Paul King | 19 | Author : Paul King |
4351 | 20 | $Revision: 18555 $ ($LastChangedBy: paulk $) | 20 | $Revision: 20245 $ ($LastChangedBy: paulk $) |
4352 | 21 | $Date: 2009-12-08 14:08:59 +0100 (Di, 08. Dez 2009) $ | 21 | $Date: 2010-06-07 02:45:33 +0200 (Mo, 07. Jun 2010) $ |
4353 | 22 | --> | 22 | --> |
4354 | 23 | 23 | ||
4355 | 24 | <project name="Groovy" default="createJars" basedir="."> | 24 | <project name="Groovy" default="createJars" basedir="."> |
4356 | @@ -50,6 +50,10 @@ | |||
4357 | 50 | <istrue value="${skipExamples}"/> | 50 | <istrue value="${skipExamples}"/> |
4358 | 51 | </condition> | 51 | </condition> |
4359 | 52 | 52 | ||
4360 | 53 | <condition property="_skipDocs_"> | ||
4361 | 54 | <istrue value="${skipDocs}"/> | ||
4362 | 55 | </condition> | ||
4363 | 56 | |||
4364 | 53 | <condition property="_skipOsgi_"> | 57 | <condition property="_skipOsgi_"> |
4365 | 54 | <istrue value="${skipOsgi}"/> | 58 | <istrue value="${skipOsgi}"/> |
4366 | 55 | </condition> | 59 | </condition> |
4367 | @@ -62,6 +66,10 @@ | |||
4368 | 62 | <istrue value="${skipEmbeddable}"/> | 66 | <istrue value="${skipEmbeddable}"/> |
4369 | 63 | </condition> | 67 | </condition> |
4370 | 64 | 68 | ||
4371 | 69 | <condition property="_forceServerSettings_"> | ||
4372 | 70 | <istrue value="${forceServerSettings}"/> | ||
4373 | 71 | </condition> | ||
4374 | 72 | |||
4375 | 65 | <condition property="groovy.build.vm4"> | 73 | <condition property="groovy.build.vm4"> |
4376 | 66 | <contains string="${ant.java.version}" substring="1.4"/> | 74 | <contains string="${ant.java.version}" substring="1.4"/> |
4377 | 67 | </condition> | 75 | </condition> |
4378 | @@ -95,16 +103,6 @@ | |||
4379 | 95 | </antlr> | 103 | </antlr> |
4380 | 96 | </target> | 104 | </target> |
4381 | 97 | 105 | ||
4382 | 98 | <target name="updatePolicy"> | ||
4383 | 99 | <move file="security/groovy.policy" tofile="security/groovy.policy.template"/> | ||
4384 | 100 | <copy tofile="security/groovy.policy"> | ||
4385 | 101 | <fileset file="security/groovy.policy.template"/> | ||
4386 | 102 | <filterset> | ||
4387 | 103 | <filter token="relativePathToRealBasedir" value="${relativePathToRealBasedir}"/> | ||
4388 | 104 | </filterset> | ||
4389 | 105 | </copy> | ||
4390 | 106 | </target> | ||
4391 | 107 | |||
4392 | 108 | <target name="-init"> | 106 | <target name="-init"> |
4393 | 109 | <xslt in="pom.xml" out="${targetDirectory}/groovy-all.pom" style="config/maven/groovy-all.xsl"/> | 107 | <xslt in="pom.xml" out="${targetDirectory}/groovy-all.pom" style="config/maven/groovy-all.xsl"/> |
4394 | 110 | </target> | 108 | </target> |
4395 | @@ -162,33 +160,32 @@ | |||
4396 | 162 | </target> | 160 | </target> |
4397 | 163 | --> | 161 | --> |
4398 | 164 | 162 | ||
4409 | 165 | <target name="dgmConvert" depends="stagedcompile"> | 163 | <target name="compileMain" depends="stagedcompile" |
4400 | 166 | <java classname="org.codehaus.groovy.tools.DgmConverter" | ||
4401 | 167 | fork="yes" | ||
4402 | 168 | failonerror="true"> | ||
4403 | 169 | <classpath refid="compilePath"/> | ||
4404 | 170 | <classpath path="${mainClassesDirectory}"/> | ||
4405 | 171 | </java> | ||
4406 | 172 | </target> | ||
4407 | 173 | |||
4408 | 174 | <target name="compileMain" depends="stagedcompile,dgmConvert" | ||
4410 | 175 | description="Compile the Java and Groovy code in the main source."> | 164 | description="Compile the Java and Groovy code in the main source."> |
4411 | 176 | </target> | 165 | </target> |
4412 | 177 | 166 | ||
4413 | 178 | <target name="stagedcompile" depends="-init,ensureGrammars,-jvm14BuildWarning" unless="uber"> | 167 | <target name="stagedcompile" depends="-init,ensureGrammars,-jvm14BuildWarning" unless="uber"> |
4414 | 179 | <mkdir dir="${mainClassesDirectory}"/> | 168 | <mkdir dir="${mainClassesDirectory}"/> |
4415 | 180 | <mkdir dir="${toolsClassesDirectory}"/> | 169 | <mkdir dir="${toolsClassesDirectory}"/> |
4416 | 170 | <mkdir dir="${mainClassesDirectory}/META-INF"/> | ||
4417 | 181 | 171 | ||
4418 | 182 | <javac srcdir="${mainSourceDirectory}" includeantruntime="false" destdir="${mainClassesDirectory}" | 172 | <javac srcdir="${mainSourceDirectory}" includeantruntime="false" destdir="${mainClassesDirectory}" |
4419 | 183 | deprecation="on" debug="yes" source="1.5" target="1.5" fork="true" classpathref="compilePath"> | 173 | deprecation="on" debug="yes" source="1.5" target="1.5" fork="true" classpathref="compilePath"> |
4420 | 184 | <exclude name="groovy/ui/**/*.java"/> | 174 | <exclude name="groovy/ui/**/*.java"/> |
4421 | 185 | </javac> | 175 | </javac> |
4422 | 176 | <java classname="org.codehaus.groovy.tools.DgmConverter" | ||
4423 | 177 | fork="yes" | ||
4424 | 178 | failonerror="true"> | ||
4425 | 179 | <classpath refid="compilePath"/> | ||
4426 | 180 | <classpath path="${mainClassesDirectory}"/> | ||
4427 | 181 | </java> | ||
4428 | 186 | <antcall inheritrefs="true" target="-stagedcompile-groovy"/> | 182 | <antcall inheritrefs="true" target="-stagedcompile-groovy"/> |
4429 | 187 | <antcall target="-includeResources"/> | 183 | <antcall target="-includeResources"/> |
4430 | 188 | </target> | 184 | </target> |
4431 | 189 | 185 | ||
4432 | 190 | <target name="-stagedcompile-groovy" depends="-initGroovyc"> | 186 | <target name="-stagedcompile-groovy" depends="-initGroovyc"> |
4434 | 191 | <groovyc srcdir="${mainSourceDirectory}" destdir="${mainClassesDirectory}" fork="true" memorymaximumsize="${groovycMain_mx}"> | 187 | <groovyc srcdir="${mainSourceDirectory}" destdir="${mainClassesDirectory}" fork="true" |
4435 | 188 | memorymaximumsize="${groovycMain_mx}"> | ||
4436 | 192 | <classpath> | 189 | <classpath> |
4437 | 193 | <pathelement path="${mainClassesDirectory}"/> | 190 | <pathelement path="${mainClassesDirectory}"/> |
4438 | 194 | <path refid="compilePath"/> | 191 | <path refid="compilePath"/> |
4439 | @@ -199,7 +196,7 @@ | |||
4440 | 199 | 196 | ||
4441 | 200 | <property name="vm5GroovySourceFiles" value="**/*.groovy"/> | 197 | <property name="vm5GroovySourceFiles" value="**/*.groovy"/> |
4442 | 201 | <property name="vm5JavaSourceFiles" value="**/*.java"/> | 198 | <property name="vm5JavaSourceFiles" value="**/*.java"/> |
4444 | 202 | <property name="vm6GroovySourceFiles" value="groovy/**/vm6/*Test.groovy"/> | 199 | <property name="vm6GroovySourceFiles" value="groovy/**/vm6/*Test.groovy,org/codehaus/groovy/**/vm6/*Test.groovy"/> |
4445 | 203 | 200 | ||
4446 | 204 | <target name="-initGroovyc"> | 201 | <target name="-initGroovyc"> |
4447 | 205 | <path id="groovyMainClasses"> | 202 | <path id="groovyMainClasses"> |
4448 | @@ -253,7 +250,8 @@ | |||
4449 | 253 | </groovyc> | 250 | </groovyc> |
4450 | 254 | </target> | 251 | </target> |
4451 | 255 | 252 | ||
4453 | 256 | <target name="compileExamples" depends="-init,-initGroovyc,compileMain,-includeExamplesResources" unless="_skipExamples_" | 253 | <target name="compileExamples" depends="-init,-initGroovyc,compileMain,-includeExamplesResources" |
4454 | 254 | unless="_skipExamples_" | ||
4455 | 257 | description="Compile the Java and Groovy code in the examples source directory."> | 255 | description="Compile the Java and Groovy code in the examples source directory."> |
4456 | 258 | <mkdir dir="${examplesClassesDirectory}"/> | 256 | <mkdir dir="${examplesClassesDirectory}"/> |
4457 | 259 | <echo message="Compiling example code."/> | 257 | <echo message="Compiling example code."/> |
4458 | @@ -269,10 +267,10 @@ | |||
4459 | 269 | </classpath> | 267 | </classpath> |
4460 | 270 | </groovyc> | 268 | </groovyc> |
4461 | 271 | <javac srcdir="${examplesSourceDirectory}" | 269 | <javac srcdir="${examplesSourceDirectory}" |
4466 | 272 | destdir="${examplesClassesDirectory}" | 270 | destdir="${examplesClassesDirectory}" |
4467 | 273 | source="1.5" | 271 | source="1.5" |
4468 | 274 | target="1.5" | 272 | target="1.5" |
4469 | 275 | fork="true"> | 273 | fork="true"> |
4470 | 276 | <classpath> | 274 | <classpath> |
4471 | 277 | <pathelement path="${mainClassesDirectory}"/> | 275 | <pathelement path="${mainClassesDirectory}"/> |
4472 | 278 | <pathelement path="${examplesClassesDirectory}"/> | 276 | <pathelement path="${examplesClassesDirectory}"/> |
4473 | @@ -281,7 +279,7 @@ | |||
4474 | 281 | </classpath> | 279 | </classpath> |
4475 | 282 | </javac> | 280 | </javac> |
4476 | 283 | <groovyc srcdir="${examplesSourceDirectory}" | 281 | <groovyc srcdir="${examplesSourceDirectory}" |
4478 | 284 | destdir="${examplesClassesDirectory}" | 282 | destdir="${examplesClassesDirectory}" |
4479 | 285 | fork="true" | 283 | fork="true" |
4480 | 286 | memorymaximumsize="${groovycExamples_mx}" | 284 | memorymaximumsize="${groovycExamples_mx}" |
4481 | 287 | excludes="webapps/groovlet-examples/WEB-INF/groovy/**/*.groovy,org/codehaus/groovy/grails/compiler/injection/**/*.java"> | 285 | excludes="webapps/groovlet-examples/WEB-INF/groovy/**/*.groovy,org/codehaus/groovy/grails/compiler/injection/**/*.java"> |
4482 | @@ -310,7 +308,7 @@ | |||
4483 | 310 | <target name="-testInit" depends="-initHeadless"> | 308 | <target name="-testInit" depends="-initHeadless"> |
4484 | 311 | <property name="headlessArg" value=""/> | 309 | <property name="headlessArg" value=""/> |
4485 | 312 | <property name="junitJvmArgs" | 310 | <property name="junitJvmArgs" |
4487 | 313 | value="-Xms${groovyJUnit_ms} -XX:PermSize=${groovyJUnit_permSize} -XX:MaxPermSize=${groovyJUnit_maxPermSize} ${headlessArg} -Dgroovy.testdb.props=${groovy.testdb.props}"/> | 311 | value="-Xms${groovyJUnit_ms} -XX:PermSize=${groovyJUnit_permSize} -XX:MaxPermSize=${groovyJUnit_maxPermSize} ${headlessArg} -Dgroovy.testdb.props=${groovy.testdb.props} -DjavadocAssertion.src.dir=./src/main"/> |
4488 | 314 | </target> | 312 | </target> |
4489 | 315 | 313 | ||
4490 | 316 | <target name="-initHeadless" if="_shouldBeHeadless_"> | 314 | <target name="-initHeadless" if="_shouldBeHeadless_"> |
4491 | @@ -336,7 +334,8 @@ | |||
4492 | 336 | 334 | ||
4493 | 337 | <target name="-testOne" if="_testOne_" depends="-initGroovyc"> | 335 | <target name="-testOne" if="_testOne_" depends="-initGroovyc"> |
4494 | 338 | <mkdir dir="${junitRawDirectory}"/> | 336 | <mkdir dir="${junitRawDirectory}"/> |
4496 | 339 | <junit printsummary="true" fork="true" includeantruntime="false" failureproperty="testFailed" maxmemory="${groovyJUnit_mx}" dir="${basedir}"> | 337 | <junit printsummary="true" fork="true" includeantruntime="false" failureproperty="testFailed" |
4497 | 338 | maxmemory="${groovyJUnit_mx}" dir="${basedir}"> | ||
4498 | 340 | <sysproperty key="apple.awt.UIElement" value="true"/> | 339 | <sysproperty key="apple.awt.UIElement" value="true"/> |
4499 | 341 | <!-- keeps the dock from showing the AWT startup --> | 340 | <!-- keeps the dock from showing the AWT startup --> |
4500 | 342 | <jvmarg line="${junitJvmArgs}"/> | 341 | <jvmarg line="${junitJvmArgs}"/> |
4501 | @@ -375,16 +374,17 @@ | |||
4502 | 375 | </target> | 374 | </target> |
4503 | 376 | 375 | ||
4504 | 377 | <target name="-collect15tests" unless="groovy.build.vm6"> | 376 | <target name="-collect15tests" unless="groovy.build.vm6"> |
4506 | 378 | <fileset id="ubertests.fileset" dir="${testClassesDirectory}" includes="UberTest*.class" excludes="Uber*VM6.class,groovy/grape/*Test.class"/> | 377 | <fileset id="ubertests.fileset" dir="${testClassesDirectory}" includes="UberTest*.class" excludes="Uber*VM6.class"/> |
4507 | 379 | </target> | 378 | </target> |
4508 | 380 | 379 | ||
4509 | 381 | <target name="-collect16tests" if="groovy.build.vm6"> | 380 | <target name="-collect16tests" if="groovy.build.vm6"> |
4511 | 382 | <fileset id="ubertests.fileset" dir="${testClassesDirectory}" includes="UberTest*.class" excludes="groovy/grape/*Test.class"/> | 381 | <fileset id="ubertests.fileset" dir="${testClassesDirectory}" includes="UberTest*.class"/> |
4512 | 383 | </target> | 382 | </target> |
4513 | 384 | 383 | ||
4514 | 385 | <target name="-testAll" if="_testAll_" depends="-collect15tests,-collect16tests,-collectOptionalTests,-initGroovyc"> | 384 | <target name="-testAll" if="_testAll_" depends="-collect15tests,-collect16tests,-collectOptionalTests,-initGroovyc"> |
4515 | 386 | <mkdir dir="${junitRawDirectory}"/> | 385 | <mkdir dir="${junitRawDirectory}"/> |
4517 | 387 | <junit printsummary="true" fork="true" includeantruntime="false" failureproperty="testFailed" maxmemory="${groovyJUnit_mx}" dir="${basedir}"> | 386 | <junit printsummary="true" fork="true" includeantruntime="false" failureproperty="testFailed" |
4518 | 387 | maxmemory="${groovyJUnit_mx}" dir="${basedir}"> | ||
4519 | 388 | <jvmarg line="${junitJvmArgs}"/> | 388 | <jvmarg line="${junitJvmArgs}"/> |
4520 | 389 | <sysproperty key="apple.awt.UIElement" value="true"/> | 389 | <sysproperty key="apple.awt.UIElement" value="true"/> |
4521 | 390 | <!-- keeps the dock from showing the AWT startup --> | 390 | <!-- keeps the dock from showing the AWT startup --> |
4522 | @@ -433,12 +433,12 @@ | |||
4523 | 433 | <target name="-makeManifest"> | 433 | <target name="-makeManifest"> |
4524 | 434 | <mkdir dir="${mainClassesDirectory}/META-INF"/> | 434 | <mkdir dir="${mainClassesDirectory}/META-INF"/> |
4525 | 435 | <copy todir="${mainClassesDirectory}/META-INF" file="LICENSE.txt"/> | 435 | <copy todir="${mainClassesDirectory}/META-INF" file="LICENSE.txt"/> |
4528 | 436 | <makeManifest file="${mainClassesDirectory}/META-INF/MANIFEST.MF"/> | 436 | <makeManifest file="${mainClassesDirectory}/META-INF/MANIFEST.MF"/> |
4529 | 437 | </target> | 437 | </target> |
4530 | 438 | 438 | ||
4531 | 439 | <macrodef name="makeManifest"> | 439 | <macrodef name="makeManifest"> |
4534 | 440 | <attribute name="file"/> | 440 | <attribute name="file"/> |
4535 | 441 | <attribute name="bundleEnvironment" default="J2SE-1.5"/> | 441 | <attribute name="bundleEnvironment" default="J2SE-1.5"/> |
4536 | 442 | <sequential> | 442 | <sequential> |
4537 | 443 | <manifest file="@{file}"> | 443 | <manifest file="@{file}"> |
4538 | 444 | <attribute name="Built-By" value="${user.name}"/> | 444 | <attribute name="Built-By" value="${user.name}"/> |
4539 | @@ -449,13 +449,13 @@ | |||
4540 | 449 | <attribute name="Implementation-Title" value="Groovy: a powerful, dynamic language for the JVM"/> | 449 | <attribute name="Implementation-Title" value="Groovy: a powerful, dynamic language for the JVM"/> |
4541 | 450 | <attribute name="Implementation-Version" value="${groovyVersion}"/> | 450 | <attribute name="Implementation-Version" value="${groovyVersion}"/> |
4542 | 451 | <attribute name="Implementation-Vendor" value="The Codehaus"/> | 451 | <attribute name="Implementation-Vendor" value="The Codehaus"/> |
4550 | 452 | <attribute name="Bundle-ManifestVersion" value="2" /> | 452 | <attribute name="Bundle-ManifestVersion" value="2"/> |
4551 | 453 | <attribute name="Bundle-Name" value="Groovy Runtime" /> | 453 | <attribute name="Bundle-Name" value="Groovy Runtime"/> |
4552 | 454 | <attribute name="Bundle-Description" value="Groovy Runtime" /> | 454 | <attribute name="Bundle-Description" value="Groovy Runtime"/> |
4553 | 455 | <attribute name="Bundle-Version" value="${groovyBundleVersion}" /> | 455 | <attribute name="Bundle-Version" value="${groovyBundleVersion}"/> |
4554 | 456 | <attribute name="Bundle-Vendor" value="The Codehaus" /> | 456 | <attribute name="Bundle-Vendor" value="The Codehaus"/> |
4555 | 457 | <attribute name="Bundle-ClassPath" value="." /> | 457 | <attribute name="Bundle-ClassPath" value="."/> |
4556 | 458 | <attribute name="Bundle-RequiredExecutionEnvironment" value="@{bundleEnvironment}" /> | 458 | <attribute name="Bundle-RequiredExecutionEnvironment" value="@{bundleEnvironment}"/> |
4557 | 459 | <attribute name="Eclipse-BuddyPolicy" value="dependent"/> | 459 | <attribute name="Eclipse-BuddyPolicy" value="dependent"/> |
4558 | 460 | <attribute name="Eclipse-LazyStart" value="true"/> | 460 | <attribute name="Eclipse-LazyStart" value="true"/> |
4559 | 461 | <attribute name="DynamicImport-Package" value="*"/> | 461 | <attribute name="DynamicImport-Package" value="*"/> |
4560 | @@ -472,26 +472,27 @@ | |||
4561 | 472 | <include name="groovy/ui/**/*.png"/> | 472 | <include name="groovy/ui/**/*.png"/> |
4562 | 473 | <include name="groovy/inspect/swingui/AstBrowserProperties.groovy"/> | 473 | <include name="groovy/inspect/swingui/AstBrowserProperties.groovy"/> |
4563 | 474 | <include name="org/codehaus/groovy/tools/shell/**/*.properties"/> | 474 | <include name="org/codehaus/groovy/tools/shell/**/*.properties"/> |
4564 | 475 | <include name="org/codehaus/groovy/tools/groovydoc/**/*.properties"/> | ||
4565 | 475 | <include name="org/codehaus/groovy/tools/shell/**/*.xml"/> | 476 | <include name="org/codehaus/groovy/tools/shell/**/*.xml"/> |
4566 | 476 | <include name="org/codehaus/groovy/antlib.xml"/> | 477 | <include name="org/codehaus/groovy/antlib.xml"/> |
4567 | 477 | </fileset> | 478 | </fileset> |
4568 | 478 | </copy> | 479 | </copy> |
4570 | 479 | <antcall target="-includeReleaseInfo"/> | 480 | <antcall target="-includeReleaseInfo"/> |
4571 | 480 | </target> | 481 | </target> |
4572 | 481 | 482 | ||
4573 | 482 | <target name="-includeReleaseInfo"> | 483 | <target name="-includeReleaseInfo"> |
4576 | 483 | <copy file="${mainSourceDirectory}/META-INF/groovy-release-info.properties" | 484 | <copy file="${mainSourceDirectory}/META-INF/groovy-release-info.properties" |
4577 | 484 | todir="${mainClassesDirectory}/META-INF" overwrite="true"> | 485 | todir="${mainClassesDirectory}/META-INF" overwrite="true"> |
4578 | 485 | </copy> | 486 | </copy> |
4583 | 486 | <tstamp> | 487 | <tstamp> |
4584 | 487 | <format property="release.date" pattern="dd-MMM-yyyy"/> | 488 | <format property="release.date" pattern="dd-MMM-yyyy"/> |
4585 | 488 | <format property="release.time" pattern="hh:mm aa"/> | 489 | <format property="release.time" pattern="hh:mm aa"/> |
4586 | 489 | </tstamp> | 490 | </tstamp> |
4587 | 490 | <replace file="${mainClassesDirectory}/META-INF/groovy-release-info.properties"> | 491 | <replace file="${mainClassesDirectory}/META-INF/groovy-release-info.properties"> |
4592 | 491 | <replacefilter token="##ImplementationVersion##" value="${groovyVersion}"/> | 492 | <replacefilter token="##ImplementationVersion##" value="${groovyVersion}"/> |
4593 | 492 | <replacefilter token="##BundleVersion##" value="${groovyBundleVersion}"/> | 493 | <replacefilter token="##BundleVersion##" value="${groovyBundleVersion}"/> |
4594 | 493 | <replacefilter token="##BuildDate##" value="${release.date}"/> | 494 | <replacefilter token="##BuildDate##" value="${release.date}"/> |
4595 | 494 | <replacefilter token="##BuildTime##" value="${release.time}"/> | 495 | <replacefilter token="##BuildTime##" value="${release.time}"/> |
4596 | 495 | </replace> | 496 | </replace> |
4597 | 496 | </target> | 497 | </target> |
4598 | 497 | 498 | ||
4599 | @@ -506,7 +507,7 @@ | |||
4600 | 506 | <target name="-includeGroovyDocTemplates"> | 507 | <target name="-includeGroovyDocTemplates"> |
4601 | 507 | <copy todir="${mainClassesDirectory}"> | 508 | <copy todir="${mainClassesDirectory}"> |
4602 | 508 | <fileset dir="${mainSourceDirectory}"> | 509 | <fileset dir="${mainSourceDirectory}"> |
4604 | 509 | <include name="org/codehaus/groovy/tools/groovydoc/gstringTemplates/**/*.*"/> | 510 | <include name="org/codehaus/groovy/tools/groovydoc/gstringTemplates/*/*.*"/> |
4605 | 510 | </fileset> | 511 | </fileset> |
4606 | 511 | <fileset dir="${toolsSourceDirectory}"> | 512 | <fileset dir="${toolsSourceDirectory}"> |
4607 | 512 | <include name="org/codehaus/groovy/tools/groovy.ico"/> | 513 | <include name="org/codehaus/groovy/tools/groovy.ico"/> |
4608 | @@ -514,7 +515,7 @@ | |||
4609 | 514 | </copy> | 515 | </copy> |
4610 | 515 | </target> | 516 | </target> |
4611 | 516 | 517 | ||
4613 | 517 | <target name="-initializeJars" depends="test"> | 518 | <target name="-initializeJars" depends="test" unless="_skipDocs_"> |
4614 | 518 | <delete dir="${targetDistDirectory}" quiet="true"/> | 519 | <delete dir="${targetDistDirectory}" quiet="true"/> |
4615 | 519 | <mkdir dir="${targetDistDirectory}"/> | 520 | <mkdir dir="${targetDistDirectory}"/> |
4616 | 520 | </target> | 521 | </target> |
4617 | @@ -564,23 +565,25 @@ | |||
4618 | 564 | <include name="commons-cli.jar"/> | 565 | <include name="commons-cli.jar"/> |
4619 | 565 | </fileset> | 566 | </fileset> |
4620 | 566 | </unzip> | 567 | </unzip> |
4622 | 567 | <makeManifest file="${stagingDirectory}/META-INF/MANIFEST.MF" /> | 568 | <makeManifest file="${stagingDirectory}/META-INF/MANIFEST.MF"/> |
4623 | 568 | <!-- TODO try to make use of jarjar keep ability --> | 569 | <!-- TODO try to make use of jarjar keep ability --> |
4624 | 569 | <jarjar jarfile="${targetDistDirectory}/groovy-all.jar" | 570 | <jarjar jarfile="${targetDistDirectory}/groovy-all.jar" |
4625 | 570 | manifest="${stagingDirectory}/META-INF/MANIFEST.MF"> | 571 | manifest="${stagingDirectory}/META-INF/MANIFEST.MF"> |
4627 | 571 | <fileset dir="${stagingDirectory}" excludes="groovy/util/CliBuilder*.class,groovy/util/OptionAccessor*.class,org/codehaus/groovy/tools/shell/util/HelpFormatter*.class"/> | 572 | <fileset dir="${stagingDirectory}" |
4628 | 573 | excludes="groovy/util/CliBuilder*.class,groovy/util/OptionAccessor*.class,org/codehaus/groovy/tools/shell/util/HelpFormatter*.class"/> | ||
4629 | 572 | <rule pattern="antlr.**" result="groovyjarjarantlr.@1"/> | 574 | <rule pattern="antlr.**" result="groovyjarjarantlr.@1"/> |
4630 | 573 | <rule pattern="org.objectweb.**" result="groovyjarjarasm.@1"/> | 575 | <rule pattern="org.objectweb.**" result="groovyjarjarasm.@1"/> |
4631 | 574 | <rule pattern="org.apache.commons.cli.**" result="groovyjarjarcommonscli.@1"/> | 576 | <rule pattern="org.apache.commons.cli.**" result="groovyjarjarcommonscli.@1"/> |
4632 | 575 | </jarjar> | 577 | </jarjar> |
4633 | 576 | <jar destfile="${targetDistDirectory}/groovy-all.jar" update="true" | 578 | <jar destfile="${targetDistDirectory}/groovy-all.jar" update="true" |
4635 | 577 | basedir="${stagingDirectory}" includes="groovy/util/CliBuilder*.class,groovy/util/OptionAccessor*.class,org/codehaus/groovy/tools/shell/util/HelpFormatter*.class"/> | 579 | basedir="${stagingDirectory}" |
4636 | 580 | includes="groovy/util/CliBuilder*.class,groovy/util/OptionAccessor*.class,org/codehaus/groovy/tools/shell/util/HelpFormatter*.class"/> | ||
4637 | 578 | 581 | ||
4638 | 579 | <copy file="${targetDistDirectory}/groovy-${groovyVersion}-sources.jar" | 582 | <copy file="${targetDistDirectory}/groovy-${groovyVersion}-sources.jar" |
4639 | 580 | tofile="${targetDistDirectory}/groovy-all-${groovyVersion}-sources.jar"/> | 583 | tofile="${targetDistDirectory}/groovy-all-${groovyVersion}-sources.jar"/> |
4640 | 581 | <delete dir="${stagingDirectory}" quiet="true"/> | 584 | <delete dir="${stagingDirectory}" quiet="true"/> |
4641 | 582 | </target> | 585 | </target> |
4643 | 583 | 586 | ||
4644 | 584 | <target name="createJars" depends="-checkAntVersion,test,-actuallyCreateJars" | 587 | <target name="createJars" depends="-checkAntVersion,test,-actuallyCreateJars" |
4645 | 585 | description="Build Groovy and create the jarfiles."/> | 588 | description="Build Groovy and create the jarfiles."/> |
4646 | 586 | 589 | ||
4647 | @@ -592,8 +595,10 @@ | |||
4648 | 592 | <filter token="GROOVY_BUNDLE_VERSION" value="${groovyBundleVersion}"/> | 595 | <filter token="GROOVY_BUNDLE_VERSION" value="${groovyBundleVersion}"/> |
4649 | 593 | </filterset> | 596 | </filterset> |
4650 | 594 | </copy> | 597 | </copy> |
4653 | 595 | <property name="jarsToWrap" value="groovy.jar,groovy-all.jar" /> | 598 | <property name="jarsToWrap" value="groovy.jar,groovy-all.jar"/> |
4654 | 596 | <bndwrap definitions="${targetDistDirectory}" output="${targetDistDirectory}" failok="true"> | 599 | <property name="runtimeJars" refid="runtimePath"/> |
4655 | 600 | <bndwrap definitions="${targetDistDirectory}" output="${targetDistDirectory}" failok="true" | ||
4656 | 601 | classpath="${runtimeJars}"> | ||
4657 | 597 | <fileset dir="${targetDistDirectory}" includes="${jarsToWrap}"/> | 602 | <fileset dir="${targetDistDirectory}" includes="${jarsToWrap}"/> |
4658 | 598 | </bndwrap> | 603 | </bndwrap> |
4659 | 599 | <delete dir="${targetDistDirectory}" includes="${jarsToWrap}"/> | 604 | <delete dir="${targetDistDirectory}" includes="${jarsToWrap}"/> |
4660 | @@ -663,9 +668,15 @@ | |||
4661 | 663 | <filter token="GROOVYJAR" value="groovy-${groovyVersion}.jar"/> | 668 | <filter token="GROOVYJAR" value="groovy-${groovyVersion}.jar"/> |
4662 | 664 | </filterset> | 669 | </filterset> |
4663 | 665 | </copy> | 670 | </copy> |
4664 | 671 | <!-- icon --> | ||
4665 | 672 | <copy todir="${installDirectory}/bin" flatten="true"> | ||
4666 | 673 | <fileset dir="${toolsSourceDirectory}"> | ||
4667 | 674 | <include name="org/codehaus/groovy/tools/groovy.ico"/> | ||
4668 | 675 | </fileset> | ||
4669 | 676 | </copy> | ||
4670 | 666 | 677 | ||
4671 | 667 | <!-- Tweak scripts for platform compatibility --> | 678 | <!-- Tweak scripts for platform compatibility --> |
4673 | 668 | <fixcrlf srcdir="${installDirectory}/bin" eol="lf" excludes="*.bat"/> | 679 | <fixcrlf srcdir="${installDirectory}/bin" eol="lf" excludes="*.bat, *.icns"/> |
4674 | 669 | <fixcrlf srcdir="${installDirectory}/bin" eol="crlf" includes="*.bat"/> | 680 | <fixcrlf srcdir="${installDirectory}/bin" eol="crlf" includes="*.bat"/> |
4675 | 670 | <chmod perm="ugo+x"> | 681 | <chmod perm="ugo+x"> |
4676 | 671 | <fileset dir="${installDirectory}/bin" includes="*,*.*"/> | 682 | <fileset dir="${installDirectory}/bin" includes="*,*.*"/> |
4677 | @@ -718,30 +729,32 @@ | |||
4678 | 718 | 729 | ||
4679 | 719 | <target name="-docInit"> | 730 | <target name="-docInit"> |
4680 | 720 | <mkdir dir="${docsDirectory}"/> | 731 | <mkdir dir="${docsDirectory}"/> |
4682 | 721 | <property name="docFooter" value="Copyright &copy; 2003-2009 The Codehaus. All rights reserved."/> | 732 | <property name="docFooter" value="Copyright &copy; 2003-2010 The Codehaus. All rights reserved."/> |
4683 | 722 | <property name="title" value="Groovy ${groovyVersion}"/> | 733 | <property name="title" value="Groovy ${groovyVersion}"/> |
4684 | 723 | </target> | 734 | </target> |
4685 | 724 | 735 | ||
4686 | 725 | <target name="doc" depends="javadoc, groovydoc" description="Create the documentation."/> | 736 | <target name="doc" depends="javadoc, groovydoc" description="Create the documentation."/> |
4687 | 726 | 737 | ||
4690 | 727 | <target name="javadoc" depends="-docInit,-jvm14BuildWarning,ensureGrammars" | 738 | <target name="javadoc" depends="-docInit,-jvm14BuildWarning,ensureGrammars" |
4691 | 728 | description="Create the javadoc documentation."> | 739 | unless="_skipDocs_" description="Create the javadoc documentation."> |
4692 | 729 | <javadoc destdir="${docsDirectory}/api" author="true" version="true" | 740 | <javadoc destdir="${docsDirectory}/api" author="true" version="true" |
4693 | 730 | windowtitle="${title}" doctitle="${title}" | 741 | windowtitle="${title}" doctitle="${title}" |
4694 | 731 | encoding="ISO-8859-1" useexternalfile="true" source="1.5" | 742 | encoding="ISO-8859-1" useexternalfile="true" source="1.5" |
4695 | 732 | footer="${docFooter}" | 743 | footer="${docFooter}" |
4696 | 744 | overview="src/main/overviewj.html" | ||
4697 | 733 | maxmemory="${javaDoc_mx}" | 745 | maxmemory="${javaDoc_mx}" |
4699 | 734 | > | 746 | > |
4700 | 735 | <classpath> | 747 | <classpath> |
4701 | 736 | <path path="${mainClassesDirectory}"/> | 748 | <path path="${mainClassesDirectory}"/> |
4702 | 737 | <path refid="compilePath"/> | 749 | <path refid="compilePath"/> |
4703 | 738 | </classpath> | 750 | </classpath> |
4704 | 739 | <fileset dir="${mainSourceDirectory}" includes="**/*.java"/> | 751 | <fileset dir="${mainSourceDirectory}" includes="**/*.java"/> |
4706 | 740 | <link href="http://java.sun.com/j2se/1.5.0/docs/api"/> | 752 | <link href="http://java.sun.com/javase/6/docs/api"/> |
4707 | 741 | <link href="http://www.dpml.net/api/ant/1.7.0"/> | 753 | <link href="http://www.dpml.net/api/ant/1.7.0"/> |
4709 | 742 | <link href="http://junit.sourceforge.net/junit3.8.1/javadoc/"/> | 754 | <link href="http://junit.sourceforge.net/junit3.8.1/javadoc"/> |
4710 | 743 | <link href="http://java.sun.com/j2ee/1.4/docs/api"/> | 755 | <link href="http://java.sun.com/j2ee/1.4/docs/api"/> |
4711 | 744 | <link href="http://www.antlr2.org/javadoc"/> | 756 | <link href="http://www.antlr2.org/javadoc"/> |
4712 | 757 | <link href="http://commons.apache.org/cli/api-release"/> | ||
4713 | 745 | </javadoc> | 758 | </javadoc> |
4714 | 746 | <mkdir dir="${targetDistDirectory}"/> | 759 | <mkdir dir="${targetDistDirectory}"/> |
4715 | 747 | <jar basedir="${docsDirectory}/api" destfile="${targetDistDirectory}/groovy-${groovyVersion}-javadoc.jar"/> | 760 | <jar basedir="${docsDirectory}/api" destfile="${targetDistDirectory}/groovy-${groovyVersion}-javadoc.jar"/> |
4716 | @@ -753,7 +766,7 @@ | |||
4717 | 753 | <target name="groovydoc"> | 766 | <target name="groovydoc"> |
4718 | 754 | <path id="groovydocpath"> | 767 | <path id="groovydocpath"> |
4719 | 755 | <path path="${mainClassesDirectory}"/> | 768 | <path path="${mainClassesDirectory}"/> |
4721 | 756 | <path path="${java.class.path}"/> | 769 | <path refid="compilePath"/> |
4722 | 757 | </path> | 770 | </path> |
4723 | 758 | <antforked target="realgroovydoc" maxmemory="${groovyDoc_mx}" classpathref="groovydocpath"/> | 771 | <antforked target="realgroovydoc" maxmemory="${groovyDoc_mx}" classpathref="groovydocpath"/> |
4724 | 759 | </target> | 772 | </target> |
4725 | @@ -774,14 +787,13 @@ | |||
4726 | 774 | doctitle="${title}" | 787 | doctitle="${title}" |
4727 | 775 | header="${title}" | 788 | header="${title}" |
4728 | 776 | footer="${docFooter}" | 789 | footer="${docFooter}" |
4732 | 777 | overview="src/main/overview.html" | 790 | overview="src/main/overview.html"> |
4733 | 778 | private="false"> | 791 | <link packages="javax.servlet.,javax.management." href="http://java.sun.com/j2ee/1.4/docs/api"/> |
4734 | 779 | <link packages="java.,org.xml.,javax.,org.xml." href="http://java.sun.com/j2se/1.5.0/docs/api"/> | 792 | <link packages="java.,org.xml.,javax.,org.xml." href="http://java.sun.com/javase/6/docs/api"/> |
4735 | 780 | <link packages="org.apache.ant.,org.apache.tools.ant." href="http://www.dpml.net/api/ant/1.7.0"/> | 793 | <link packages="org.apache.ant.,org.apache.tools.ant." href="http://www.dpml.net/api/ant/1.7.0"/> |
4740 | 781 | <link packages="org.junit.,junit.framework." href="http://junit.sourceforge.net/junit3.8.1/javadoc/"/> | 794 | <link packages="org.junit.,junit." href="http://junit.sourceforge.net/junit3.8.1/javadoc"/> |
4741 | 782 | <link packages="antlr." href="http://www.antlr2.org/javadoc/"/> | 795 | <link packages="org.apache.commons.cli." href="http://commons.apache.org/cli/api-release"/> |
4742 | 783 | <link packages="javax.servlet.,javax.management." href="http://java.sun.com/j2ee/1.4/docs/api"/> | 796 | <link packages="antlr." href="http://www.antlr2.org/javadoc"/> |
4739 | 784 | <link packages="groovy.,org.codehaus.groovy." href="http://groovy.codehaus.org/gapi/"/> | ||
4743 | 785 | </groovydoc> | 797 | </groovydoc> |
4744 | 786 | </target> | 798 | </target> |
4745 | 787 | 799 | ||
4746 | @@ -793,8 +805,14 @@ | |||
4747 | 793 | <pathelement path="${mainClassesDirectory}"/> | 805 | <pathelement path="${mainClassesDirectory}"/> |
4748 | 794 | </classpath> | 806 | </classpath> |
4749 | 795 | <arg value="org.codehaus.groovy.runtime.DefaultGroovyMethods"/> | 807 | <arg value="org.codehaus.groovy.runtime.DefaultGroovyMethods"/> |
4750 | 808 | <arg value="org.codehaus.groovy.runtime.SqlGroovyMethods"/> | ||
4751 | 809 | <arg value="org.codehaus.groovy.runtime.SwingGroovyMethods"/> | ||
4752 | 810 | <arg value="org.codehaus.groovy.runtime.XmlGroovyMethods"/> | ||
4753 | 811 | <arg value="org.codehaus.groovy.runtime.EncodingGroovyMethods"/> | ||
4754 | 812 | <arg value="org.codehaus.groovy.runtime.DateGroovyMethods"/> | ||
4755 | 796 | <arg value="org.codehaus.groovy.runtime.DefaultGroovyStaticMethods"/> | 813 | <arg value="org.codehaus.groovy.runtime.DefaultGroovyStaticMethods"/> |
4756 | 797 | <arg value="org.codehaus.groovy.vmplugin.v5.PluginDefaultGroovyMethods"/> | 814 | <arg value="org.codehaus.groovy.vmplugin.v5.PluginDefaultGroovyMethods"/> |
4757 | 815 | <arg value="org.codehaus.groovy.vmplugin.v6.PluginDefaultGroovyMethods"/> | ||
4758 | 798 | </java> | 816 | </java> |
4759 | 799 | <copy todir="target/html/groovy-jdk" file="src/tools/org/codehaus/groovy/tools/groovy.ico"/> | 817 | <copy todir="target/html/groovy-jdk" file="src/tools/org/codehaus/groovy/tools/groovy.ico"/> |
4760 | 800 | <copy todir="target/html/groovy-jdk" file="src/tools/org/codehaus/groovy/tools/stylesheet.css"/> | 818 | <copy todir="target/html/groovy-jdk" file="src/tools/org/codehaus/groovy/tools/stylesheet.css"/> |
4761 | @@ -806,22 +824,42 @@ | |||
4762 | 806 | <delete quiet="true"> | 824 | <delete quiet="true"> |
4763 | 807 | <fileset dir="." includes="**/*~"/> | 825 | <fileset dir="." includes="**/*~"/> |
4764 | 808 | <fileset dir="${groovyParserDirectory}" includes="Groovy*.*"/> | 826 | <fileset dir="${groovyParserDirectory}" includes="Groovy*.*"/> |
4766 | 809 | <fileset dir="${javaParserDirectory}" includes="JavaLexer.java,JavaRecognizer.java,JavaTokenTypes.java,JavaTokenTypes.txt,*.smap"/> | 827 | <fileset dir="${javaParserDirectory}" |
4767 | 828 | includes="JavaLexer.java,JavaRecognizer.java,JavaTokenTypes.java,JavaTokenTypes.txt,*.smap"/> | ||
4768 | 810 | </delete> | 829 | </delete> |
4769 | 811 | </target> | 830 | </target> |
4770 | 812 | 831 | ||
4771 | 813 | <target name="deploy" depends="install,doc" | 832 | <target name="deploy" depends="install,doc" |
4773 | 814 | description="Deploy jars to maven repository."> | 833 | description="Deploy jars to maven repository."/> |
4774 | 834 | |||
4775 | 835 | <target name="-deployDefault" unless="_forceServerSettings_"> | ||
4776 | 815 | <mavenDeploy version="${groovyVersion}" prefix="groovy"/> | 836 | <mavenDeploy version="${groovyVersion}" prefix="groovy"/> |
4777 | 816 | <mavenDeploy version="${groovyVersion}" prefix="groovy-all"/> | 837 | <mavenDeploy version="${groovyVersion}" prefix="groovy-all"/> |
4778 | 817 | </target> | 838 | </target> |
4779 | 818 | 839 | ||
4780 | 840 | <target name="-deployFromServer" if="_forceServerSettings_"> | ||
4781 | 841 | <copy tofile="target/settings.xml"> | ||
4782 | 842 | <fileset file="config/maven/settings.xml"/> | ||
4783 | 843 | <filterset> | ||
4784 | 844 | <filter token="groovy.deploy.username" value="${groovy.deploy.username}"/> | ||
4785 | 845 | <filter token="groovy.deploy.password" value="${groovy.deploy.password}"/> | ||
4786 | 846 | </filterset> | ||
4787 | 847 | </copy> | ||
4788 | 848 | <mavenDeploySettings version="${groovyVersion}" prefix="groovy" settings="target/settings.xml"/> | ||
4789 | 849 | <mavenDeploySettings version="${groovyVersion}" prefix="groovy-all" settings="target/settings.xml"/> | ||
4790 | 850 | <delete file="target/settings.xml"/> | ||
4791 | 851 | </target> | ||
4792 | 852 | |||
4793 | 819 | <target name="installRepo" depends="install,doc" | 853 | <target name="installRepo" depends="install,doc" |
4794 | 820 | description="Deploy artifacts to local maven repository."> | 854 | description="Deploy artifacts to local maven repository."> |
4795 | 821 | <mavenInstallRepo version="${groovyVersion}" prefix="groovy"/> | 855 | <mavenInstallRepo version="${groovyVersion}" prefix="groovy"/> |
4796 | 822 | <mavenInstallRepo version="${groovyVersion}" prefix="groovy-all"/> | 856 | <mavenInstallRepo version="${groovyVersion}" prefix="groovy-all"/> |
4797 | 823 | </target> | 857 | </target> |
4798 | 824 | 858 | ||
4799 | 859 | <target name="quality" depends="install,checkstyle" description="install plus checkstyle"/> | ||
4800 | 860 | |||
4801 | 861 | <target name="release" depends="deploy,compileExamples" description="deploy plus compileExamples"/> | ||
4802 | 862 | |||
4803 | 825 | <target name="fulldist" depends="dist,compileExamples,checkstyle" description="dist plus examples plus checkstyle"/> | 863 | <target name="fulldist" depends="dist,compileExamples,checkstyle" description="dist plus examples plus checkstyle"/> |
4804 | 826 | 864 | ||
4805 | 827 | <target name="dist" depends="install,doc" description="Create everything needed for a distribution."> | 865 | <target name="dist" depends="install,doc" description="Create everything needed for a distribution."> |
4806 | 828 | 866 | ||
4807 | === modified file 'config/ant/build-maven.xml' | |||
4808 | --- config/ant/build-maven.xml 2010-06-09 11:11:04 +0000 | |||
4809 | +++ config/ant/build-maven.xml 2011-02-24 17:57:34 +0000 | |||
4810 | @@ -14,8 +14,8 @@ | |||
4811 | 14 | Groovy community. See the NOTICE.txt file distributed with this work for additional information. | 14 | Groovy community. See the NOTICE.txt file distributed with this work for additional information. |
4812 | 15 | 15 | ||
4813 | 16 | Author : Paul King | 16 | Author : Paul King |
4816 | 17 | $Revision: 17603 $ ($LastChangedBy: paulk $) | 17 | $Revision: 20148 $ ($LastChangedBy: paulk $) |
4817 | 18 | $Date: 2009-09-11 14:06:51 +0200 (Fr, 11. Sep 2009) $ | 18 | $Date: 2010-05-28 17:22:26 +0200 (Fr, 28. Mai 2010) $ |
4818 | 19 | --> | 19 | --> |
4819 | 20 | 20 | ||
4820 | 21 | <project name="build-maven" default="" basedir="../.." xmlns:artifact="urn:maven-artifact-ant"> | 21 | <project name="build-maven" default="" basedir="../.." xmlns:artifact="urn:maven-artifact-ant"> |
4821 | @@ -92,7 +92,7 @@ | |||
4822 | 92 | <fileset dir="${compileLibDirectory}" includes="**/*.jar"/> | 92 | <fileset dir="${compileLibDirectory}" includes="**/*.jar"/> |
4823 | 93 | </path> | 93 | </path> |
4824 | 94 | <path id="runtimePath"> | 94 | <path id="runtimePath"> |
4826 | 95 | <fileset dir="${runtimeLibDirectory}" includes="**/*.jar"/> | 95 | <fileset dir="${runtimeLibDirectory}" includes="**/*.jar"/> |
4827 | 96 | </path> | 96 | </path> |
4828 | 97 | <path id="testLibPath"> | 97 | <path id="testLibPath"> |
4829 | 98 | <fileset dir="${testLibDirectory}" includes="**/*.jar"/> | 98 | <fileset dir="${testLibDirectory}" includes="**/*.jar"/> |
4830 | @@ -103,9 +103,6 @@ | |||
4831 | 103 | <path id="examplesPath"> | 103 | <path id="examplesPath"> |
4832 | 104 | <fileset dir="${examplesLibDirectory}" includes="**/*.jar"/> | 104 | <fileset dir="${examplesLibDirectory}" includes="**/*.jar"/> |
4833 | 105 | </path> | 105 | </path> |
4834 | 106 | <path id="jdk14ExtrasPath"> | ||
4835 | 107 | <fileset dir="${extrasLibDirectory}" includes="**/*.jar"/> | ||
4836 | 108 | </path> | ||
4837 | 109 | </target> | 106 | </target> |
4838 | 110 | 107 | ||
4839 | 111 | <target name="-mavenDeployInit" depends="-mavenInit"> | 108 | <target name="-mavenDeployInit" depends="-mavenInit"> |
4840 | @@ -140,6 +137,19 @@ | |||
4841 | 140 | </sequential> | 137 | </sequential> |
4842 | 141 | </macrodef> | 138 | </macrodef> |
4843 | 142 | 139 | ||
4844 | 140 | <macrodef name="mavenDeploySettings"> | ||
4845 | 141 | <attribute name="version"/> | ||
4846 | 142 | <attribute name="prefix"/> | ||
4847 | 143 | <attribute name="settings"/> | ||
4848 | 144 | <sequential> | ||
4849 | 145 | <artifact:deploy file="${targetDistDirectory}/@{prefix}-@{version}.jar" settingsFile="@{settings}"> | ||
4850 | 146 | <pom refid="@{prefix}.pom"/> | ||
4851 | 147 | <attach file="${targetDistDirectory}/@{prefix}-@{version}-sources.jar" classifier="sources"/> | ||
4852 | 148 | <attach file="${targetDistDirectory}/@{prefix}-@{version}-javadoc.jar" classifier="javadoc"/> | ||
4853 | 149 | </artifact:deploy> | ||
4854 | 150 | </sequential> | ||
4855 | 151 | </macrodef> | ||
4856 | 152 | |||
4857 | 143 | <macrodef name="mavenInstallRepo"> | 153 | <macrodef name="mavenInstallRepo"> |
4858 | 144 | <attribute name="version"/> | 154 | <attribute name="version"/> |
4859 | 145 | <attribute name="prefix"/> | 155 | <attribute name="prefix"/> |
4860 | 146 | 156 | ||
4861 | === removed file 'config/bnd/groovy-all-jdk14.bnd' | |||
4862 | --- config/bnd/groovy-all-jdk14.bnd 2009-05-06 14:05:59 +0000 | |||
4863 | +++ config/bnd/groovy-all-jdk14.bnd 1970-01-01 00:00:00 +0000 | |||
4864 | @@ -1,4 +0,0 @@ | |||
4865 | 1 | version= @GROOVY_BUNDLE_VERSION@ | ||
4866 | 2 | -nouses= true | ||
4867 | 3 | Export-Package= *;version=${version} | ||
4868 | 4 | Import-Package= *;resolution:=optional | ||
4869 | 5 | 0 | ||
4870 | === removed file 'config/bnd/groovy-jdk14.bnd' | |||
4871 | --- config/bnd/groovy-jdk14.bnd 2009-05-06 14:05:59 +0000 | |||
4872 | +++ config/bnd/groovy-jdk14.bnd 1970-01-01 00:00:00 +0000 | |||
4873 | @@ -1,4 +0,0 @@ | |||
4874 | 1 | version= @GROOVY_BUNDLE_VERSION@ | ||
4875 | 2 | -nouses= true | ||
4876 | 3 | Export-Package= *;version=${version} | ||
4877 | 4 | Import-Package= antlr, org.objectweb.asm, net.sf.retrotranslator.runtime.java.lang, *;resolution:=optional | ||
4878 | 5 | 0 | ||
4879 | === added file 'config/checkstyle/codeHeader.txt' | |||
4880 | --- config/checkstyle/codeHeader.txt 1970-01-01 00:00:00 +0000 | |||
4881 | +++ config/checkstyle/codeHeader.txt 2011-02-24 17:57:34 +0000 | |||
4882 | @@ -0,0 +1,15 @@ | |||
4883 | 1 | ^/\*$ | ||
4884 | 2 | ^ \* Copyright (\([cC]\) )?\d\d\d\d(-\d\d\d\d)? the original author or authors\.$ | ||
4885 | 3 | ^ \*$ | ||
4886 | 4 | ^ \* Licensed under the Apache License, Version 2\.0 \(the "License"\);$ | ||
4887 | 5 | ^ \* you may not use this file except in compliance with the License\.$ | ||
4888 | 6 | ^ \* You may obtain a copy of the License at$ | ||
4889 | 7 | ^ \*$ | ||
4890 | 8 | ^ \* http://www\.apache\.org/licenses/LICENSE-2\.0$ | ||
4891 | 9 | ^ \*$ | ||
4892 | 10 | ^ \* Unless required by applicable law or agreed to in writing, software$ | ||
4893 | 11 | ^ \* distributed under the License is distributed on an "AS IS" BASIS,$ | ||
4894 | 12 | ^ \* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.$ | ||
4895 | 13 | ^ \* See the License for the specific language governing permissions and$ | ||
4896 | 14 | ^ \* limitations under the License\.$ | ||
4897 | 15 | ^ \*.* | ||
4898 | 0 | \ No newline at end of file | 16 | \ No newline at end of file |
4899 | 1 | 17 | ||
4900 | === modified file 'config/checkstyle/config.xml' | |||
4901 | --- config/checkstyle/config.xml 2009-10-27 15:04:33 +0000 | |||
4902 | +++ config/checkstyle/config.xml 2011-02-24 17:57:34 +0000 | |||
4903 | @@ -151,6 +151,9 @@ | |||
4904 | 151 | <!--</module>--> | 151 | <!--</module>--> |
4905 | 152 | <!-- add below in eventually for consistency --> | 152 | <!-- add below in eventually for consistency --> |
4906 | 153 | <!--<module name="ArrayTypeStyle"/>--> | 153 | <!--<module name="ArrayTypeStyle"/>--> |
4907 | 154 | <module name="RegexpHeader"> | ||
4908 | 155 | <property name="headerFile" value="config/checkstyle/codeHeader.txt"/> | ||
4909 | 156 | </module> | ||
4910 | 154 | </module> | 157 | </module> |
4911 | 155 | <module name="PackageHtml"/> | 158 | <module name="PackageHtml"/> |
4912 | 156 | <module name="au.com.redhillconsulting.simian.SimianCheck"> | 159 | <module name="au.com.redhillconsulting.simian.SimianCheck"> |
4913 | 157 | 160 | ||
4914 | === modified file 'config/maven/groovy-tools.pom' | |||
4915 | --- config/maven/groovy-tools.pom 2010-06-09 11:11:04 +0000 | |||
4916 | +++ config/maven/groovy-tools.pom 2011-02-24 17:57:34 +0000 | |||
4917 | @@ -34,7 +34,7 @@ | |||
4918 | 34 | <dependency> | 34 | <dependency> |
4919 | 35 | <groupId>net.sourceforge.cobertura</groupId> | 35 | <groupId>net.sourceforge.cobertura</groupId> |
4920 | 36 | <artifactId>cobertura</artifactId> | 36 | <artifactId>cobertura</artifactId> |
4922 | 37 | <version>1.9.3</version> | 37 | <version>1.9.4.1</version> |
4923 | 38 | <exclusions> | 38 | <exclusions> |
4924 | 39 | <exclusion> | 39 | <exclusion> |
4925 | 40 | <groupId>asm</groupId> | 40 | <groupId>asm</groupId> |
4926 | @@ -60,12 +60,12 @@ | |||
4927 | 60 | <dependency> | 60 | <dependency> |
4928 | 61 | <groupId>com.thoughtworks.qdox</groupId> | 61 | <groupId>com.thoughtworks.qdox</groupId> |
4929 | 62 | <artifactId>qdox</artifactId> | 62 | <artifactId>qdox</artifactId> |
4931 | 63 | <version>1.10</version> | 63 | <version>1.12</version> |
4932 | 64 | </dependency> | 64 | </dependency> |
4933 | 65 | <dependency> | 65 | <dependency> |
4934 | 66 | <groupId>biz.aQute</groupId> | 66 | <groupId>biz.aQute</groupId> |
4935 | 67 | <artifactId>bnd</artifactId> | 67 | <artifactId>bnd</artifactId> |
4937 | 68 | <version>0.0.379</version> | 68 | <version>0.0.401</version> |
4938 | 69 | </dependency> | 69 | </dependency> |
4939 | 70 | </dependencies> | 70 | </dependencies> |
4940 | 71 | <repositories> | 71 | <repositories> |
4941 | 72 | 72 | ||
4942 | === added file 'config/maven/settings.xml' | |||
4943 | --- config/maven/settings.xml 1970-01-01 00:00:00 +0000 | |||
4944 | +++ config/maven/settings.xml 2011-02-24 17:57:34 +0000 | |||
4945 | @@ -0,0 +1,10 @@ | |||
4946 | 1 | <?xml version="1.0"?> | ||
4947 | 2 | <settings> | ||
4948 | 3 | <servers> | ||
4949 | 4 | <server> | ||
4950 | 5 | <id>codehaus.org</id> | ||
4951 | 6 | <username>@groovy.deploy.username@</username> | ||
4952 | 7 | <password>@groovy.deploy.password@</password> | ||
4953 | 8 | </server> | ||
4954 | 9 | </servers> | ||
4955 | 10 | </settings> | ||
4956 | 0 | \ No newline at end of file | 11 | \ No newline at end of file |
4957 | 1 | 12 | ||
4958 | === modified file 'debian/README.Debian' | |||
4959 | --- debian/README.Debian 2009-08-02 23:12:29 +0000 | |||
4960 | +++ debian/README.Debian 2011-02-24 17:57:34 +0000 | |||
4961 | @@ -86,3 +86,22 @@ | |||
4962 | 86 | 86 | ||
4963 | 87 | -- Ludovic Claude <ludovic.claude@laposte.net> Fri, 17 Jul 2009 00:33:18 +0100 | 87 | -- Ludovic Claude <ludovic.claude@laposte.net> Fri, 17 Jul 2009 00:33:18 +0100 |
4964 | 88 | 88 | ||
4965 | 89 | I have used the same build.xml as before, only adjusted some of the supplied | ||
4966 | 90 | patches. The complete doc does fail, but javadoc is just fine. | ||
4967 | 91 | |||
4968 | 92 | The jansi jar is needed for the build which I have installed manually. | ||
4969 | 93 | Groovy comes with several jars, I am not so sure which one should be | ||
4970 | 94 | supplied by this package or if there should be two conflicting ones | ||
4971 | 95 | prepared: | ||
4972 | 96 | |||
4973 | 97 | target/dist/groovy-all-1.7.3-sources.jar | ||
4974 | 98 | target/dist/groovy-all.jar | ||
4975 | 99 | target/dist/groovy-1.7.3-javadoc.jar | ||
4976 | 100 | target/dist/groovy-all-1.7.3-javadoc.jar | ||
4977 | 101 | target/dist/groovy.jar | ||
4978 | 102 | target/dist/groovy-1.7.3-sources.jar | ||
4979 | 103 | |||
4980 | 104 | Sorry of I could not do more, I am only debugging something else. | ||
4981 | 105 | |||
4982 | 106 | -- Steffen Moeller <moeller@debian.org> Wed, 21 Jul 2010 15:37:49 +0200 | ||
4983 | 107 | |||
4984 | 89 | 108 | ||
4985 | === modified file 'debian/changelog' | |||
4986 | --- debian/changelog 2010-12-09 14:11:14 +0000 | |||
4987 | +++ debian/changelog 2011-02-24 17:57:34 +0000 | |||
4988 | @@ -1,17 +1,49 @@ | |||
4989 | 1 | groovy (1.7.0-3ubuntu2) natty; urgency=low | ||
4990 | 2 | |||
4991 | 3 | * Updated debian/rules to include ant-nodeps to fix FTBFS (LP: #687974). | ||
4992 | 4 | |||
4993 | 5 | -- James Page <james.page@canonical.com> Thu, 09 Dec 2010 14:11:14 +0000 | ||
4994 | 6 | |||
4995 | 7 | groovy (1.7.0-3ubuntu1) maverick; urgency=low | ||
4996 | 8 | |||
4997 | 9 | * Merge from debian testing. Remaining changes: | ||
4998 | 10 | - debian/control, debian/rules: (Build-)Depend on libservlet2.5-java | ||
4999 | 11 | instead of libservlet2.4-java | ||
5000 | 12 | - debian/control: Remove useless runtime dependency on libclassworlds-java |
The diff has been truncated for viewing.