[ 
https://issues.apache.org/jira/browse/AVRO-676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12918099#action_12918099
 ] 

Arun C Murthy commented on AVRO-676:
------------------------------------

Thanks for the clarification Doug. 

I get this error with a relative path:

{code}
  import idl "../../../foo/main/avro/a.genavro";
{code}

{noformat}
Embedded error: Error importing ../../../foo/main/avro/a.genavro: 
java.io.FileNotFoundException: ./../../../foo/main/avro/a.genavro (No such file 
or directory)
Caused by: org.apache.avro.idl.ParseException: Error importing 
../../../foo/main/avro/a.genavro: java.io.FileNotFoundException: 
./../../../foo/main/avro/a.genavro (No such file or directory)
        at org.apache.avro.idl.Idl.ImportIdl(Idl.java:320)
        at org.apache.avro.idl.Idl.ProtocolBody(Idl.java:261)
        at org.apache.avro.idl.Idl.ProtocolDeclaration(Idl.java:162)
        at org.apache.avro.idl.Idl.CompilationUnit(Idl.java:49)
        at org.apache.avro.mojo.AvroMojo.execute(AvroMojo.java:153)
{noformat}

I have verified that the relative path is correct... am I missing anything? 
Help? Thanks.


> Avro IDL can't process includes from disparate src trees
> --------------------------------------------------------
>
>                 Key: AVRO-676
>                 URL: https://issues.apache.org/jira/browse/AVRO-676
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.4.0
>            Reporter: Arun C Murthy
>         Attachments: AVRO-676.patch
>
>
> AVRO-495 introduced support from includes in IDL. However it turns out that a 
> bug in the implementation, which assumes that the path for the included path 
> is in the same src tree causes it to not support includes from different 
> source trees.
> E.g.
> src/foo/main/avro/a.genavro
> // something here
> ...
> src/foobar/main/avro/b.genavro
> protocol foobar {
>   import idl "src/foo/main/avro/a.genavro";
>   ...
> }.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to