• Welcome to KonaKart Community Forum. Please login or sign up.

Eclipse project for Programming KonaKart

Started by smudge, July 03, 2018, 08:01:59 am

Previous topic - Next topic


Is there an Eclipse project for programming the KonaKart storefront?
How do I load the source code into Eclipse for easy development of the storefront?


Yes, there is a simple way to create an Eclipse project for developing the storefront in Eclipse.

First open a command window in the custom directory of your installation:

(Showing the example on Windows where KonaKart is installed at C:\KonaKart which is the default):

You will see there are actually two Eclipse projects that can be created:

PS C:\KonaKart\custom> .\bin\kkant -p | findstr Eclipse
make_eclipse_project                     Create an Eclipse Project for Developing the Struts-2 Storefront
make_eclipse_wizard_project              Create an Eclipse Project for Developing the Product Creation Wizard

For developing the storefront you need to run the make_eclipse_project target

When you run the make_eclipse_project target note the additional comments displayed at the end:

PS C:\KonaKart\custom> .\bin\kkant make_eclipse_project
Buildfile: C:\KonaKart\custom\build.xml
Trying to override old definition of task javac

     [echo] Create an Eclipse Project for Developing the Struts-2 Storefront
    [mkdir] Created dir: C:\KonaKart\custom\appEngEE\src
    [mkdir] Created dir: C:\KonaKart\custom\kkeclipse\src
    [mkdir] Created dir: C:\KonaKart\custom\kkeclipse\build\classes
    [mkdir] Created dir: C:\KonaKart\custom\kkeclipse\licenses
    [mkdir] Created dir: C:\KonaKart\custom\kkeclipse\resources
    [mkdir] Created dir: C:\KonaKart\custom\kkeclipse\WebContent
    [mkdir] Created dir: C:\KonaKart\custom\kkeclipse\src\com\konakart\bl\modules\others
    [mkdir] Created dir: C:\KonaKart\custom\kkeclipse\src\com\konakartadmin\modules\others
     [copy] Copying 2 files to C:\KonaKart\custom\kkeclipse
     [copy] Copying 581 files to C:\KonaKart\custom\kkeclipse\src
     [copy] Copying 28 files to C:\KonaKart\custom\kkeclipse\resources
     [copy] Copying 1 file to C:\KonaKart\custom\kkeclipse\licenses
     [copy] Copying 1551 files to C:\KonaKart\custom\kkeclipse\WebContent
     [echo] -----------------------------------------------------------------------------------
     [echo] Eclipse Project Created on disk - called kkeclipse
     [echo] Start Eclipse
     [echo] Create a tomcat server (see 'Servers' in Eclipse)
     [echo] Move the kkeclipse directory to another location for development if you wish
     [echo] Import the kkeclipse project using 'Import existing projects into Workspace'
     [echo] Assign a server for kkeclipse to use (define server under Project Properties)
     [echo] Edit, Debug and Run the KonaKart Storefront in Eclipse!
     [echo] -----------------------------------------------------------------------------------


The numbers of files copied shown in the output will differ depending on the version of KonaKart.