[
https://issues.apache.org/jira/browse/NUTCH-1755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14072736#comment-14072736
]
bin wang edited comment on NUTCH-1755 at 7/24/14 3:11 AM:
----------------------------------------------------------
[~lewismc], right now, the project name in the build.xml is trying to referring
to the variable ${name}. However, even if you change that to ${final.name},
which suppose to be $ { name } - $ { version }. It still won't work. The reason
is because Ant won't parse and get the reference for `default`, `name`,
`basedir` and several other attributes in the project tag, like it will do for
the properties. You can refer to the Project class of ant for more information.
was (Author: biwa7636):
[~lewismc], right now, the project name in the build.xml is trying to referring
to the variable ${name}. However, even if you change that to ${final.name},
which suppose to be ${name} - ${version}. It still won't work. The reason is
because Ant won't parse and get the reference for `default`, `name`, `basedir`
and several other attributes in the project tag, like it will do for the
properties. You can refer to the Project class of ant for more information.
> Project name bug in build.xml
> -----------------------------
>
> Key: NUTCH-1755
> URL: https://issues.apache.org/jira/browse/NUTCH-1755
> Project: Nutch
> Issue Type: Bug
> Components: build, nutchNewbie
> Affects Versions: 1.8, 2.2.1
> Reporter: Lewis John McGibbney
> Priority: Minor
> Labels: nutchNewbie
> Fix For: 2.4
>
>
> When one enters an incorrect ant target as follows, you can see that project
> name is presented to us as "${name}". This should resolve to final.name value
> in default.properties
> http://svn.apache.org/repos/asf/nutch/branches/2.x/default.properties.
> I would imagine that this bug exists in both 1.X branch and 2.x.
> lewismc@vm-0:~/apache/2.x$ ant plugins-test
>
>
> Buildfile: /home/sarahp098/apache/2.x/build.xml
> Trying to override old definition of task javac
> [taskdef] Could not load definitions from resource
> org/sonar/ant/antlib.xml. It could not be found.
>
> BUILD FAILED
> Target "plugins-test" does not exist in the project "${name}".
--
This message was sent by Atlassian JIRA
(v6.2#6252)