cancel
Showing results for 
Search instead for 
Did you mean: 

Seperate folders for .hdbtables & .hdbviews as build output

former_member699598
Discoverer
0 Kudos

Hi everyone,

Currently I am getting familiar with the CAP model.

Now I would like to output the generated files (generated by "cds build") into the subfolders "hdbtables" & "hdbviews", so that the hdbtables & hdbviews are organized.

The current output looks like this:

[cds] - done > wrote output to:
  db/src/gen/.hdiconfig
  db/src/gen/.hdinamespace
  db/src/gen/data_model.Books.hdbtable
  db/src/gen/data_model.Books_texts.hdbtable
  db/src/gen/localized.data_model.Books.hdbview
  srv/gen/csn.json

How I want to see the output:

[cds] - done > wrote output to:
  db/src/gen/.hdiconfig
  db/src/gen/.hdinamespace
  db/src/gen/hdbtable/data_model.Books.hdbtable
  db/src/gen/hdbtable/data_model.Books_texts.hdbtable
  db/src/gen/hdbview/localized.data_model.Books.hdbview
  srv/gen/csn.json

Is there a way to customize the code (e.g. the package.json) in such a way that this result can be accomplished?

Accepted Solutions (1)

Accepted Solutions (1)

chgeo
Advisor
Advisor
0 Kudos

At the moment there is no way to customize this. May I ask why you would like to have that?

former_member699598
Discoverer
0 Kudos

Hi Christian,

This was a way of working in the previous model and wanted to not change this in the CAP model. There is no other specific reason. It is good to know that is not possible in the CAP model. Thank you for your quick response.

Answers (1)

Answers (1)

gregorw
Active Contributor

Hi Jochem,

maybe you simply add a script to your package.json that moves the files to the location you like to have?

Best regards
Gregor