Re: [basex-talk] Combining modules into a single file

2017-06-02 Thread George Sofianos

Hi Christian,

Unfortunately I haven't used the RESTXQ yet, so I'm mostly talking about 
arbitary XQuery projects that can be executed using the java API for 
example. I've made an ant script that takes all XQuery in an envelope 
(each one has its own namespace) and bundles them into a single XQuery 
file, but I had some issues with it, mostly because ant is not very easy 
to use.


But in any case it would be helpful if somehow this can be done within 
BaseX, like a step before compiling, so it will only bundle files that 
are importing each other, and not everything in an envelope, then give 
an option to export that bundle.


George


On 06/02/2017 01:20 PM, Christian Grün wrote:

Hi George,

Bundling modules into a single file would surely be helpful. For
example, I would like to distribute the DBA as zipped file in future.
Currently, there is no such solution available, mostly because we did
not have time to think about all conceptual details. Suggestions are
welcome. Do you mostly think about RESTXQ applications, files in
repositories, or arbitrary XQuery projects that should also be
runnable outside the web context?

Christian


On Wed, May 31, 2017 at 11:13 PM, George Sofianos  wrote:

Hi, and thanks for your awesome engine again!

I wonder if there is an easy and complete way of combining xquery files into
a single file. To give an example, I have about 16-17 xquery files,  some
are only 50-100 lines but some can be up to 1500 lines.

Because of multiple reasons, (legacy web application behaviour that makes it
hard to deploy updates, network file system that doesn't always work), it is
preferable to have one single file to execute on the XQuery engine. I know
it can be done with ant for example, but it's not very easy to cover all
cases, so maybe someone has a better idea :) I don't mind implementing
something in a different language, as long as I know it will be doable.

Thanks,

George




Re: [basex-talk] Combining modules into a single file

2017-06-02 Thread Christian Grün
Hi George,

Bundling modules into a single file would surely be helpful. For
example, I would like to distribute the DBA as zipped file in future.
Currently, there is no such solution available, mostly because we did
not have time to think about all conceptual details. Suggestions are
welcome. Do you mostly think about RESTXQ applications, files in
repositories, or arbitrary XQuery projects that should also be
runnable outside the web context?

Christian


On Wed, May 31, 2017 at 11:13 PM, George Sofianos  wrote:
> Hi, and thanks for your awesome engine again!
>
> I wonder if there is an easy and complete way of combining xquery files into
> a single file. To give an example, I have about 16-17 xquery files,  some
> are only 50-100 lines but some can be up to 1500 lines.
>
> Because of multiple reasons, (legacy web application behaviour that makes it
> hard to deploy updates, network file system that doesn't always work), it is
> preferable to have one single file to execute on the XQuery engine. I know
> it can be done with ant for example, but it's not very easy to cover all
> cases, so maybe someone has a better idea :) I don't mind implementing
> something in a different language, as long as I know it will be doable.
>
> Thanks,
>
> George


[basex-talk] Combining modules into a single file

2017-05-31 Thread George Sofianos

Hi, and thanks for your awesome engine again!

I wonder if there is an easy and complete way of combining xquery files 
into a single file. To give an example, I have about 16-17 xquery 
files,  some are only 50-100 lines but some can be up to 1500 lines.


Because of multiple reasons, (legacy web application behaviour that 
makes it hard to deploy updates, network file system that doesn't always 
work), it is preferable to have one single file to execute on the XQuery 
engine. I know it can be done with ant for example, but it's not very 
easy to cover all cases, so maybe someone has a better idea :) I don't 
mind implementing something in a different language, as long as I know 
it will be doable.


Thanks,

George