GAS3 plugin file: protocol

7 views
Skip to first unread message

Roland Zwaga

unread,
May 21, 2012, 8:36:30 AM5/21/12
to Granite Data Services Forum
Hey there,

another quick question about the GAS3 plugin:
On the templates form I can define the path to my custom templates, so
far I've only managed to get this to work with a fully qualified path
to the .gsp file. Naturally I'd like to use a URI there that is
relative to the project root.
But If I use such a path l get a file not found error. So, what
exactly is the root directory that the code generator works from?

thanks again for your time!

cheers,

Roland Zwaga

Franck Wolff

unread,
May 22, 2012, 3:50:28 PM5/22/12
to gran...@googlegroups.com
Good question. I believe it was relative to the eclipse executable or some other useless working directory...

Download the last builder build here: it now uses the current project directory if the templates uris aren't absolute (eg. "mytemplate.gsp" or "file:mytemplate.gsp" or "path/mytemplate.gsp" or even "file:path with whitespaces which is a bad idea anyway/mytemplate.gsp" will be resolved against the current project root directory).

The Ant task should also resolve relative template uris based on the project "basedir" attribute.

Tell us if it works as expected.

Roland Zwaga

unread,
May 24, 2012, 3:47:37 AM5/24/12
to Granite Data Services Forum
Hey Franck,

thanks for the pointers, I'll try the new version and let you know if
all is good.

cheers,

Roland

On May 22, 9:50 pm, Franck Wolff <frawo...@gmail.com> wrote:
> Good question. I believe it was relative to the eclipse executable or some
> other useless working directory...
>
> Download the last builder build here<http://www.graniteds.org/bamboo/browse/GDSEB-GDSEB-228/artifact>:

Roland Zwaga

unread,
May 24, 2012, 4:44:14 AM5/24/12
to Granite Data Services Forum
Hi Franck,

yep, the relative paths work like a charm now.
By the way, do you think it'll be difficult to add the ability to add
extra templates?
It would be really cool if I can just add an arbitrary amount of
templates to for, say, REMOTE_DESTINATION,
it would make the entire system so much more powerful, IMHO.

Thanks for your wonderful work!

Roland

Franck Wolff

unread,
May 24, 2012, 8:25:25 AM5/24/12
to gran...@googlegroups.com
At the beginning, gas3 was designed to support an arbitrary number of templates, but I pretty sure that it wouldn't be straightforward to add this feature now: it has evolved with several infractions to this original design and this extension would now require a significant work...

I have planned to do a huge refactoring of gas3 by the end of this year, but we are working at the same time on several new things and I can't tell if I'll find time to do it.

Thanks for the tests!

Franck.
Reply all
Reply to author
Forward
0 new messages