• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Leonardo Carreira
Ranch Hand
Posts: 494
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ...
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Leonardo Carreira
Ranch Hand
Posts: 494
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic