How do I perform custom build steps in Flex Builder 3? - flexbuilder

I want to do some of the things in Flex Builder 3 that I would use custom build steps for in Visual Studio. They aren't in the project properties and Google is not much help either.
Is it possible to add custom build steps in Flex Builder 3 or Eclipse more generally? If so, now do I do it?

The Advanced Build Options section of the Flex documentation indicates you can create custom builders in Flex Builder using Apache Ant.
Additional information about using Ant with Eclipse can be found on Simon Whatley's blog

Related

Integrating C++ coverage with sonarqube

I am using Google test framework for C++ unit tests. We are building our projects using MsBuild (runs on teamcity). Now, I want sonarqube to parse the coverage info. We have cfamily plugin in sonarqube. The compatible reports with cfamily plugin are bullseye, vscoverage, gcov, llvm-cov. As per my knowledge, because we can't use gcc for compiling, llvm-cov and gcov are ruled out. Since we are using googletest and also wants to run this on teamcity, vscoverage isn't possible. We aren't using Bullseye. (It is more for functional automation I am told).
So I have decide to use OpenCppCoverage tool. This can generate coverage in cobertura format or generic format specified by sonarqube. I have tried generic format but sonarqube is ignoring the coverage for files but is parsing them successfully.
Exploring more, I tried to use C++ community plugin(cxx). But I wasn't able to disable cfamily plugin so that C++ community can be used.
So I want to know if I can do something else so that coverage of our C++ test projects can be parsed by sonarqube.
Did you try sonar-cxx plug-in from SonarOpenCommunity. This plugin adds C++ support to SonarQube. It's free plug-in and availble with LGPL-3.0 License.
I made the paths in coverage report generated by OpenCppCoverage using OCCSonarQube plugin. Now SonarQube is able to parse the report in generic format.

How to set Eclipse CDT configuration build directory programmatically?

I'm developing an Eclipse plug-in to help my colleagues create C++ projects build configurations from a simple user interface. The only build configuration parameter I can't set programmatically is the project build location, surrounded with a red box in the above image.
I was looking for a function of org.eclipse.cdt.managedbuilder.core.IConfiguration to do that, but I didn't find any. Can you help me please on this? I'm using Eclipse 4.6.3 and CDT 9.2.1
Based on the CDT source code, that dialog's code sets the build path using IConfiguration.getEditableBuilder().setBuildPath().

How to show the build ant script that IBM RAD 9.1 use to build a Websphere Application project?

I can build my project successful in IBM RAD, but I got error when I build using ant script by myself. So I want to know the build script that IBM RAD used. How can I check it ?
Update my question: How can I show or modify build file or Java builder in RAD as attached image
Eclipse (and thus RAD) does not use ant to build projects, it uses one or more things things called builders. For example the Java Builder is used to translate Java source files into .class files. You can see this by selecting a project in your workspace, left click and select Properties, then Builders

Eclipse CDT Custom Compiler Error Parsing Plugin

I'm using an uncommon C compiler with Eclipse CDT. I have a make file setup which is nice, but I'd like IDE integration with the error / warning output of my compiler.
Does anybody know what steps I can take to write a plugin for parsing / supporting my compilers output? I think it should be easy but there is a barrier of entry of figuring out where to start. Would be nice if Eclipse would let me do New -> Compiler Error Parser Plugin, or something like that.
Thanks
It's not quite that simple...
First of all make sure you have the Eclipse PDE (Plug-in Development Environment) and CDT SDK installed. If not then you'll need to tell Eclipse to download them (Help -> Install New Software).
Then, create a new Plug-In project. In its Extensions tab, add a new extension against point org.eclipse.cdt.core.ErrorParser. You will then have to write some java code to actually implement it. Fortunately the PDE makes the meta-work relatively straightforward; you put the name of your class in the appropriate box and click on the "class*" hyperlink and it will offer to create a skeleton class for you.
I suggest you grab the source code to the CDT and have a look at GCCErrorParser.java as an illustration of the sorts of things yours will have to do.
Finally, when you're ready to test it, set up a debug configuration of type Eclipse Application. (This will spawn a second instance of Eclipse; it has to use a different workbench.) Go into the properties of your C project, Settings panel, Error Parsers tab and switch on your shiny new error parser.
In Eclipse CDT 7.0.1 it's pretty simple. Just add a new error parser
under Window -> Preferences -> C/C++ Build -> Settings
and add regular expression with 3 groups: filename, linenumber and error description.
For example, for Visual Studio compiler regexp will be:
(.*?)\((\d*)\)\s:\s(.*error.*)
$1 - filename
$2 - line number
$3 - error description
IBM has published a step-by-step guide to how you can write your own CDT parser, its available here
Relevant google search for future proofing should be:
https://www.google.com/search?q=ibm+eclipse+write+cdt+parser&oq=ibm+eclipse+write+cdt+error+parser
In CDT 7 there is going to be a regular expression error parser included which should make this sort of thing much simpler. There are some details on the faq.
CDT 7.0 won't be released until the end of June, but you could try milestone builds to see if it does what you want. These can be downloaded here. You'll need to have a matching milestone version of the eclipse platform too.
I am using this plugin:
http://www.isystem.com/downloads/downloads/204-Eclipse-Downloads.html
is this working ?
(.*)\((\d+)\)\s:\sError(.*)
file: $1
line: $2
desc: $3
.
srkos
In CDT 8 this functionality does not require a plugin. I have support for several compilers and build systems using simple regular expressions. See screenshot here. You can test the regexes directly in the console output before copying them to this dialog. If you need to move them between machines, the resulting parsers are stored in your workspace under .metadata/.plugins/org.eclipse.cdt.core

What plugins do you use along with Eclipse CDT?

Suggest some plugins you find useful in your day by day work.
Eclipse CDT repositories:
Helios: http://download.eclipse.org/releases/helios
C++ Development Tools: http://download.eclipse.org/tools/cdt/releases/helios
Plugins:
Subclipse: http://subclipse.tigris.org/update_1.6.x
Eclipse Linux Tools: http://download.eclipse.org/technology/linuxtools/update
CMakeBuilder: http://www.cmakebuilder.com/update
CMake Editor: http://cmakeed.sourceforge.net/updates
Qt Eclipse Integration: Installation instructions link
Eclipse CORBA Plugin: http://eclipsecorba.sourceforge.net/update
Please add one plugin with its eclipse update url for posting.
I am using
Qt plugin for Eclipse
CMakeEdit for colorful CMakeLists.txt ;-)
Subversion (tried subversive, didn't work for me)
tried the linuxtools plugins (very ambitious project) for valgrind etc., but they are not
really working ATM
I use a self-made plugin to do automated builds of CDT projects.
THis plugin is automatically creating a workspace from a description file that contains the project names, disables the indexer and auto-build, sets the wanted build configuration in all projects and then builds the temporary workspace.
I use viplugin to get vim keybindings in Eclipse.
EGit - it's definitely helpful although I still do a fair amount of gitty stuff on the command line (and EGit stays in sync with changes I make on the command line, of course).