How to run the Studio-provided version of Apache Ant from the command line
                    
                
                
                    
                        book
                        
Article ID: KB0076158
                        
                    
                    
                        calendar_today
                        
Updated On: 
                    
                 
                
                
                
                    
                
                    
                    
                    
                    
                        
                            
Description
                        
                        
                            How to run the version of Apache Ant that comes with StreamBase Studio from the command line.
                         
                     
                    
                    
                    
                    
                        
                            
                                
Resolution
                            
                            
                                To use Apache Ant from the command line, set the ANT_HOME environment variable and then add ${ANT_HOME}/bin to the end of the path.StreamBase Studio uses the Eclipse IDE, and ships with the usual components of a JDT-oriented Eclipse installation. This includes the Eclipse plugin for Apache Ant.  The Eclipse installation is found in ${STREAMBASE_HOME}/lib64/studio for a 64-bit StreamBase Studio installation, or ${STREAMBASE_HOME}/lib/studio for a 32-bit installation. The Apache Ant plugin is located in the sub-folder: plugins/org.apache.ant<version>/. The exact name of the ant plugin directory will vary with the version that has been installed.
For example, using StreamBase 7.5.2 on Windows 64, 
ANT_HOME would be:
C:\tibco\sb-cep\7.5\lib64\studio\plugins\org.apache.ant_1.9.2.v201404171502
To use Ant from the command line, start a StreamBase Command Prompt from the root of a Studio project, then set 
ANT_HOME and add ANT_HOME/bin to the PATH: 
>> set ANT_HOME=C:\tibco\sb-cep\7.5\lib64\studio\plugins\org.apache.ant_1.9.2.v201404171502
>> set PATH=%PATH%;%ANT_HOME%\bin
 
You may also have to set JAVA_HOME to your desired JDK installation directory and add JAVA_HOME/bin to the PATH.
At this point, Ant will be usable from the command line.   
                            
 
                         
                        
                    
                        
                            
                                
Issue/Introduction
                            
                            
                                How to run the Studio-provided version of Apache Ant from the command line
                            
                         
                        
                    
                    
                    
                
                    
                        
                            Was this article helpful?
                        
                        
                            
                                thumb_up
                                Yes
                            
                            
                                thumb_down
                                No