Thread overview |
---|
November 20, 2014 dco how to specify Jpath? | ||||
---|---|---|---|---|
| ||||
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 Re: dco how to specify Jpath? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Suliman | 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 Re: dco how to specify Jpath? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Suliman | 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 Re: dco how to specify Jpath? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Suliman | 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 Re: dco how to specify Jpath? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Suliman | 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 Re: dco how to specify Jpath? | ||||
---|---|---|---|---|
| ||||
Posted in reply to FrankLike | 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 Re: dco how to specify Jpath? | ||||
---|---|---|---|---|
| ||||
Posted in reply to FrankLike | 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. |
Copyright © 1999-2021 by the D Language Foundation