You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by sg...@apache.org on 2005/03/01 11:49:46 UTC
cvs commit: jakarta-turbine-fulcrum/yaafi/src/test/data plain-iso-8859-1.xml plain-utf16.xml plain-utf8.xml plain.groovy
sgoeschl 2005/03/01 02:49:46
Added: yaafi/src/test/data plain-iso-8859-1.xml plain-utf16.xml
plain-utf8.xml plain.groovy
Log:
Synchronizing my development CVS with Fulrum
Revision Changes Path
1.1 jakarta-turbine-fulcrum/yaafi/src/test/data/plain-iso-8859-1.xml
Index: plain-iso-8859-1.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<role-list>
<!-- Use minimal role entry -->
<role
name="org.apache.fulcrum.yaafi.service.servicemanager.ServiceManagerService"
default-class="org.apache.fulcrum.yaafi.service.servicemanager.ServiceManagerServiceImpl"
/>
<!-- For the rest of the services use a full-blown role entry -->
<role
name="org.apache.fulcrum.yaafi.service.systemproperty.SystemPropertyService"
shorthand="SystemPropertyService"
default-class="org.apache.fulcrum.yaafi.service.systemproperty.SystemPropertyServiceImpl"
early-init="true"
description="�������"
/>
<!--
This ReconfigurationService is instantiated during the first access. Until
then it is doing nothing.
-->
<role
name="org.apache.fulcrum.yaafi.service.reconfiguration.ReconfigurationService"
shorthand="ReconfigurationService"
default-class="org.apache.fulcrum.yaafi.service.reconfiguration.ReconfigurationServiceImpl"
early-init="false"
component-type="avalon"
component-flavour="yaafi"
description="Monitors the componentConfiguration.xml to reconfigure YAAFI"
/>
<role
name="org.apache.fulcrum.yaafi.TestComponent"
shorthand="test"
default-class="org.apache.fulcrum.yaafi.TestComponentImpl"
early-init="true"
component-type="merlin"
description="A simple test component"
/>
</role-list>
1.1 jakarta-turbine-fulcrum/yaafi/src/test/data/plain-utf16.xml
<<Binary file>>
1.1 jakarta-turbine-fulcrum/yaafi/src/test/data/plain-utf8.xml
Index: plain-utf8.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<role-list>
<!-- Use minimal role entry -->
<role
name="org.apache.fulcrum.yaafi.service.servicemanager.ServiceManagerService"
default-class="org.apache.fulcrum.yaafi.service.servicemanager.ServiceManagerServiceImpl"
/>
<!-- For the rest of the services use a full-blown role entry -->
<role
name="org.apache.fulcrum.yaafi.service.systemproperty.SystemPropertyService"
shorthand="SystemPropertyService"
default-class="org.apache.fulcrum.yaafi.service.systemproperty.SystemPropertyServiceImpl"
early-init="true"
description="ÜÖÄüöäß"
/>
<!--
This ReconfigurationService is instantiated during the first access. Until
then it is doing nothing.
-->
<role
name="org.apache.fulcrum.yaafi.service.reconfiguration.ReconfigurationService"
shorthand="ReconfigurationService"
default-class="org.apache.fulcrum.yaafi.service.reconfiguration.ReconfigurationServiceImpl"
early-init="false"
component-type="avalon"
component-flavour="yaafi"
description="Monitors the componentConfiguration.xml to reconfigure YAAFI"
/>
<role
name="org.apache.fulcrum.yaafi.TestComponent"
shorthand="test"
default-class="org.apache.fulcrum.yaafi.TestComponentImpl"
early-init="true"
component-type="merlin"
description="A simple test component"
/>
</role-list>
1.1 jakarta-turbine-fulcrum/yaafi/src/test/data/plain.groovy
Index: plain.groovy
===================================================================
import java.io.File;
def getVerse() {
lines= []
lines+= ( "Karma " * 5 ) + "Chameleon,"
lines+= (["you come and go"] * 2).join(", ")+"."
lines+= "Loving would be easy if your"+
" colours were like my dream"
lines+= (["red gold and green"]*2).join(", ")+"."
verse= lines.collect { it + "\n" }
return verse
}
println "Writing out to file.\n"
myFile= new File("temp/karma.txt")
myFile.write("Karma Chameleon\n\n")
getVerse().each { myFile.append(it) }
println "\nWith line numbering ...\n"
count=1
myFile.eachLine { println count++ + ": " + it }
println "\nAs a single string ...\n"
println myFile.readLines().join(" | ")
myFile.delete();
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org