João wrote:
> Is it possible to configure FB so that after the compiling ends, an
> external command is called? I know that if i use ant tasks this might
> be solved, but I was looking for something simpler. Does this feature
> exists? Is there any simple and straightforward way to achieve this?
> 
> Thanks, 
> 
> João Saleiro
> 
> 

You mean to run a shell script or something after a compile? You can do 
that by using the FB "external tool builders GUI" (or named something 
like that).
There is a GUI setting somewhere in there or you can create a dir called
.externalToolBuilders (if its not there already) and create a launch 
file eg) MyExternalCommand.launch with the follwoing contents:

prawn:~/Documents/myproject flex$ ls -l .externalToolBuilders/
-rw-r--r--    1 flex  flex  634 Aug 15 17:40 CopyTo(flex).launch


(note the call to the .sh script in the xml below - change that to your 
script)

prawn:~/Documents/myproject flex$ less 
.externalToolBuilders/CopyTo\(flex\).launch

<?xml version="1.0" encoding="UTF-8"?>
<launchConfiguration 
type="org.eclipse.ui.externaltools.ProgramBuilderLaunchConfigurationType">
<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" 
value="true"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" 
value="full,incremental,"/>

<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" 
value="/Users/flex/bin/copyTo.sh"/>

<booleanAttribute 
key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
<booleanAttribute 
key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
</launchConfiguration>


HTH.
shaun

Reply via email to