This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes How to make a war file which not included the test packages?.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How to make a war file which not included the test packages?.." Watch "How to make a war file which not included the test packages?.." New topic
Author

How to make a war file which not included the test packages?..

Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

Hi Friends ..

i have a question..
i've built any application and i used JUnit also..
i use Eclipse, and i ussually create a war file by Eclipse tools..
the problem is when i create a war file, my test packages included in the war file also...
is it automatically?..

i want to create war file just contain my source packages..

is there anyway to resolve it?..
do i have to use Maven?..

Thanks in advance ...


Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

i use Eclipse, and i ussually create a war file by Eclipse tools..

Which tools ? In Eclipse, you can usually select which packages you want to export.

do i have to use Maven?

No.


[My Blog]
All roads lead to JavaRanch
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Moving this to the IDE forum.

No you don't have to include the test folder, but I would guess you have Eclipse thinking this is a source folder and not a test folder.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

@Mark Spritzler
ok.. its nevermind .. iam sorry first if i've posted in wrong "Category Forum"..

I've made two scope packages..
source package and test package, which saved in "Java Resources" package in Eclipse..
am i right?..

i ussualy create war file just right click my project and i specify the folder.. am i right?
but the test package and the test libraries is still included also..

Thanks in advance
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make a war file which not included the test packages?..
 
Similar Threads
.ear file and .war files
Lomboz and MyEclipse
Integrating Eclipse 3.4 and WebSphere 6.1
Error deploying simple servlet
Continuous integration - Bamboo, Maven