Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Usha Matisson
Core
Commits
2469a0dd
Commit
2469a0dd
authored
11 years ago
by
totten
Browse files
Options
Downloads
Patches
Plain Diff
GenCode - Cleanup
parent
3530751a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CRM/Core/CodeGen/Util/File.php
+2
-3
2 additions, 3 deletions
CRM/Core/CodeGen/Util/File.php
xml/GenCode.php
+9
-9
9 additions, 9 deletions
xml/GenCode.php
with
11 additions
and
12 deletions
CRM/Core/CodeGen/Util/File.php
+
2
−
3
View file @
2469a0dd
...
...
@@ -48,9 +48,9 @@ class CRM_Core_CodeGen_Util_File {
}
/**
* Find the path
s
to
all key files involved in the gen-code process
* Find the path to
the main Civi source tree
*
* @return
array
* @return
string
* @throws RuntimeException
*/
static
function
findCoreSourceDir
()
{
...
...
@@ -65,7 +65,6 @@ class CRM_Core_CodeGen_Util_File {
/**
* Find files in several directories using several filename patterns
*
*
* @param array $pairs each item is an array(0 => $searchBaseDir, 1 => $filePattern)
* @return array of file paths
*/
...
...
This diff is collapsed.
Click to expand it.
xml/GenCode.php
+
9
−
9
View file @
2469a0dd
...
...
@@ -22,14 +22,14 @@ CRM_Core_ClassLoader::singleton()->register();
# TODO: pull these settings from configuration
$genCode
=
new
CRM_Core_CodeGen_Main
(
'../CRM/Core/DAO/'
,
// $CoreDAOCodePath
'../sql/'
,
// $sqlCodePath
'../'
,
// $phpCodePath
'../templates/'
,
// $tplCodePath
array
(
'../packages/Smarty/plugins'
,
'../CRM/Core/Smarty/plugins'
),
// smarty plugin dirs
@
$argv
[
3
],
// cms
empty
(
$argv
[
2
])
?
NULL
:
$argv
[
2
],
// db version
empty
(
$argv
[
1
])
?
'schema/Schema.xml'
:
$argv
[
1
],
// schem
afile
getenv
(
'CIVICRM_GENCODE_DIGEST'
)
?
getenv
(
'CIVICRM_GENCODE_DIGEST'
)
:
NULL
'../CRM/Core/DAO/'
,
// $CoreDAOCodePath
'../sql/'
,
// $sqlCodePath
'../'
,
// $phpCodePath
'../templates/'
,
// $tplCodePath
array
(
'../packages/Smarty/plugins'
,
'../CRM/Core/Smarty/plugins'
),
// smarty plugin dirs
@
$argv
[
3
],
// cms
empty
(
$argv
[
2
])
?
NULL
:
$argv
[
2
],
// db version
empty
(
$argv
[
1
])
?
'schema/Schema.xml'
:
$argv
[
1
],
// schema
file
getenv
(
'CIVICRM_GENCODE_DIGEST'
)
?
getenv
(
'CIVICRM_GENCODE_DIGEST'
)
:
NULL
// path to digest file
);
$genCode
->
main
();
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment