Issue Details (XML | Word | Printable)

Key: JELLY-87
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: dion gillard
Reporter: Alexey Krasnoriadtsev
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Commons Jelly

jelly can't resolve vars with dots (.) in the name, in function calls

Created: 25/Sep/03 01:38 AM   Updated: 07/Sep/04 04:13 AM
Return to search
Component/s: core / taglib.core
Affects Version/s: 1.0-beta-4
Fix Version/s: 1.0-beta-4

Time Tracking:
Not Specified

Environment: ANY

Resolution Date: 07/Sep/04 04:13 AM


 Description  « Hide
[bp@octopus:test]$ cat maven.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<project default="mytest"
xmlns:j="jelly:core"
xmlns:u="jelly:util"
xmlns:maven="jelly:maven"
xmlns:ant="jelly:ant"
xmlns:i="jelly:interaction">

<goal name="mytest">
<echo>pom.repository.url: "${pom.repository.url}"</echo>
<j:set var="pom.repository.url" value="" />
<echo>after setting to empty string "${pom.repository.url}"</echo>
<echo>is empty? ${empty(pom.repository.url)} </echo>
<echo>length ${pom.repository.url.length()} </echo>
<echo />

<j:set var="pom.custom.name" value="test here" />
<echo>pom.cutom.namE: "${pom.custom.name}"</echo>
<echo>is empty? :${empty(pom.custom.name)} </echo>
<echo>length ${pom.custom.name.length()} </echo>
<echo />

<j:set var="customname" value="test" />
<echo>cutomname: "${customname}"</echo>
<echo>is empty? :${empty(customname)} </echo>
<echo>length ${customname.length()} </echo>
<echo />

<j:set var="customname" value="" />
<echo>cutomname: "${customname}"</echo>
<echo>is empty? :${empty(customname)} </echo>
<echo>length ${customname.length()} </echo>
</goal>
</project>
[bp@octopus:test]$ maven -X
__ __

\/ __ Apache_ ___
  \/ / ` \ V / -) ' \ ~ intelligent projects ~
_   _,_ _/___ _ _ v. 1.0-beta-10

[DEBUG] Adding reference: maven.dependency.classpath -> /export/tools/maven-1.0-beta-10/repository/ant/jars/ant-1.5.3-1.jar:/export/tools/maven-1.0-beta-10/repository/oracle/jars/classes12-9.2.0.3-1.2.zip
[DEBUG] Adding reference: maven-classpath ->
mytest:
[echo] pom.repository.url: ""
[echo] after setting to empty string ""
[echo] is empty? false
[echo] length
[echo]
[echo] pom.cutom.namE: "test here"
[echo] is empty? :false
[echo] length
[echo]
[echo] cutomname: "test"
[echo] is empty? :false
[echo] length 4
[echo]
[echo] cutomname: ""
[echo] is empty? :true
[echo] length 0
BUILD SUCCESSFUL
Total time: 7 seconds



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
dion gillard made changes - 25/Sep/03 02:32 AM
Field Original Value New Value
Fix Version/s 1.0-beta-4 [ 10215 ]
Affects Version/s 1.0-beta-10 [ 10095 ]
Affects Version/s 1.0-beta-4 [ 10215 ]
Project maven [ 10030 ] jelly [ 10012 ]
Key MAVEN-848 JELLY-87
Component/s core / taglib.core [ 10421 ]
dion gillard made changes - 27/Aug/04 05:30 AM
Assignee dion gillard [ diongillard ]
dion gillard made changes - 30/Aug/04 03:20 AM
Fix Version/s 1.0 [ 10216 ]
Fix Version/s 1.0-beta-4 [ 10215 ]
dion gillard made changes - 07/Sep/04 04:13 AM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]
Fix Version/s 1.0 [ 10216 ]
Fix Version/s 1.0-beta-4 [ 10215 ]