Hi

On 10/28/06, Roland Kofler <[EMAIL PROTECTED]> wrote:

Thanks, i tried out several stuff also \", but missed it somehow. I
discovered jcr-commands only two days ago and I am pretty excited about it.
A live introspection tool that i really missed in jackrabbit.

good to hear :)

I saw that on windows command line history works but not on linux. Any hints
why?

I don't know why, I recently moved to linux for my dev pc and I saw
that too. Feel free to contribute a patch ;).

Currently scripting works only with jcr-commands? If we could plugin a
scripting language, that would really rock.


I'm not sure what you mean. There's a script support in jcr-commands.
You can use the following command in interactive mode:
source [path to the script]

or you can run a jcr script without starting the interactive mode:
java -classpath [classpath]
org.apache.jackrabbit.command.cli.JcrClient -source [path to my
script]

br,
edgar

thank you for this awesome tool
Roland



Edgar Poce wrote:
>
> Hi,
>
> On 10/28/06, Roland Kofler <[EMAIL PROTECTED]> wrote:
>>
>> Hello!
>> something like this doesnt work in jcr-commands:
>> xpathquery //element(*,s1NT:wikiPage)[EMAIL PROTECTED]'roland.kofler']
>>
>
> The command line tool uses the apostrophe character to delimit an
> argument (e.g. the xpath query) then if an apostrophe is inside the
> argument it needs to be escaped
>
> try
> xpathquery //element(*,s1NT:wikiPage)[EMAIL PROTECTED]'roland.kofler\']
>
> if your query has withespaces you should use:
> xpathquery '//element(*,s1NT:wikiPage)[EMAIL PROTECTED]'roland kofler\']'
> or
> xpathquery "//element(*,s1NT:wikiPage)[EMAIL PROTECTED]'roland kofler\']"
>
>> exception: javax.jcr.query.InvalidQueryException
>> message: Only attribute axis is allowed in predicate
>>
>> but it works in my java code!?
>> Is this a bug, and if so how can i help?
>>
>
> If you want to see or modify how the command line tool parsers the
> user's input see
> 
http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/cli/JcrParser.java?view=markup
>
> br,
> edgar
>
>>
>> --
>> View this message in context:
>> 
http://www.nabble.com/jcr-commands-doesn%27t-handle-querys-well-tf2529878.html#a7050490
>> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>>
>>
>
>

--
View this message in context: 
http://www.nabble.com/jcr-commands-doesn%27t-handle-querys-well-tf2529878.html#a7051922
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Reply via email to