Skip to Content
author's profile photo Former Member
Former Member

import cannot be resolved ant

I'm trying to use a class from the platformwebservices extension in my custom extension. If I add the dependency to that project in the Ee class path, Ee can see the class. I also added in the extensioninfo.xml of my extension

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 06, 2015 at 05:23 PM

    Unfortunately, import of classes located in /web directory (e.g. /web/webroot/WEB-INF/classes) cannot be resolved. Classes from /web directory are not shared across different extensions.

    Otherwise, classes from /src folder should be accessible from other extensions when imported.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 13, 2015 at 02:14 PM

    Hi,

    Try adding your custom class under /web/src and use the imports from platformwebservices.

    Regards, Shwetha

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.