Re: [flexcoders] Anybody Out there Please! Re: Flex Builder/Webapp/Flex

2007-09-19 Thread Adolfo Ruiz
Leif
   
  Do you use enterely ant for compile your flex apps ?, why did you decide not 
to use flexBuilder instead (i mean i like the idea for use ant but i dont know 
how to convince my architect to use it instead of the flex builder)?   

Leif Wells [EMAIL PROTECTED] escribió:
  Matt,

At my workplace, we normally have a team working on the front-end and another 
working on the Java back-end.

Although we share the same Subversion repository, we place our code in separate 
folders. The front-end team uses the root of the flex folder as the base of 
our Flex Builder project. 

For compiling, assembling and deploying we use Ant. Seriously, Ant is awesome. 
Check out the Flex Ant Tasks found on Adobe Labs 
(http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks ) for some examples of the 
tasks.

To generally describe this to you, we have two build.xml files, one in the Java 
folder and one in the Flex folder. The Java file will call to the Flex build 
file, compile the Flex files and assemble them, then compile the Java, move the 
Flex files into the Java deploy folder and then create the War file. When I 
come in to the office in the morning, I update my Subversion repository, run 
the build process, start Tomcat and load up Flex Builder. 

I can't share the Ant files with you today, but they honestly are fairly easy 
to put together. That is one of the great things about Ant --- it's fairly easy 
to use.

I hope this helps you.

Leif 


  On 9/18/07, mattmadhavan [EMAIL PROTECTED] wrote:

mattmadhavan wrote:
 
 Hi, 
 I would like the have the best practice to set up a webapp in my Eclipse.
 What are the recommended directory structure for java/flex source folders?
 Do I first create a webproject in eclipse, then place my flex binary
 folders in the webroot/WEB-INF folder? Do I keep my flex src code under
 webroot or at the project folder?
 
 If some one can give me a step by step instruction on doing this I would
 appreciate it. I need to work with both Java(server side-J2EE) and flex
 client in the same project.
 
 Most flex app I see do not even have a webroot folder. They just have
 WEB-INF folder in the root folder.
 
 Please, any ideas will be very appreciated.
 
 Thanks
 Matt
 

-- 
View this message in context: 
http://www.nabble.com/Flex-Builder-Webapp-Flex-tf4476764.html#a12767245 
Sent from the FlexCoders mailing list archive at Nabble.com.








  

 

   
-

¡Sé un mejor asador!
Aprende todo sobre asados en:
http://mx.yahoo.com/promos/mejorasador.html

Re: [flexcoders] Anybody Out there Please! Re: Flex Builder/Webapp/Flex

2007-09-19 Thread Tom Chiverton
On Wednesday 19 Sep 2007, [EMAIL PROTECTED] wrote:
   Do you use enterely ant for compile your flex apps ?, why did you decide
 not to use flexBuilder instead 

Maybe he doesn't have hundreds of dollers spare, runs on Linux, or wants more 
power than the Flex Builder process gives him ?

-- 
Tom Chiverton
Helping to administratively innovate performance-oriented synergies
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Anybody Out there Please! Re: Flex Builder/Webapp/Flex

2007-09-19 Thread mattmadhavan

Hi Simon and Leif,
Thank you very much for the replies. My background is J2EE and your
explanations was very helpful. It probably save me hours! 

I have couple of questions.

1. In the flex project, what does the folder pojo indicate? Java objects in
the Flex project?
2. Have you looked at the Cairngorm micro framework?

Also is there anyway you guys give me an ant make file. It will save me
hours and hours of my time and I will greatly appreciate it.

Both you were insiteful and I would like to keep in touch with both of you.

Thanks again!
Matt




