Hi,
I am using maven with nar plugin to compile also C++ code.
And now I was asked to create from the maven the Visual Stuido vcprojx files
(SInce the maven have all the information).
So- I am using a maven profile to compile every "Configuration" of Visual
Studio, I want to take an empty VCProjx file, and fill it with the relevant
elements of each profile.
Test2.xml <http://freemarker.624813.n4.nabble.com/file/n4654628/Test2.xml>
If you look at the attached file, you can see for example-
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
What I want to do- is create a template-
<ProjectConfiguration Include="${configuration}|${platform}">
<Configuration>${configuration}</Configuration>
<Platform>${platform}</Platform>
</ProjectConfiguration>
That will be populate during running on one of the maven profiles, and it
will create the correct XML element, that will be later injected to the -
<ItemGroup Label="ProjectConfigurations">
[ of course- I will need several templates to support all the entries in the
vcprojx file, but the idea is the same- process the templates and inject
them to the correct place in the file]
Eyal
--
View this message in context: http://freemarker.624813.n4.nabble.com/FreeMarker-for-newbies-tp4654620p4654628.html
Sent from the freemarker-user mailing list archive at Nabble.com.