- This topic has 2 replies, 2 voices, and was last updated 19 years, 3 months ago by wshao518.
-
AuthorPosts
-
wshao518ParticipantI have a web project depend a java project and another web project. The java project will be jared and deploied while there is nothing for the web project. Basically, I just want to reuse some classes of that web project and I set the depending access rule to be *.java. It didn’t help. So I come here and found this post, now I know that web project won’t be jared even you are depending on it. However, I just need the that web project’s classes to be deploied as a part of the new web project. Is there anything I can do about it except create another java project or write an build.xml to deploy?
Scott AndersonParticipantI have a web project depend a java project and another web project. The java project will be jared and deploied while there is nothing for the web project.
Correct. One web project depending on another is not supported because it would necessitate some sort of “merge” semantics (ie. which web.xml? etc).
Basically, I just want to reuse some classes of that web project
Then you’ll have to move them into another Java project and have both web projects depend on it, since they would both be using those classes.
Is there anything I can do about it except create another java project or write an build.xml to deploy?
That’s really all there is at the moment. Sorry.
wshao518Participant@support-scott wrote:
Basically, I just want to reuse some classes of that web project
Then you’ll have to move them into another Java project and have both web projects depend on it, since they would both be using those classes.
Well, hope you will have some option like include another web project as java project in future. It’s really not convinient to put web project java classes in a java project in source control to another location. For example, we have struts tiles FactorySet and General Action class override struts Action class in our web project. It’s doesn’t make a lot of sense that I move them out of the web project. And of course, another web project want to reuse these classes. It’s just not right to move things around in source control just for myeclipse won’t deploy automatically.
When we are talking about jar file, we don’t really want a automatically config file merged war file. Jar file is just for classpath.
-
AuthorPosts