Table of Contents

Creating Ant project from existing sources


Prerequisites

JDK, Ant and Maven need to be configured. You can find instructions in this section.

Actions

Choose File / New / Project... menu option in Visual Studio. The New project dialog will appear.

Choose the Ant project from existing sources template. Enter the name of the project. It will be set as the disk name of created solution (.sln) and project (.isproj) files. The name also will be visible as your project name in the solution.

Now specify location of the project. Click Browse and choose your project directory. A project directory is where your top level src directory resides in. Java source hierarchy must be located further inside the src. For example, if you specify c:\dev\java\MyProject when browsing, then your sources can be located e.g. in c:\dev\java\MyProject\src, for example c:\dev\java\MyProject\src\com\mygrp\myproject\main.java. The IntegraStudio project file and the Ant build.xml file will reside in c:\dev\java\MyProject.

After choosing your project directory, click OK. A dialog will appear, allowing to configure which directories under the project directory contain sources. It does not need to be a single src directory, as in previous example. You can define any number of directories with arbitrary names.

In addition, you can also configure a number of directories containing sources of tests. Currently JUnit 4 tests are supported this way. If you specify at least one such directory, IntegraStudio will generate additional test targets with JUnit task invocations to run these tests.

Test directories are optional, but at least one regular source directory is required. Specified directories should be inside the project folder.

Click OK when you are done with directories. IntegraStudio will generate the project now and inform you whether it succeeded or failed. Click OK again.

Finally, Visual Studio will display its own standard dialog prompting you for the solution file name. You should be familiar with this, because it is the same as during creation of any other type of project (e.g. C++ or C#). Most likely you want to keep default solution name. Click OK.

The project is now ready for work.

Table of Contents


Copyright (C) 2014-2016 SOFT-ERG. All rights reserved.