commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From commons-...@jakarta.apache.org
Subject [jira] Commented: (JELLY-87) jelly can't resolve vars with dots (.) in the name, in function calls
Date Tue, 31 Aug 2004 07:56:20 GMT
The following comment has been added to this issue:

     Author: dion gillard
    Created: Tue, 31 Aug 2004 12:54 AM
       Body:
FWIW, I have a fix for this in JEXL, if needed.
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/JELLY-87?page=comments#action_37950

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JELLY-87

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JELLY-87
    Summary: jelly can't resolve vars with dots (.) in the name, in function calls
       Type: Bug

     Status: Open
   Priority: Major

    Project: jelly
 Components: 
             core / taglib.core
   Fix Fors:
             1.0
   Versions:
             1.0-beta-4

   Assignee: dion gillard
   Reporter: Alexey Krasnoriadtsev

    Created: Wed, 24 Sep 2003 6:38 PM
    Updated: Tue, 31 Aug 2004 12:54 AM
Environment: ANY

Description:
[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



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message