sach
sach

Reputation: 127

Flex hot deployment for local tomcat server

I am working on flex application and whenever I do any change in action scripts or mxml file I'll have to build it create a war file and deploy it on local tomcat server. Is there any way I could do hot deployment for flex for tomcat?

Thanks Sach

Upvotes: 1

Views: 257

Answers (1)

Gerhard Schlager
Gerhard Schlager

Reputation: 3145

You can use a custom Builder if you are using Flash Builder. I'm using a simple batch file that copies the output from bin-debug to Tomcat's webapps folder after every build.

@ECHO OFF

IF NOT EXIST "%1" GOTO END
IF NOT EXIST "%2" GOTO END

DEL /Q "%2\*.*"
COPY /Y "%1\*.*" "%2"

:END
ECHO ON

Configure the Builder like this: Go to Project -> Properties -> Builders and add a new Builder.

Configure the Builder Change when the Builder should run

Upvotes: 2

Related Questions