We have a large number of legacy pages in our application's code repository which are not linked to other pages. Is there a way in ColdFusion Builder to see which pages are not linked so they can be deleted? (Builder is derivative of Eclipse, so the question may be answered by an Eclipse guru).
Identify Unlinked Pages - ColdFusion Builder
186 views Asked by Allen AtThere are 2 answers
James A Mohler
On
I am going to paraphrase Tomalak's answer from 9 years ago. He originally wrote
A regex is not advisable. Since ColdFusion is quite flexible in the way files can be included or referenced, there will be no way to determine the definitive list of dependencies from the source code alone.
You could insert a
<cflog>into each file and build a log from the running application. Examine the log after the application was active for a while and all functionality had been accessed at least once.
Source: How do I determine which files a ColdFusion application uses?
I would change that slightly...
You could insert a <cflog> into application.cfc or application.cfm to determinte which pages are being accessed.
After that list is compiled, then see if any of those files use <cfinclude> or createobject(), or <cfmodule>. Eventually all files will be accounted for.
I also find it useful to look at change dates. If no one has touched a file in 15 years, it probably isn't important.
Related Questions in ECLIPSE
- I need the BIRT.war that is compatible with Java 17 and Tomcat 10
- GUI window is not appearing
- I am trying to run java application in Eclipse, When I try to do Run > Run as > Java Application it starts to show little processing but nothing happe
- Migrating Google App Engine - Eclipse Java 8
- Unable to compile the class for JSP in tomcat 8.5.95
- Eclipse + CMake: Eclipse index unable to resolve header files
- Commit Each Change from Eclipse to GitHub as a different Branch
- Using Eclipse Maven project, import new version of a class from a jar file created from another Maven project
- Is the Eclipse RCP "Window > Show View" menu predefined somewhere
- To enable syntax highlighting with color for JBehave stories in Eclipse
- Eclipse: "package...does not exist" when building a Maven package that references a class in another project
- TestNG update related issue
- How to print a value by comparing 2 fields inside JSON - RestAssured
- How to build using Eclipse Tycho
- "Cannot be resolved as a type" problem with Java
Related Questions in COLDFUSION
- Is there a way to get a dynamically generated QR to print on a badge card?
- "Apache2 Syntax Error: Cannot load mod_jrun22.so - undefined symbol: ap_log_error"
- Getting Java Error - java.lang.reflect.InaccessibleObjectException: Unable to make public sun.util.calendar.ZoneInfo(java.lang.String,int) accessible
- Unreadable text - dialog with goofy robot icon in VS Code
- Cold Fusion Custom Tags How To Block generatedContent if executionMode eq start
- Coldfusion SOAP API, name of parameters on wsdl changes to generic one
- passing multiple values with comma seperation in cfqueryparam causing issue. it is paasing as index scan instead of index seek
- ColdFusion app " Error Executing Database Query. Access denied for user" for RDS mySQL
- Why is CFTHREAD resuing local variable values in a loop?
- jquery validation code working but ending up uploaading same files in both different folders
- Encountering 'Error invoking CFC for gateway file: null
- cfspreadhseet - how to delete/update a comment in the cell?
- ColdFusion - page with CFCHART inserts JS into HTML <head> - Test and Prod servers it is at top of <head> my local is at bottom and causes JS conflict
- How do I decrypt an encrypted private key in ColdFusion?
- Does Coldfusion 2021 support connections to MySQL 8.0? (AWS RDS MySQL Community Server)
Related Questions in COLDFUSION-11
- ColdFusion round decimal value
- Coldfusion with BIRT report get parameter DATEFROMSO and DATETOSO and print in excel xls file
- JavaScript error Uncaught SyntaxError: missing ) after argument list when input value has both " and ' in it
- A HEAD call to a CFC always returns a 500 (CF11)
- Coldfusion can't read IRS pdf form
- Dependency Variable Doesnt Exist
- Get array key and structure data from an array with structure
- Coldfusion cfhttp multipartType - How do I send JSON and file in same request?
- How do I accomplish nesting a loop iteration in a variable inside a loop in CFML
- How to toggle the case of individual words in sentences displayed in HTML form input boxes by double clicking them?
- Coldfusion onRequestStart show some error
- Looping over the records to get the data and push to api
- writing a logic to check if value exists
- Coldfusion GetComponentMetaData functions order
- CF11 CFChart pie, labelformat="percent" not displaying %
Related Questions in DEAD-CODE
- Decorator pattern prevent detection of unused method
- How to find unused code in a huge codebase
- Is it possible to remove dead code using CppCheck?
- Rust Criterion benchmark not working – Optimized out
- Rust dead code analysis for code exposed only to the binary in the same lib crate
- React is not being used, yet is still pulled in into a bundle
- How to understand a line of dead code in a python function?
- Java dead code warning + no rectangle forming?
- Can the gnat compiler find unused specification procedures/functions/variables?
- How can I remove dead JS code sent to the browser by PHP?
- Resolve undefined reference by stripping unused code
- dead_code warning in Rust when Debug printing a struct
- Unable to evaluate functions in Go debugging using delve
- Does unreachable Rust code get compiled and included in the final binary?
- Why a basic unreferenced c++ function does not get optimized away?
Related Questions in COLDFUSIONBUILDER
- ColdFusion Builder debugger - Expressions - "The variable is not defined" bug. Is there a patch/solution?
- Coldfusion Dynamic Variable (?) parsed to SQL Query
- Coldfusion and Related Selects
- ColdFusion Builder 2018 Demo - Keyboard Shortcuts Issue on Windows 7 Pro
- How Do We Turn Off ColdFusion Builder Tag Help on Mouseover?
- ColdFusion Builder and Eclipse Quick Diff
- How can I modify code in Adobe ColdFusion Report builder to show only the last four digits of SSN?
- Tiny icons in Navigator tab in CF Builder 2018
- Identify Unlinked Pages - ColdFusion Builder
- Are there any ColdFusion Builder 2016 Themes or anyway to create any?
- Using <cfinvoke> in ColdFusion
- Virtual Directories not working in ColdFusion Builder 2016
- Host Web Serivces on ColdFusion Builder's Local Server
- PhoneGap Android Build Error: Old Versions and Plugins
- ColdFusion Builder and Remote ColdFusion Server
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I would just search using "File Search" if the file name exists within the project.
Cfbuilder 3 search for a file with specific text inside a folder
If you use a framework such as FW/1 or ColdBox, you'll have to search for the model/view/controller name and not the exact filename.