simonjpalmer wrote:
 
 I have exactly this set up with a J2EE servlet project using the WTP
 Eclipse plug-in and a Flex Builder project in the wame Eclipse workspace.
 
 It is best to start from the server project and create a Dynamic Web
 Project first.  Get your servlet compiling and deploying into your app
 server even if it is empty.  Create a Java package for your domain
 model if you feel you need to start from having code.
 
 Next create a Flex Builder project and use the server project you just
 created as the context root.  I deploy my swf's into a folder at the
 same level as WEB-INF which has the name of my app, therefore my URL
 is of the form...
 
 https://server:port/servletname/appname/projectname.html
 
 e.g.
 
 https://localhost:8443/pmco-spring-server/spm/spm.html in my case
 
 pmco-spring-server is my WAR/EAR deployment name, spm is my app's
 generic name and the name of the Flex project and spm is also the name
 of my SWF root Application, so I have spm.html which embeds my spm.swf.
 
 My folders look like this...
 
 in the Java project...
 C:\development\coral\eclipse\pmco-spring-server\src
 C:\development\coral\eclipse\pmco-spring-server\src\pmco\pojos (my
 domain model)
 C:\development\coral\eclipse\pmco-spring-server\WebContent\spm this is
 the output folder of my Flex project
 C:\development\coral\eclipse\pmco-spring-server\WebContent\WEB-INF
 
 on the flex side...
 
 C:\development\coral\eclipse\spm this is my root app folder
 C:\development\coral\eclipse\spm\pmco\pojos this is my domain model
 
 coral is the release branch we are currently working on.
 
 The steps to build and deploy (which we automate in production builds
 using ANT) are to build the Flex project which has the output folder
 set to the spm folder under WebContent in the Java project, and
 therefore puts the swf's, html's etc into the deployment domain of the
 Java app, and then to export the whole of the app from the Java side
 as a WAR file.  That then gets copied into the deploy folder of the
 servlet container, in our case JBoss, and the servlet is visible
 through the web server.
 
 You can actually start from flex or Java, it is just simpler to
 configure the Flex project once you already have a server environment
 set up and a server to talk to.
 
 We have completely separate folders for each of the projects, Java and
 Flex and the only link is that the code lived in the same SVN
 repository and the Flex project builds into the Java project folder
 for ease of deployment.
 
 This has worked well for us and we are a multi-developer, multi-site
 team.  We don't strictly partition responsibilities between server and
 client code, but expertise tends to divide naturally along those lines.
 
 I know it is a pain to get started and I hope this helps.  You'll
 probably find a variant of this which will work for you and the
 situation may be different for different app servers, but the J2EE
 deployment model makes the structures similar in any case and don;t
 worry, as long as you keep your code safe, restructuring when you
 realise you have a better way of organising your activity is not the
 end of the world.
 
 Best of luck
 Simon
 --- In flexcoders@yahoogroups.com, Leif Wells [EMAIL PROTECTED] wrote:

 Matt,
 
 At my workplace, we normally have a team working on the front-end and
 another working on the Java back-end.
 
 Although we share the same Subversion repository, we place our code in
 separate folders. The front-end team uses the root of the flex
 folder as
 the base of our Flex Builder project.
 
 For compiling, assembling and deploying we use Ant. Seriously, Ant is
 awesome. Check out the Flex Ant Tasks found on Adobe Labs (
 http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks) for some
 examples of
 the tasks.
 
 To generally describe this to you, we have two build.xml files, one
 in the
 Java folder and one in the Flex folder. The Java file will call to
 the Flex
 build file, compile the Flex files and assemble them, then compile
 the Java,
 move the Flex files into the Java deploy folder and then create the War
 file. When I come in to the office in the morning, I update my
 Subversion
 repository, run the build process, start Tomcat and load up Flex
 Builder.
 
 I can't share the Ant files with you today, but they honestly are fairly
 easy to put together. That is one of the great things about Ant --- it's
 fairly easy to use.
 
 I hope this helps 

[flexcoders] Anybody Out there Please! Re: Flex Builder/Webapp/Flex

2007-09-18 Thread mattmadhavan



mattmadhavan wrote:
 
 Hi, 
 I would like the have the best practice to set up a webapp in my Eclipse.
 What are the recommended directory structure for java/flex source folders?
 Do I first create a webproject in eclipse, then place my flex binary
 folders in the webroot/WEB-INF folder? Do I keep my flex src code under
 webroot or at the project folder?
 
 If some one can give me a step by step instruction on doing this I would
 appreciate it. I need to work with both Java(server side-J2EE) and flex
 client in the same project.
 
 Most flex app I see do not even have  a webroot folder. They just have
 WEB-INF folder in the root folder.
 
 Please, any ideas will be very appreciated.
 
 Thanks
 Matt
 

-- 
View this message in context: 
http://www.nabble.com/Flex-Builder-Webapp-Flex-tf4476764.html#a12767245
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Anybody Out there Please! Re: Flex Builder/Webapp/Flex

2007-09-18 Thread Leif Wells
Matt,

At my workplace, we normally have a team working on the front-end and
another working on the Java back-end.

Although we share the same Subversion repository, we place our code in
separate folders. The front-end team uses the root of the flex folder as
the base of our Flex Builder project.

For compiling, assembling and deploying we use Ant. Seriously, Ant is
awesome. Check out the Flex Ant Tasks found on Adobe Labs (
http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks) for some examples of
the tasks.

To generally describe this to you, we have two build.xml files, one in the
Java folder and one in the Flex folder. The Java file will call to the Flex
build file, compile the Flex files and assemble them, then compile the Java,
move the Flex files into the Java deploy folder and then create the War
file. When I come in to the office in the morning, I update my Subversion
repository, run the build process, start Tomcat and load up Flex Builder.

I can't share the Ant files with you today, but they honestly are fairly
easy to put together. That is one of the great things about Ant --- it's
fairly easy to use.

I hope this helps you.

Leif


On 9/18/07, mattmadhavan [EMAIL PROTECTED] wrote:



 mattmadhavan wrote:
 
  Hi,
  I would like the have the best practice to set up a webapp in my
 Eclipse.
  What are the recommended directory structure for java/flex source
 folders?
  Do I first create a webproject in eclipse, then place my flex binary
  folders in the webroot/WEB-INF folder? Do I keep my flex src code under
  webroot or at the project folder?
 
  If some one can give me a step by step instruction on doing this I would
  appreciate it. I need to work with both Java(server side-J2EE) and flex
  client in the same project.
 
  Most flex app I see do not even have a webroot folder. They just have
  WEB-INF folder in the root folder.
 
  Please, any ideas will be very appreciated.
 
  Thanks
  Matt
 

 --
 View this message in context:
 http://www.nabble.com/Flex-Builder-Webapp-Flex-tf4476764.html#a12767245
 Sent from the FlexCoders mailing list archive at Nabble.com.

  



[flexcoders] Anybody Out there Please! Re: Flex Builder/Webapp/Flex

2007-09-18 Thread simonjpalmer
I have exactly this set up with a J2EE servlet project using the WTP
Eclipse plug-in and a Flex Builder project in the wame Eclipse workspace.

It is best to start from the server project and create a Dynamic Web
Project first.  Get your servlet compiling and deploying into your app
server even if it is empty.  Create a Java package for your domain
model if you feel you need to start from having code.

Next create a Flex Builder project and use the server project you just
created as the context root.  I deploy my swf's into a folder at the
same level as WEB-INF which has the name of my app, therefore my URL
is of the form...

https://server:port/servletname/appname/projectname.html

e.g.

https://localhost:8443/pmco-spring-server/spm/spm.html in my case

pmco-spring-server is my WAR/EAR deployment name, spm is my app's
generic name and the name of the Flex project and spm is also the name
of my SWF root Application, so I have spm.html which embeds my spm.swf.

My folders look like this...

in the Java project...
C:\development\coral\eclipse\pmco-spring-server\src
C:\development\coral\eclipse\pmco-spring-server\src\pmco\pojos (my
domain model)
C:\development\coral\eclipse\pmco-spring-server\WebContent\spm this is
the output folder of my Flex project
C:\development\coral\eclipse\pmco-spring-server\WebContent\WEB-INF

on the flex side...

C:\development\coral\eclipse\spm this is my root app folder
C:\development\coral\eclipse\spm\pmco\pojos this is my domain model

coral is the release branch we are currently working on.

The steps to build and deploy (which we automate in production builds
using ANT) are to build the Flex project which has the output folder
set to the spm folder under WebContent in the Java project, and
therefore puts the swf's, html's etc into the deployment domain of the
Java app, and then to export the whole of the app from the Java side
as a WAR file.  That then gets copied into the deploy folder of the
servlet container, in our case JBoss, and the servlet is visible
through the web server.

You can actually start from flex or Java, it is just simpler to
configure the Flex project once you already have a server environment
set up and a server to talk to.

We have completely separate folders for each of the projects, Java and
Flex and the only link is that the code lived in the same SVN
repository and the Flex project builds into the Java project folder
for ease of deployment.

This has worked well for us and we are a multi-developer, multi-site
team.  We don't strictly partition responsibilities between server and
client code, but expertise tends to divide naturally along those lines.

I know it is a pain to get started and I hope this helps.  You'll
probably find a variant of this which will work for you and the
situation may be different for different app servers, but the J2EE
deployment model makes the structures similar in any case and don;t
worry, as long as you keep your code safe, restructuring when you
realise you have a better way of organising your activity is not the
end of the world.

Best of luck
Simon
--- In flexcoders@yahoogroups.com, Leif Wells [EMAIL PROTECTED] wrote:

 Matt,
 
 At my workplace, we normally have a team working on the front-end and
 another working on the Java back-end.
 
 Although we share the same Subversion repository, we place our code in
 separate folders. The front-end team uses the root of the flex
folder as
 the base of our Flex Builder project.
 
 For compiling, assembling and deploying we use Ant. Seriously, Ant is
 awesome. Check out the Flex Ant Tasks found on Adobe Labs (
 http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks) for some
examples of
 the tasks.
 
 To generally describe this to you, we have two build.xml files, one
in the
 Java folder and one in the Flex folder. The Java file will call to
the Flex
 build file, compile the Flex files and assemble them, then compile
the Java,
 move the Flex files into the Java deploy folder and then create the War
 file. When I come in to the office in the morning, I update my
Subversion
 repository, run the build process, start Tomcat and load up Flex
Builder.
 
 I can't share the Ant files with you today, but they honestly are fairly
 easy to put together. That is one of the great things about Ant --- it's
 fairly easy to use.
 
 I hope this helps you.
 
 Leif
 
 
 On 9/18/07, mattmadhavan [EMAIL PROTECTED] wrote:
 
 
 
  mattmadhavan wrote:
  
   Hi,
   I would like the have the best practice to set up a webapp in my
  Eclipse.
   What are the recommended directory structure for java/flex source
  folders?
   Do I first create a webproject in eclipse, then place my flex binary
   folders in the webroot/WEB-INF folder? Do I keep my flex src
code under
   webroot or at the project folder?
  
   If some one can give me a step by step instruction on doing this
I would
   appreciate it. I need to work with both Java(server side-J2EE)
and flex
   client in the same project.
  
   Most flex app I see