lock [Solved] Generate Directory without creating namespace

7 years 8 months ago #194 by michok34
Hi

Thanks for the advise. But I don't think that creating two different projects for each model and related test unit is a solution. It's like if I'd create two eclipse projects for the same solution.

Anyway here is how my modelio is configured:
General workspace : c:\all_workspace
Configuration>Settings>Java Designer>Directories:
code generation = c:\all_workspace\$(Project)

My Model is like TMA's Solution (please note I changed component's name to 'model' to disable misunderstood):
Proj1
  |_model (Java Component : annotations/Generation Path=model|Top file=null)
    |_ pkg1  (Java Package)
      |_Class1  (Java Class)
  |_test (Java Component : annotations/Generation Path=test|Top file=null)
    |_ pkg1  (Java Package)
      |_Class1_Test (Java Class)

With this solution, generation path is c:\all_workspace\Proj1\model\src\pkg1 and c:\all_workspace\Proj1\test\src\pkg1

With CHM's solution, generation path is c:\all_workspace\Proj1\model\src\model\pkg1 and c:\all_workspace\Proj1\test\src\test\pkg1

In this last solution, if I set java component's annotation "generation path" to null, the new generation path is c:\all_workspace\Proj1\src\model\pkg1 and c:\all_workspace\Proj1\src\test\pkg1

It's almost what I'm looking for except I don't want that "src" directory.

Thanks for your help.
The topic has been locked.
7 years 8 months ago - 7 years 8 months ago #198 by chm

michok34 wrote: Anyway here is how my modelio is configured:
General workspace : c:\all_workspace
Configuration>Settings>Java Designer>Directories:
code generation = c:\all_workspace\$(Project)


Your configuration is kind of weird, you should have:
General workspace : c:\all_workspace
Configuration>Settings>Java Designer>Directories:
code generation = $(Project)

And a model like this one:
Proj1
  |_model (<<Java Component>> : annotations/Generation Path=null)
    |_ modelProject  (<<Jar File>> : annotations/Generation Path=src)
       |_ manifestation (targeting "model")
    |_ pkg1  (Java Package)
      |_Class1  (Java Class)
  |_test (<<Java Component>> : annotations/Generation Path=null)
    |_ testProject  (<<Jar File>> : annotations/Generation Path=test)
       |_ manifestation (targeting "test")
    |_ pkg1  (Java Package)
      |_Class1_Test (Java Class)
The topic has been locked.
7 years 8 months ago - 7 years 8 months ago #200 by michok34
Yaaataaa !
My bad. I changed configuration directories as you recommended it and everything works fine.

My previous configuration used the default workspace directory therefore I set a different code generation path. Then I changed the general workspace and move the project without modifying the path.

Many thanks!

Hello to the rest of SQY's team ;)

You can set this topic to solved
The topic has been locked.
7 years 8 months ago #202 by chm
Thank you. B)

Marking the problem as solved and locking the thread...
The topic has been locked.
Moderators: tmachmebr
Time to create page: 0.040 seconds
^ Back to Top