Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
JabX committed Sep 24, 2024
1 parent a27223e commit a827501
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 13 deletions.
16 changes: 11 additions & 5 deletions TopModel.Generator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,17 @@ void SearchConfigFile(string dirName, int depth = 0)
string GetCgHash()
{
return GetHash(
Directory
.EnumerateFiles(
Path.GetFullPath(cg, new FileInfo(fullName).DirectoryName!),
"*.cs",
SearchOption.AllDirectories)
new DirectoryInfo(Path.Combine(Path.GetFullPath(cg, new FileInfo(fullName).DirectoryName!), "bin"))
.GetFiles($"*.dll", SearchOption.AllDirectories)
.Where(a => a.FullName.Contains(framework) && !modgenAssemblies.Contains(a.Name))
.DistinctBy(a => a.Name)
.Select(a => a.FullName)
.Concat(
Directory
.EnumerateFiles(
Path.GetFullPath(cg, new FileInfo(fullName).DirectoryName!),
"*.cs",
SearchOption.AllDirectories))
.Where(f => !f.Contains($"{Path.DirectorySeparatorChar}obj{Path.DirectorySeparatorChar}")),
customDir) ?? string.Empty;
}
Expand Down
2 changes: 1 addition & 1 deletion samples/model/angular.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

version: 2.1.0
custom:
../../../TopModel.Generator.Javascript: e39801d826bcb9c740ebb356ac0b7fbb
../../../TopModel.Generator.Javascript: 74255c5a67bbe523e9e321c8024f1827
generatedFiles:
- ../generators/angular/src/appgenerated/api/securite/profil/profil.service.ts
- ../generators/angular/src/appgenerated/api/securite/utilisateur/utilisateur.service.ts
Expand Down
2 changes: 1 addition & 1 deletion samples/model/csharp.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

version: 2.1.0
custom:
../../../TopModel.Generator.Csharp: 121e8b5ce6a8be344945262bf8960580
../../../TopModel.Generator.Csharp: 8486cfdb798560fbaa4f6806a145d2a3
generatedFiles:
- ../generators/csharp/src/Clients/CSharp.Clients.Db/generated/CSharpDbContext.comments.cs
- ../generators/csharp/src/Clients/CSharp.Clients.Db/generated/CSharpDbContext.cs
Expand Down
2 changes: 1 addition & 1 deletion samples/model/focus.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

version: 2.1.0
custom:
../../../TopModel.Generator.Javascript: e39801d826bcb9c740ebb356ac0b7fbb
../../../TopModel.Generator.Javascript: 74255c5a67bbe523e9e321c8024f1827
generatedFiles:
- ../generators/focus/src/locale/common.ts
- ../generators/focus/src/locale/securite.ts
Expand Down
2 changes: 1 addition & 1 deletion samples/model/jpa.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

version: 2.1.0
custom:
../../../TopModel.Generator.Jpa: 3df4f5992b92ce79d5bfddf465926bd2
../../../TopModel.Generator.Jpa: 22a5eddb4f60c62608f14415f6593065
generatedFiles:
- ../generators/jpa/src/main/javagen/topmodel/jpa/sample/demo/api/client/securite/profil/ProfilClient.java
- ../generators/jpa/src/main/javagen/topmodel/jpa/sample/demo/api/client/securite/utilisateur/UtilisateurClient.java
Expand Down
2 changes: 1 addition & 1 deletion samples/model/pg.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

version: 2.1.0
custom:
../../../TopModel.Generator.Sql: a7d6d70714c8ee38aeac8e9447ed12fd
../../../TopModel.Generator.Sql: 63f10759e9f39920a878628a3707587b
generatedFiles:
- ../generators/pg/src/01_tables.sql
- ../generators/pg/src/02_fk_indexes.sql
Expand Down
2 changes: 1 addition & 1 deletion samples/model/php.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

version: 2.1.0
custom:
../../../TopModel.Generator.Php: 8029e36a5806c385b25b725c2e00ecdc
../../../TopModel.Generator.Php: 4bcb73c9190a4fa0cab4618256250e06
generatedFiles:
- ../generators/php/src/Entity/Securite/Profil/Droit.php
- ../generators/php/src/Entity/Securite/Profil/Profil.php
Expand Down
2 changes: 1 addition & 1 deletion samples/model/ssdt.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

version: 2.1.0
custom:
../../../TopModel.Generator.Sql: a7d6d70714c8ee38aeac8e9447ed12fd
../../../TopModel.Generator.Sql: 63f10759e9f39920a878628a3707587b
generatedFiles:
- ../generators/ssdt/src/init/DROIT.insert.sql
- ../generators/ssdt/src/init/main.sql
Expand Down
2 changes: 1 addition & 1 deletion samples/model/translation.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

version: 2.1.0
custom:
../../../TopModel.Generator.Translation: 9f15a161c1cd09a554e17eb18f624495
../../../TopModel.Generator.Translation: ef4a52ac3961c997e997e79308991e65
generatedFiles:
- ../generators/translation/i18n/de_DE/out/common_de_DE.properties
- ../generators/translation/i18n/de_DE/out/securite_de_DE.properties
Expand Down

0 comments on commit a827501

Please sign in to comment.