Thread overview
dco how to specify Jpath?
Nov 20, 2014
Suliman
Dec 21, 2014
FrankLike
Dec 21, 2014
FrankLike
Dec 21, 2014
FrankLike
Dec 21, 2014
FrankLike
Jan 09, 2015
FrankLike
Feb 01, 2015
FrankLike
November 20, 2014
I am playing with dco. And it's look very helpful for tiny projects.

I can't understand is it's possible to add to dco.ini Jpath?
I am talking about something like:
dflags=-JD:\code\d\App1\source\

but when I am trying to compile code with dco it's can't find import.
I looked at source code and it's look like it's do not support dflags...

https://github.com/FrankLIKE/dco/tree/master/source
December 21, 2014
On Thursday, 20 November 2014 at 10:48:17 UTC, Suliman wrote:
> I am playing with dco. And it's look very helpful for tiny projects.
>
> I can't understand is it's possible to add to dco.ini Jpath?
> I am talking about something like:
> dflags=-JD:\code\d\App1\source\
>
> but when I am trying to compile code with dco it's can't find import.
> I looked at source code and it's look like it's do not support dflags...
>
> https://github.com/FrankLIKE/dco/tree/master/source

Ok,I will add it. Thank you.
December 21, 2014
On Thursday, 20 November 2014 at 10:48:17 UTC, Suliman wrote:
> I am playing with dco. And it's look very helpful for tiny projects.
>
> I can't understand is it's possible to add to dco.ini Jpath?
> I am talking about something like:
> dflags=-JD:\code\d\App1\source\
>
> but when I am trying to compile code with dco it's can't find import.
> I looked at source code and it's look like it's do not support dflags...
>
> https://github.com/FrankLIKE/dco/tree/master/source

-Jpath
where to look for files for ImportExpressions. This switch is required in order to use ImportExpressions. path is a ; separated list of paths. Multiple -J's can be used, and the paths are searched in the same order.

ImportExpression:
    import ( AssignExpression )

But -Ipath
    -ID:\code\d\App1\source\
It's ok.
So dco now can do it.
December 21, 2014
On Thursday, 20 November 2014 at 10:48:17 UTC, Suliman wrote:
> I am playing with dco. And it's look very helpful for tiny projects.
>
> I can't understand is it's possible to add to dco.ini Jpath?
> I am talking about something like:
> dflags=-JD:\code\d\App1\source\
>
> but when I am trying to compile code with dco it's can't find import.
> I looked at source code and it's look like it's do not support dflags...
>
> https://github.com/FrankLIKE/dco/tree/master/source

Default importPath is importPath=-I$(DMDInstallDir)windows/import
You can modify it to your source. or add your source to the end.

to do it:
importPath=-I$(DMDInstallDir)windows/import -ID:\code\d\App1\source\
December 21, 2014
On Thursday, 20 November 2014 at 10:48:17 UTC, Suliman wrote:
> I am playing with dco. And it's look very helpful for tiny projects.
>
> I can't understand is it's possible to add to dco.ini Jpath?
> I am talking about something like:
> dflags=-JD:\code\d\App1\source\
>
> but when I am trying to compile code with dco it's can't find import.
> I looked at source code and it's look like it's do not support dflags...
>
> https://github.com/FrankLIKE/dco/tree/master/source

In dco.ini
importPath= -I..\\source // modity it to your source
January 09, 2015
On Sunday, 21 December 2014 at 07:43:14 UTC, FrankLike wrote:
> On Thursday, 20 November 2014 at 10:48:17 UTC, Suliman wrote:
>> I am playing with dco. And it's look very helpful for tiny projects.
>>
>> I can't understand is it's possible to add to dco.ini Jpath?
>> I am talking about something like:
>> dflags=-JD:\code\d\App1\source\
>>
>> but when I am trying to compile code with dco it's can't find import.
>> I looked at source code and it's look like it's do not support dflags...
>>
>> https://github.com/FrankLIKE/dco/tree/master/source
>
> In dco.ini
> importPath= -I..\\source // modity it to your source

In dco 0.1.0,you can get the 'local.ini' by 'dco -ini'.
You can config project in local.
February 01, 2015
On Friday, 9 January 2015 at 16:40:37 UTC, FrankLike wrote:

https://github.com/FrankLIKE/dco

you can use dco by local.ini( create it by dco -ini ),config your info into local.ini.
modify the ';dflag=' to 'dflags=-JyourPath'

Thank you.