Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Gerald Rubin
When is it necessary to clean and compile before deploying?
18 de Junho de 2012 15:11
Resposta

Gerald Rubin

Ranking: Junior Member

Mensagens: 59

Data de entrada: 23 de Outubro de 2011

Mensagens recentes

I use Eclipse, Ant, Liferay 6.1, IDE 1.5. I've been told that after doing a service builder build this is necessary. Is it needed in any other case (or even in that one)?
David H Nebinger
RE: When is it necessary to clean and compile before deploying?
18 de Junho de 2012 19:16
Resposta

David H Nebinger

Ranking: Liferay Legend

Mensagens: 4496

Data de entrada: 1 de Setembro de 2006

Mensagens recentes

You should do a clean whenever you delete a java file (or something from service.xml to cover the service builder). Possibly also if you refactor a java class to a new name, although I'm not sure off the top of my head if the IDE will rename the compiled class correctly (probably, but you should check to make sure).

The whole ant build process will only compile java to a .class file, but it will not delete a .class that has no java source file.
Gerald Rubin
RE: When is it necessary to clean and compile before deploying?
19 de Junho de 2012 02:18
Resposta

Gerald Rubin

Ranking: Junior Member

Mensagens: 59

Data de entrada: 23 de Outubro de 2011

Mensagens recentes

Follow-up question: So is clean necessary, but not compile, since deploy does that step?
David H Nebinger
RE: When is it necessary to clean and compile before deploying?
19 de Junho de 2012 06:01
Resposta

David H Nebinger

Ranking: Liferay Legend

Mensagens: 4496

Data de entrada: 1 de Setembro de 2006

Mensagens recentes

In these cases, yes you'd have to manually invoke clean and deploy will handle the full build (compile, package, etc.).